mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 13:49:50 +00:00
Fixed null pointer deref in p_format.c (#9623)
Fixed null pointer deref in the command 'pf E' when it didn't receive an argument.
This commit is contained in:
parent
b323f78dc5
commit
a4de64b169
@ -2209,6 +2209,9 @@ R_API int r_print_format(RPrint *p, ut64 seek, const ut8* b, const int len,
|
||||
// nested structs seem to be handled correctly above!
|
||||
if (arg[0] == 'E') {
|
||||
char *end_fmt = strchr (arg, ' ');
|
||||
if (!end_fmt) {
|
||||
goto beach;
|
||||
}
|
||||
char *next_args = strchr (end_fmt+1, ' ');
|
||||
if (next_args) {
|
||||
while (*next_args != '\0') {
|
||||
|
Loading…
Reference in New Issue
Block a user