[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Bugfix: index subscription out of range

From: Dmitriy Kravtsov <idkravitz_at_gmail.com>
Date: Thu, 15 Apr 2010 19:01:28 +1100

Hi,
I accidentally introduced a bug, which can produce an index subscription out
of range assert in std::vector
Suppose you have 3 files:
   * file base.txt with single line.
   * file mine.txt with line from base.txt and one extra line
   * file theirs.txt with line from base.txt and at least 2 extra lines,
different from one extra in mine.txt
Three way diff will try to get a line ending at index, greater or equal to
line count in a base file.
So simple fix is in attached patch. Excuse me for this.

-- 
Dmitry S. Kravtsov
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2583458
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2010-04-15 11:19:33 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.