mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Revert "hush: fix segfault on syntax error"
128059b92 ("hush: fix segfault on syntax error") attempted to fix a
segfault on syntax errors, but it broke Ctrl-C handling, and the
assumption that it made, that rcode could not be -1, is incorrect.
Revert this change.
Reported-by: Stephen Warren <swarren@wwwdotorg.org>
Reported-by: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Rabin Vincent <rabin@rab.in>
This commit is contained in:
parent
dee332ffb7
commit
f3a05c8f94
1 changed files with 1 additions and 1 deletions
|
|
@ -3217,7 +3217,7 @@ static int parse_stream_outer(struct in_str *inp, int flag)
|
|||
}
|
||||
b_free(&temp);
|
||||
/* loop on syntax errors, return on EOF */
|
||||
} while (rcode != 1 && !(flag & FLAG_EXIT_FROM_LOOP) &&
|
||||
} while (rcode != -1 && !(flag & FLAG_EXIT_FROM_LOOP) &&
|
||||
(inp->peek != static_peek || b_peek(inp)));
|
||||
#ifndef __U_BOOT__
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue