libgit2/libgit2 — pull request #1770 by ethomson (2013-08-08 16:34:26+00:00)
Title: Fixes to safely reading the index

Avoid wrapping around extension size when reading, avoid walking off
the end of the buffer when reading names.