Fix NULL dereference in MAD print_aid_description

This commit is contained in:
achazal committed 2026-06-02 18:56:24 +02:00
1 parent c46b72ee2b
commit 2c27d4fc10
1 file changed
+2
+2
View File
@@ -117,6 +117,8 @@ static int print_aid_description(json_t *root, uint16_t aid, char *fmt, bool ver
continue;
}
const char *fmad = mad_json_get_str(data, "mad");
if (fmad == NULL)
continue;
char lfmad[strlen(fmad) + 1];
strcpy(lfmad, fmad);
str_lower(lfmad);