Bugzilla – Bug 832
No checks for buffer()
Last modified: 2018-05-10 08:39:40 MDT
Hi Team, The code /lib/zlib/gzlib.c:614 i.e strcat(state->msg, msg); Does not check for buffer overflows when copying to destination which is [MS-banned] (CWE-120). using snprintf, strcpy_s, or strlcpy (strncpy easily misused). Request team to please have a look. Thank you Dhiraj
If you take a closer look you will see that code is only used when NO_snprintf or NO_vsnprintf is defined. Those are never defined when zlib is built as part of sudo.