GerHobbelt/google-diff-match-patch

javascript diff_cleanupSemantic uses negative indexes in the equalities array

Opened this issue · 1 comments

javascript diff_cleanupSemantic uses negative indexes in the equalities array.

This is because it equalitiesLength is allowed to go into a negative range.

Normally this doesn't cause any problems, because it will just be stored as a 
property on the array, but Safari 1.5.x seems to have some issues and doesn't 
always get the value that's stored in equalities[-1] back out. (Or perhaps it 
didn't properly go in in some cases.)

Original issue reported on code.google.com by d...@twkie.net on 21 Jun 2013 at 10:48

Attachments:

Sorry, I meant Safari 5.1.x

Original comment by d...@twkie.net on 21 Jun 2013 at 10:51