From 09ea8a9fd6d6640b72f3d673a5bebf4ef1a9ddfb Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 30 Apr 2006 02:41:50 +0000 Subject: r15353: Don't dereference NULL pointer. Found by the IBM checker. (This used to be commit 67d62fc55621871c576298b5a8da2f5e9ea03d69) --- source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/pidl/lib/Parse/Pidl/Samba4') 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); -- cgit