Skip to content

Commit

Permalink
fixed possible bug in parsing filter options while probing link
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Apr 22, 2024
1 parent 2ad835b commit 54fa30c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/filter_core/filter.c
Expand Up @@ -1889,6 +1889,7 @@ static void filter_parse_dyn_args(GF_Filter *filter, const char *args, GF_Filter
if (sep) {
escaped = (sep[1] == filter->session->sep_args) ? NULL : strstr(sep, szEscape);
if (escaped && xml_start && (escaped>xml_start)) escaped = NULL;
if ((u32) (escaped-sep)>2) escaped = NULL;
//if we have a :gfopt: or :gfloc: set without :gpac: on a source, consider this as a valid escape pattern
if (check_url_esc && !escaped && !strncmp(args, szSrc, 4) && (!strncmp(sep, ":gfopt:", 7) ||!strncmp(sep, ":gfloc:", 7)))
escaped = sep;
Expand Down

0 comments on commit 54fa30c

Please sign in to comment.