aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <git@madler.net>2025-12-22 07:45:31 -0800
committerMark Adler <git@madler.net>2026-01-05 15:03:04 -0600
commitcab7352dc71048f130a7d4e0b7fd773909761133 (patch)
tree108c19b53c0b6ca6d33adcd7432134a68ce08824
parent3509ab515f29002f64455d6e34e19df0c16b1707 (diff)
downloadzlib-cab7352dc71048f130a7d4e0b7fd773909761133.tar.gz
zlib-cab7352dc71048f130a7d4e0b7fd773909761133.tar.bz2
zlib-cab7352dc71048f130a7d4e0b7fd773909761133.zip
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.
-rw-r--r--FAQ4
1 files changed, 2 insertions, 2 deletions
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
269 sprintf() is used by gzprintf(). 269 sprintf() is used by gzprintf().
270 270
271 If you don't have snprintf() or vsnprintf() and would like one, you can 271 If you don't have snprintf() or vsnprintf() and would like one, you can
272 find a portable implementation here: 272 find a good portable implementation in stb_sprintf.h here:
273 273
274 http://www.ijs.si/software/snprintf/ 274 https://github.com/nothings/stb
275 275
276 Note that you should be using the most recent version of zlib. Versions 276 Note that you should be using the most recent version of zlib. Versions
277 1.1.3 and before were subject to a double-free vulnerability, and versions 277 1.1.3 and before were subject to a double-free vulnerability, and versions