summaryrefslogtreecommitdiffstats
path: root/m4/acinclude.m4
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2015-10-28 05:04:05 +0100
committerAllan McRae <allan@archlinux.org>2015-10-28 05:22:09 +0100
commitdcc1b22cb33a7a9d9477ffc84f833317860bf751 (patch)
treec74a92c5da3506cf062d6f979c79361fd3625531 /m4/acinclude.m4
parent1142a32c7f6f8ab82528581277b7c7cac6b2d1ae (diff)
downloadpacman-dcc1b22cb33a7a9d9477ffc84f833317860bf751.tar.gz
pacman-dcc1b22cb33a7a9d9477ffc84f833317860bf751.tar.xz
_alpm_hook_run: check path length before copying
If a hook path equals or exceeds PATH_MAX characters the path will be left unterminated. Pre-calculating the path length also allows us to use the more efficient memcpy over strncpy. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'm4/acinclude.m4')
0 files changed, 0 insertions, 0 deletions