Re: [PATCH 2/2] entry.c: fix possible buffer overflow in remove_subtree()

2014-03-13 Thread Duy Nguyen
On Thu, Mar 13, 2014 at 4:19 PM, Michael Haggerty wrote: > remove_subtree() manipulated path in a fixed-size buffer even though > the length of the input, let alone the length of entries within the > directory, were not known in advance. Change the function to take a > strbuf argument and use tha

[PATCH 2/2] entry.c: fix possible buffer overflow in remove_subtree()

2014-03-13 Thread Michael Haggerty
remove_subtree() manipulated path in a fixed-size buffer even though the length of the input, let alone the length of entries within the directory, were not known in advance. Change the function to take a strbuf argument and use that object as its scratch space. Signed-off-by: Michael Haggerty -