##// END OF EJS Templates
patch: fix segfault against unified diffs which start line is zero...
patch: fix segfault against unified diffs which start line is zero Since 2b1ec74c961f, if a chunk starts with "@@ -0,1", oldstart turns into a negative value. Because diffhelpers.testhunk() doesn't expect negative bstart, it bypasses "alen > blen - bstart" condition and segfaults at "PyList_GET_ITEM(b, i + bstart)".

File last commit:

r0:9117c656 default
r16650:fcb97d9a stable
Show More
__init__.py
0 lines | 0 B | text/x-python | PythonLexer