Behavior Of Printf( "%s", NULL) Changed In Solaris 11 Vs Solaris 10
Last updated on JUNE 30, 2017
Applies to:Solaris Operating System - Version 11 11/11 and later
Information in this document applies to any platform.
Oracle changed the behavior of the *printf() family of functions in the case where a null pointer is passed in for a %s formatter argument.
Previously the printf() function would crash with a SEGV, unless the library firstname.lastname@example.org were preloaded, in which case an empty string would be used in the printf() output.
What is the current behavior?
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms