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>
Showing
+16 -2
Please register or sign in to comment