]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: avoid arbitrary memory access with buggy localtime()
authorPádraig Brady <P@draigBrady.com>
Mon, 9 Feb 2015 15:48:40 +0000 (15:48 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 11 Feb 2015 00:35:08 +0000 (00:35 +0000)
commit50820f8470a0f3d5c5359df1387b30eddd839ba4
tree71e60eb428ea609cabbc67d4c681a4c1e71ce518
parent430bda373361addf16962301b3afaf1b19ee9fc8
maint: avoid arbitrary memory access with buggy localtime()

* src/ls.c (align_nstrftime): Be defensive and validate the tm_mon
index before using to access the abmon array.  This was _not_ seen
to be an issue any system.  See https://bugzilla.redhat.com/1190454
src/ls.c