[PATCH] fixed #1965
authorjeanlf <jeanlf@gpac.io>
Mon, 13 Dec 2021 10:21:26 +0000 (11:21 +0100)
committerMoritz Mühlenhoff <jmm@debian.org>
Mon, 19 Jun 2023 21:46:06 +0000 (22:46 +0100)
Gbp-Pq: Name CVE-2021-45267.patch

src/scene_manager/loader_svg.c

index d0f15eae582933ebd5140f029e85ac97253af8b9..021f0cdf8175d1c8f6d96939bf0253f561853547 100644 (file)
@@ -1426,6 +1426,10 @@ static void svg_node_start(void *sax_cbck, const char *name, const char *name_sp
                        Bool rap;
                        time = 0;
                        rap =  GF_FALSE;
+                       if (!parser->laser_es) {
+                               svg_report(parser, GF_BAD_PARAM, "No LASER stream specified");
+                               return;
+                       }
                        if (!gf_list_count(parser->laser_es->AUs)) rap = GF_TRUE;
                        for (i=0; i<nb_attributes; i++) {
                                GF_XMLAttribute *att = (GF_XMLAttribute *) &attributes[i];