mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-05 04:56:10 +00:00
Fix CID 1134837
This commit is contained in:
parent
ea57383d84
commit
d56b4046de
@ -520,8 +520,10 @@ static int apprentice_load(RMagic *ms, struct r_magic **magicp, ut32 *nmagicp, c
|
||||
|
||||
/* load directory or file */
|
||||
if (stat (fn, &st) == 0 && S_ISDIR (st.st_mode)) {
|
||||
if (r_sandbox_enable (0) && !r_sandbox_check_path (fn))
|
||||
if (r_sandbox_enable (0) && !r_sandbox_check_path (fn)) {
|
||||
free (marray);
|
||||
return -1;
|
||||
}
|
||||
dir = opendir (fn);
|
||||
if (dir) {
|
||||
while ((d = readdir (dir))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user