[cups] cupsd 2.0.3 SIGSEGV on Solaris SPARC 64bit

Michael Sweet msweet at apple.com
Fri Jan 22 12:03:16 PST 2016


Matthias,

> On Jan 22, 2016, at 2:53 PM, Matthias Apitz <guru at unixarea.de> wrote:
> ...
> str*() functions to check the args against NULL. Well, and now you come
> here and say this, read access to a NULL pointer should give something
> like "(null)", is state of the modern arts and standards ... nice story
> after 20 years of coding against NULL pointers :-)

You still need NULL checks in most places...  But the *rintf functions are supposed to handle NULL pointers for %s, just as they do for %p.

>> Newer CUPS releases use their own vsnprintf implementation to avoid this issue on Solaris and other legacy platforms...
>> 
>> (so the solution here is to update to CUPS 2.1.0 or later)
> 
> Thanks, I will see what I can do. I saw already in 2.0.3 a test against
> HAVE_VSNPRINTF, and if not using a define
> 
> # define vsnprintf _cups_vsnprintf
> 
> Maybe it's enough to disable HAVE_VSNPRINTF after configure run...

That will help with 2.0.3, but I'd still recommend the current stable release over an older release.

_________________________________________________________
Michael Sweet, Senior Printing System Engineer




More information about the cups mailing list