diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-01-04 07:23:08 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-01-04 07:23:08 -0800 |
commit | bb3e57a90227e74122d80dd614993cca7d96a73e (patch) | |
tree | 51dedbc92c99ff5325077c2885555cedc91cfe27 /syslog.h | |
parent | c3c3e114541c2daf9a507c10898c4b8d963e86b7 (diff) | |
download | txr-bb3e57a90227e74122d80dd614993cca7d96a73e.tar.gz txr-bb3e57a90227e74122d80dd614993cca7d96a73e.tar.bz2 txr-bb3e57a90227e74122d80dd614993cca7d96a73e.zip |
freeform: bug: account for consumed prefix.
This was reported by user vapnik spaknik. The @(freeform),
when reconstituting the unmatched trailing portion of the
virtual line back into a list of lines, uses the abstract
match position, neglecting to account for the fact that a
prefix of the line may have been physically consumed to save
memory.
* match.c (v_freeform): When calling
lazy_str_get_trailing_list, indicate the correct amount of
prefix material, by subtracting, from the matching length,
the base variable, which indicates how much of the prefix had
been consumed. This consumption takes place above 4000 bytes,
which is why the freeform test cases are not catching this.
* tests/006/freeform-5.txr: New file.
* tests/006/freeform-5.expected: New file.
Diffstat (limited to 'syslog.h')
0 files changed, 0 insertions, 0 deletions