diff options
| author | Mark Adler <git@madler.net> | 2025-12-22 07:45:31 -0800 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-05 15:03:04 -0600 |
| commit | cab7352dc71048f130a7d4e0b7fd773909761133 (patch) | |
| tree | 108c19b53c0b6ca6d33adcd7432134a68ce08824 | |
| parent | 3509ab515f29002f64455d6e34e19df0c16b1707 (diff) | |
| download | zlib-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-- | FAQ | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 |
