mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 02:04:39 +08:00
realloc check?
This commit is contained in:
parent
28b074106d
commit
7deb99b999
1 changed files with 3 additions and 0 deletions
|
@ -261,6 +261,9 @@ int CmdFlashMemLoad(const char *Cmd) {
|
|||
}
|
||||
|
||||
data = realloc(data, datalen);
|
||||
if (!data) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
//Send to device
|
||||
uint32_t bytes_sent = 0;
|
||||
|
|
Loading…
Reference in a new issue