summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/trans.c
diff options
context:
space:
mode:
authorLászló Várady <laszlo.varady93@gmail.com>2019-08-05 15:11:19 +0200
committerAllan McRae <allan@archlinux.org>2019-08-12 02:19:09 +0200
commitf9f22fded2f05ae1edb5af3bd0e3a4aba2f5ce34 (patch)
tree304b45707585d6ad8a222f11dc8cc028631b78ca /lib/libalpm/trans.c
parent18a64400617259b34ccf014682fd8022d551a036 (diff)
downloadpacman-f9f22fded2f05ae1edb5af3bd0e3a4aba2f5ce34.tar.gz
pacman-f9f22fded2f05ae1edb5af3bd0e3a4aba2f5ce34.tar.xz
pacman/callback: fix buffer over-read
Commit 11ab9aa9f5f0f3873df89c73e8715b82f485bd9b replaced a strcpy() call with memcpy(), without copying the terminating null character. Since fname is allocated with malloc(), subsequent strstr() calls will overrun the buffer's boundary. Signed-off-by: László Várady <laszlo.varady93@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/trans.c')
0 files changed, 0 insertions, 0 deletions