On Wed, Oct 29, 2014 at 11:21:40PM +0100, Rabin Vincent wrote:

> Hush segfaults if it sees a syntax error while attempting to parse a
> command:
> 
>  $ ./u-boot -c "'"
>  ...
>  syntax error
>  Segmentation fault (core dumped)
> 
> This is due to a NULL pointer dereference of in_str->p in static_peek().
> The problem is that the exit condition for the loop in
> parse_stream_outer() checks for rcode not being -1, but rcode is only
> ever 0 or 1.
> 
> Signed-off-by: Rabin Vincent <ra...@rab.in>
> Acked-by: Simon Glass <s...@chromium.org)
> Tested-by: Simon Glass <s...@chromium.org)

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to