diff options
author | 2008-01-29 22:03:11 +0000 | |
---|---|---|
committer | 2008-01-29 22:03:11 +0000 | |
commit | a78e5ea7c695c8c0cc49dc6fbfcb2acc8d5f867b (patch) | |
tree | 84e160fe728b638a90305f1d4e7a9759291cd4d9 /src/patchsets/gpac | |
parent | Moved EVMS patches out of the tree. (diff) | |
download | gentoo-a78e5ea7c695c8c0cc49dc6fbfcb2acc8d5f867b.tar.gz gentoo-a78e5ea7c695c8c0cc49dc6fbfcb2acc8d5f867b.tar.bz2 gentoo-a78e5ea7c695c8c0cc49dc6fbfcb2acc8d5f867b.zip |
add a check to not dereference a null pointer
Diffstat (limited to 'src/patchsets/gpac')
-rw-r--r-- | src/patchsets/gpac/0.4.4/090_all_nomodules_segfault.patch | 12 | ||||
-rw-r--r-- | src/patchsets/gpac/0.4.4/series | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/patchsets/gpac/0.4.4/090_all_nomodules_segfault.patch b/src/patchsets/gpac/0.4.4/090_all_nomodules_segfault.patch new file mode 100644 index 0000000000..116eece73e --- /dev/null +++ b/src/patchsets/gpac/0.4.4/090_all_nomodules_segfault.patch @@ -0,0 +1,12 @@ +Index: gpac/src/utils/module.c +=================================================================== +--- gpac.orig/src/utils/module.c ++++ gpac/src/utils/module.c +@@ -52,6 +52,7 @@ GF_EXPORT + void gf_modules_del(GF_ModuleManager *pm) + { + ModuleInstance *inst; ++ if(!pm) return; + + /*unload all modules*/ + while (gf_list_count(pm->plug_list)) { diff --git a/src/patchsets/gpac/0.4.4/series b/src/patchsets/gpac/0.4.4/series index 490f9ad806..5a9a82e647 100644 --- a/src/patchsets/gpac/0.4.4/series +++ b/src/patchsets/gpac/0.4.4/series @@ -6,3 +6,4 @@ 060_all_recursivemake.patch 070_all_bsd.patch 080_all_configdefines.patch +090_all_nomodules_segfault.patch |