Skip to content

Commit

Permalink
fixed possible heap overflow when parsing broken m3u8
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf authored and rbouqueau committed Feb 1, 2024
1 parent 55ff193 commit 1d8eb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media_tools/m3u8.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ static char** parse_attributes(const char *line, s_accumulated_attributes *attri
} else {
GF_LOG(GF_LOG_WARNING, GF_LOG_DASH,("[M3U8] Misformed #EXT-X-MEDIA:LANGUAGE=%s. Quotes are incorrect.\n", ret[i]+5));
}
} else if (safe_start_equals("NAME=", ret[i])) {
} else if (safe_start_equals("NAME=\"", ret[i])) {
if (attributes->name) gf_free(attributes->name);
attributes->name = gf_strdup(ret[i]+5+1);
u32 len = (u32) strlen(attributes->name);
Expand Down

0 comments on commit 1d8eb1d

Please sign in to comment.