##// 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:

r9999:f91e5630 default
r16650:fcb97d9a stable
Show More
background.png
0 lines | 603 B | image/png | TextLexer
/ mercurial / templates / static / background.png
rendered-image