Commit cab7352 for zlib
commit cab7352dc71048f130a7d4e0b7fd773909761133
Author: Mark Adler <git@madler.net>
Date: Mon Dec 22 07:45:31 2025 -0800
Update the link for an snprintf/vsnprintf implementation in FAQ.
Point to a modern, well-supported implementation, for use when the
compiler chain in use does not provide those functions, and a
secure alternative to sprintf/vsprintf for the gz functions is
desired.
diff --git a/FAQ b/FAQ
index f72cac6..df12668 100644
--- a/FAQ
+++ b/FAQ
@@ -269,9 +269,9 @@ The latest zlib FAQ is at http://zlib.net/zlib_faq.html
sprintf() is used by gzprintf().
If you don't have snprintf() or vsnprintf() and would like one, you can
- find a portable implementation here:
+ find a good portable implementation in stb_sprintf.h here:
- http://www.ijs.si/software/snprintf/
+ https://github.com/nothings/stb
Note that you should be using the most recent version of zlib. Versions
1.1.3 and before were subject to a double-free vulnerability, and versions