Skip to content
Snippets Groups Projects
Commit 60668a72 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Ensure we get at least one item before passing to the callback

Should fix ASan "crash".
parent e32a036b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -1538,7 +1538,7 @@ net_wm_state_is_cb(bool (*cb)(Atom))
break;
}
ret = (Atom *)prop;
if (cb(*ret))
if (nir > 0 && cb(*ret))
is = true;
x11.XFree(prop);
if (is)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment