From 88a571fab85ac36970eed9398ac3935ce504ed67 Mon Sep 17 00:00:00 2001 From: SHIRAKATA Kentaro Date: Sun, 12 Jan 2025 15:43:46 +0900 Subject: [PATCH] add sanity check on parse_status_hl2() dt is initialized with -1, and it's not so obvious that it will be always overwritten later. --- src/botl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/botl.c b/src/botl.c index 51f15f19d..e714fbb8f 100644 --- a/src/botl.c +++ b/src/botl.c @@ -2830,6 +2830,7 @@ parse_status_hl2(char (*s)[QBUFSZ], boolean from_configfile) else hilite.behavior = BL_TH_NONE; + assert(dt >= 0); hilite.anytype = dt; if (hilite.behavior == BL_TH_TEXTMATCH && txt) {