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 <[email protected]> > Acked-by: Simon Glass <[email protected]) > Tested-by: Simon Glass <[email protected])
Applied to u-boot/master, thanks! -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

