r4136: when we have a size or switch variable that is a pointer we need to check...
authorAndrew Tridgell <tridge@samba.org>
Fri, 10 Dec 2004 22:16:35 +0000 (22:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:29 +0000 (13:06 -0500)
commit9f9e9b6477c4037372f871495abe7b81f15fb58c
tree21dce7965d26e0f785efa3dc598fab405556bac6
parent6fb61740076f49a6e0ac3eaff5c8002e316cfe90
r4136: when we have a size or switch variable that is a pointer we need to check that the server
hasn't given us a null pointer, otherwise we can segv when we dereference it. For example:

  [size_is(*size)] *x;
  uint32 *size;

if a broken server gave us x != NULL and size == NULL then we would crash. I've added
a check_null_pointer() call in pidl to catch this.
(This used to be commit 8cbd3f47a95367e861c6b99c44416a9ccef3c9ca)
source4/build/pidl/parser.pm