Behavior Of Printf( "%s", NULL) Changed In Solaris 11 Vs Solaris 10 (Doc ID 2069940.1)

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.

Goal

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 0@0.so.1 were preloaded, in which case an empty string would be used in the printf() output.

What is the current behavior?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms