]> git.proxmox.com Git - libgit2.git/commit
Allocate enough memory for the terminator in commit parsing
authorCarlos Martín Nieto <cmn@elego.de>
Mon, 20 Jun 2011 15:34:01 +0000 (17:34 +0200)
committerCarlos Martín Nieto <cmn@elego.de>
Mon, 20 Jun 2011 15:34:01 +0000 (17:34 +0200)
commitcdb6f9bf5e77b6e83d4bdc6cd75c31d0d3377800
treecec1bd4d0f63565ba0ff5b5d2d9e1e644e5d3746
parent37172582ec7ff9cb47c43c5d5b2334bf8c547569
Allocate enough memory for the terminator in commit parsing

Also allow space for the null-terminator when allocating the buffer in
packfile_unpack_compressed. Up to now, the last newline had served as
a terminator, but 858ef372 searches for a double-newline and exposes
the problem.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
src/odb_pack.c