[PATCH] fixed #1982
authorjeanlf <jeanlf@gpac.io>
Tue, 14 Dec 2021 09:00:33 +0000 (10:00 +0100)
committerAron Xu <aron@debian.org>
Tue, 23 May 2023 11:53:25 +0000 (12:53 +0100)
Gbp-Pq: Name CVE-2021-45767.patch

src/laser/lsr_dec.c

index ee2dc2102794ba74cc7736e10570b99fea5b85bf..fa9ccd8085d03ad3d1c6adbb1b312ad6f1326b3a 100644 (file)
@@ -672,6 +672,8 @@ static void lsr_read_paint(GF_LASeRCodec *lsr, SVG_Paint *paint, const char *nam
                        iri.type = 0xFF;
                        lsr_read_any_uri(lsr, &iri, name);
                        gf_node_unregister_iri(lsr->sg, &iri);
+                       gf_list_del_item(lsr->deferred_hrefs, &iri);
+
                        paint->type = SVG_PAINT_URI;
                        if (iri.string) {
                                paint->type = SVG_PAINT_URI;