From: Julian Phillips Date: Sat, 16 Jul 2011 18:23:51 +0000 (+0100) Subject: remote-curl: Add a format check to parsing of info/refs X-Git-Tag: v1.7.6.1~55 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6e8e67f3071ecdc139f6a77f90afee50b5ec1664?hp=6e8e67f3071ecdc139f6a77f90afee50b5ec1664 remote-curl: Add a format check to parsing of info/refs When parsing info/refs, no checks were applied that the file was in the requried format. Since the file is read from a remote webserver, this isn't guarenteed to be true. Add a check that the file at least only contains lines that consist of 40 characters followed by a tab and then the ref name. Signed-off-by: Julian Phillips Signed-off-by: Junio C Hamano ---