commit | 9de376deedf2ff4a96ed89da2e5327788634bbcd | [log] [tgz] |
---|---|---|
author | Benno Schulenberg <bensberg@justemail.net> | Wed Jan 18 19:53:51 2017 +0100 |
committer | Benno Schulenberg <bensberg@justemail.net> | Fri Jan 20 17:03:10 2017 +0100 |
tree | fe3c9a2027ce6a3063c2cf303a312f07d5faae7d | |
parent | 94907aa5349a613e80e42224b6b20f18057d4414 [diff] |
painting: stay within the line when skipping zero-length matches Don't blithely overshoot the end of a line when both start regex and end regex match an empty string. Overshooting would let the matching run on into uncharted country and thus ultimately cause a segfault. This fixes https://savannah.gnu.org/bugs/?50056. Reported-by: Elia Geretto <elia.f.geretto@gmail.com>