summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-06-06 14:19:47 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-06-26 18:18:12 +0200
commit78fae47878111dd9833345fa622bafb51e5d69b5 (patch)
tree238d5065e421c38069403fb8d9b75ae4ee44f24a /include/git2
parent1d27446c603cbad306a8f294fb835ed3db8697b9 (diff)
downloadlibgit2-78fae47878111dd9833345fa622bafb51e5d69b5.tar.gz
pkt: make sure we really only read the length
A pkt-line's length are described in its first four bytes in ASCII hex. Copy this substring to another string before feeding it to git__strtol32. Otherwise, it will read the whole hash. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'include/git2')
0 files changed, 0 insertions, 0 deletions