mirror of
https://github.com/radareorg/radare2.git
synced 2025-04-01 17:11:51 +00:00
Avoid invalid allocation in DEX
This commit is contained in:
parent
fb8b10e5e9
commit
5a16523a5b
@ -163,6 +163,9 @@ static char *createAccessFlagStr(ut32 flags, AccessFor forWhat) {
|
||||
const int maxSize = (count + 1) * (kLongest + 1);
|
||||
char* str, *cp;
|
||||
// produces a huge number????
|
||||
if (count < 1 || (count * (kLongest+1)) < 1) {
|
||||
return NULL;
|
||||
}
|
||||
cp = str = (char*) calloc (count + 1, (kLongest + 1));
|
||||
if (!str) {
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user