mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
Fix 1 byte overflow in pyc parser ##crash
* Reproducer: $ r2 negmarshall378
This commit is contained in:
parent
d4d73836b3
commit
2db25da77e
@ -359,7 +359,7 @@ static pyc_object *get_complex_object(RBuffer *buffer) {
|
||||
} else {
|
||||
n2 = get_st32 (buffer, &error);
|
||||
}
|
||||
if (error) {
|
||||
if (error || n2 < 1) {
|
||||
return NULL;
|
||||
}
|
||||
ut8 *s2 = malloc (n2 + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user