projects
/
gpac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
974094c
)
[PATCH] fixed #2146
author
jeanlf
<jeanlf@gpac.io>
Thu, 17 Mar 2022 11:00:55 +0000
(12:00 +0100)
committer
Aron Xu
<aron@debian.org>
Tue, 23 May 2023 11:53:25 +0000
(12:53 +0100)
Gbp-Pq: Name CVE-2022-1035.patch
src/scene_manager/scene_dump.c
patch
|
blob
|
history
diff --git
a/src/scene_manager/scene_dump.c
b/src/scene_manager/scene_dump.c
index 90b194f1551e5f3d2f3df6c55ae0acba890a8934..14dae93f1454ff3a91121361d0757ddef048a624 100644
(file)
--- a/
src/scene_manager/scene_dump.c
+++ b/
src/scene_manager/scene_dump.c
@@
-754,8
+754,7
@@
static void gf_dump_vrml_simple_field(GF_SceneDumper *sdump, GF_FieldInfo field,
switch (field.fieldType) {
case GF_SG_VRML_SFNODE:
- assert ( *(GF_Node **)field.far_ptr);
- gf_dump_vrml_node(sdump, *(GF_Node **)field.far_ptr, 0, NULL);
+ gf_dump_vrml_node(sdump, field.far_ptr ? *(GF_Node **)field.far_ptr : NULL, 0, NULL);
return;
case GF_SG_VRML_MFNODE:
list = * ((GF_ChildNodeItem **) field.far_ptr);