mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-12 17:48:33 +00:00
Fix #7559 - Fix possible null deref in r_lib_open_ptr
This commit is contained in:
parent
a19ea41f03
commit
079fb3e379
@ -266,6 +266,9 @@ R_API int r_lib_open_ptr (RLib *lib, const char *file, void *handler, RLibStruct
|
||||
RListIter *iter;
|
||||
int ret = false;
|
||||
|
||||
if (!handler || !lib || !file || !stru) {
|
||||
return R_FAIL;
|
||||
}
|
||||
if (stru->version) {
|
||||
if (strcmp (stru->version, R2_VERSION)) {
|
||||
eprintf ("Module version mismatch %s (%s) vs (%s)\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user