mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 23:16:05 +00:00
Modify memory allocation failure conditions
Modify memory allocation failure conditions Signed-off-by: zengwei zengwei1@uniontech.com
This commit is contained in:
parent
26a37aaec6
commit
d0eb5e3dfc
@ -710,7 +710,7 @@ R_API bool r_anal_is_prelude(RAnal *anal, ut64 addr, const ut8 *data, int len) {
|
||||
if (!data) {
|
||||
const int maxis = r_anal_archinfo (anal, R_ANAL_ARCHINFO_MAX_OP_SIZE);
|
||||
owned = malloc (maxis);
|
||||
if (!data) {
|
||||
if (!owned) {
|
||||
return false;
|
||||
}
|
||||
data = owned;
|
||||
|
Loading…
Reference in New Issue
Block a user