ack/util/LLgen
Tee-Kiah Chia 9c7ce04cec Fix static buffer overflow in genname( ) in LLgen
This should fix at least some instances of the "undefined
reference to `LLnc_recover'" error that happens in some
builds (https://github.com/davidgiven/ack/issues/218).

The bug was that genname( ) used a static `namebuf' buffer
and did not properly check for overflow when writing into
it.  The result was that the `non_corr' variable was
sometimes overwritten with a non-zero value when it should
be zero, causing bogus results later.

This proposed patch makes genname( ) dynamically allocate
and resize a buffer for holding a target file name.

I also take this chance to fix a typo in correct_prefix().
2021-03-16 17:59:29 +00:00
..
doc Moved LLgen documentation from the main ACK documentation directory into LLgen's own documentation directory. 2006-02-04 00:43:32 +00:00
lib LLgen: use size_t, reduce warnings, other small changes 2019-10-22 15:32:23 -04:00
src Fix static buffer overflow in genname( ) in LLgen 2021-03-16 17:59:29 +00:00
bootstrap.sh Split LLgen off to be self-contained, and not necessarily part of the ACK. Replaced its build system with one based on pm. Rewrote the README. Updated the license text to match the overriding license common to all the ACK. 2006-02-04 00:57:04 +00:00
build.lua LLgen: use size_t, reduce warnings, other small changes 2019-10-22 15:32:23 -04:00
c.pm Updated to the latest version of pm which installs files with symlinks. 2006-07-25 23:22:58 +00:00
COPYING Split LLgen off to be self-contained, and not necessarily part of the ACK. Replaced its build system with one based on pm. Rewrote the README. Updated the license text to match the overriding license common to all the ACK. 2006-02-04 00:57:04 +00:00
mkdistr.sh Now resolves symlinks when creating releases (which avoids including a symlink to pm in the distribution, and not pm itself). 2006-07-21 11:24:46 +00:00
pm Updated to the latest version of pm which installs files with symlinks. 2006-07-25 23:22:58 +00:00
pmfile-ack Added a pmfile to allow LLgen to be built as part of the ACK again. 2006-11-11 22:58:30 +00:00
READ_ME Updated version number. 2006-07-25 23:24:39 +00:00