chiark / gitweb /
Allow space for trailing NULL (closes: #897712)
authorMatthew Vernon <matthew@debian.org>
Sat, 12 May 2018 09:00:46 +0000 (10:00 +0100)
committerMatthew Vernon <matthew@debian.org>
Sat, 12 May 2018 09:00:46 +0000 (10:00 +0100)
commit2c4b559f8301f236110356a0215d6d20fae6193f
tree3639364c0c01a82ca5739ae7ae945895e87822a1
parent19fbd871e5f2279f6db442453760342acfbfc216
Allow space for trailing NULL (closes: #897712)

cfname was previously STRSZ long, but the strncat use on l661 could
write up to STRSZ bytes to it, which would mean that the trailing NULL
would then overflow the array. Fix this by allocating STRSZ+1 bytes to
cfname.
tsl.c