summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-30 02:41:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:24 -0500
commit09ea8a9fd6d6640b72f3d673a5bebf4ef1a9ddfb (patch)
treecf4d82b4facba41907dffcd3f333f13ab6c9f211 /source4/pidl/lib/Parse
parente48fdb255a8768b2b016ce874dfeec9bf4a19d70 (diff)
downloadsamba-09ea8a9fd6d6640b72f3d673a5bebf4ef1a9ddfb.tar.gz
samba-09ea8a9fd6d6640b72f3d673a5bebf4ef1a9ddfb.tar.bz2
samba-09ea8a9fd6d6640b72f3d673a5bebf4ef1a9ddfb.zip
r15353: Don't dereference NULL pointer. Found by the IBM checker.
(This used to be commit 67d62fc55621871c576298b5a8da2f5e9ea03d69)
Diffstat (limited to 'source4/pidl/lib/Parse')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm b/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm
index b9d8a1251c..e1a8feb1cd 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm
@@ -206,6 +206,7 @@ sub EjsPullArray($$$$$)
# uint8 arrays are treated as data blobs
if ($nl->{TYPE} eq 'DATA' && $e->{TYPE} eq 'uint8') {
if (!$l->{IS_FIXED}) {
+ check_null_pointer($size);
pidl "EJS_ALLOC_N(ejs, $var, $size);";
}
check_null_pointer($length);