Module Name: src Committed By: martin Date: Sun Jun 24 09:34:33 UTC 2018
Modified Files: src/lib/libutil [netbsd-8]: passwd.c Log Message: Pull up following revision(s) (requested by kamil in ticket #899): lib/libutil/passwd.c: revision 1.53 Prevent underflow buffer read in trim_whitespace() in libutil/passwd.c If a string is empty or contains only white characters, the algorithm of removal of white characters at the end of the passed string will read buffer at index -1 and keep iterating backward. Detected with MKSANITIZER/ASan when executing passwd(1). To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.52.24.1 src/lib/libutil/passwd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.