comparison Makefile @ 16650:fcb97d9a26cd stable

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)".
author Yuya Nishihara <yuya@tcha.org>
date Sat, 12 May 2012 16:10:01 +0900
parents d9e2f09d5488
children 3c398032bf46
comparison
equal deleted inserted replaced
16649:822e75386c16 16650:fcb97d9a26cd