Merge pull request #3352 from AlxCzl/fix-mad-null-deref

Fix NULL dereference in MAD print_aid_description
This commit is contained in:
Iceman authored and GitHub committed 2026-06-02 19:11:05 +02:00
commit af7d233198
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);