]> granicus.if.org Git - flex/commit
scanner: allocate correct buffer size for m4 path.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 29 Dec 2016 13:44:22 +0000 (08:44 -0500)
committerWill Estes <westes575@gmail.com>
Thu, 29 Dec 2016 13:47:10 +0000 (08:47 -0500)
commit7975c43384d766ca12cb3f292754dbdc34168886
treeb3722c7577c3d972ab2649a668fe256959db758b
parent6bea32e937058ddba2812581b1396ff35aae8d70
scanner: allocate correct buffer size for m4 path.

Flex did not check the length of the m4 path which could lead to a
buffer overflow in some cases. Additionally, not all platforms believe
in PATH_MAX, so stop relying on it.

Fixes #138
src/main.c