Null deref with invalid key to r_core_get_boundaries_prot ##crash

This commit is contained in:
pancake 2024-11-22 20:15:33 +01:00
parent f69820c46e
commit fde24c7a43

View File

@ -820,6 +820,9 @@ R_API RList *r_core_get_boundaries_prot(RCore *core, R_UNUSED int perm, const ch
const RInterval search_itv = {search_from, search_to - search_from};
if (!mode) {
mode = r_config_get (core->config, bound_in);
if (!mode) {
mode = "search";
}
}
if (perm == -1) {
perm = R_PERM_RWX;