Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <75f0e607-6842-4f5e-b523-64f5cbcdc883@geeklan.co.uk>
Date: Wed, 18 Feb 2026 12:15:33 +0000
From: Sevan Janiyan <venture37@...klan.co.uk>
To: oss-security@...ts.openwall.com
Subject: Re: Re: zlib security audit by 7asecurity

On 17/02/2026 23:57, Sevan Janiyan wrote:
> I could set -std=gnu99 but then it's not going to be a quiet drop-in 
> upgrade for all the exist packages built.
> Was actually thinking that what happens during configure and the build 
> are completely different. configure "detects" the presence of 
> vsnprintf() by the compiler not making any noise, but things are handled 
> separately in gzguts.h which until you dig in are left wondering why is 
> it complaining about the lack of vsnprintf() when the configure stage 
> was happy). Will raise a ticket for that.

Dug in a bit further and realised the logic in gzguts.h makes the wrong 
assumption about "if C89/90, assume no C99 snprintf() or vsnprintf()" as 
these functions have been around for a very long time[1] though 
formalised in C99. All versions of OS X include it and you are likely 
going to be building with a compiler that only supports C89/90 on the 
earlier releases or defaults to it.

Raised a pull request[2], let's see if it lands.


Sevan
[1] https://www.tuhs.org/cgi-bin/utree.pl?file=Net2/usr/src/lib/libc/stdio
[2] https://github.com/madler/zlib/pull/1167

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.