Code

fast-import: stricter parsing of integer options
authorJonathan Nieder <jrnieder@gmail.com>
Sun, 28 Nov 2010 19:42:46 +0000 (13:42 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Dec 2010 21:26:52 +0000 (13:26 -0800)
commita9ff277e583782346181f431784e48046b0dfaa9
tree01a2fc07ee976a9f9cbd32d8c5fec906ffc19009
parent7d43de925b2771d295d8fc4341b7bd544e2a74fa
fast-import: stricter parsing of integer options

Check the result from strtoul to avoid accepting arguments like
--depth=-1 and --active-branches=foo,bar,baz.

Requested-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c
t/t9300-fast-import.sh