From a4a5f5f33fd79ed625c280ac779f41d547846fe8 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Thu, 4 Mar 2021 09:16:13 -0500 Subject: Check core max allocations for valid handle fix rolo warnings Change-Id: Ia2c669a5517aec54e5b2c0dc5934c88a4f49f2a9 --- apps/tagtree.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/tagtree.c') diff --git a/apps/tagtree.c b/apps/tagtree.c index 97e0c67b62..4b118f6d0d 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -1258,6 +1258,9 @@ void tagtree_init(void) menu = NULL; rootmenu = -1; tagtree_handle = core_alloc_maximum("tagtree", &tagtree_bufsize, &ops); + if (tagtree_handle < 0) + panicf("tagtree OOM"); + if (!parse_menu(FILE_SEARCH_INSTRUCTIONS)) { tagtree_unload(NULL); -- cgit v1.2.3