Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   rillig
Date:           Thu Mar 14 21:17:54 UTC 2024

Modified Files:
        src/tests/usr.bin/stat: t_stat.sh
        src/usr.bin/stat: stat.c

Log Message:
stat: don't allow numeric formatting flags on strings

Calling snprintf with "%+s" invokes undefined behavior.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/stat/t_stat.sh
cvs rdiff -u -r1.52 -r1.53 src/usr.bin/stat/stat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index