svn commit: samba r6870 - in branches/tmp/pidl2/source/build/pidl: .
jelmer at samba.org
jelmer at samba.org
Tue May 17 23:17:12 GMT 2005
Author: jelmer
Date: 2005-05-17 23:17:12 +0000 (Tue, 17 May 2005)
New Revision: 6870
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6870
Log:
Fix nasty allocation bug in pidl2
Modified:
branches/tmp/pidl2/source/build/pidl/ndr_parser.pm
Changeset:
Modified: branches/tmp/pidl2/source/build/pidl/ndr_parser.pm
===================================================================
--- branches/tmp/pidl2/source/build/pidl/ndr_parser.pm 2005-05-17 22:34:38 UTC (rev 6869)
+++ branches/tmp/pidl2/source/build/pidl/ndr_parser.pm 2005-05-17 23:17:12 UTC (rev 6870)
@@ -1036,6 +1036,8 @@
# of the array
unless ($next_is_array) {
pidl "NDR_ALLOC($ndr, $var_name);";
+ } else {
+ pidl "NDR_ALLOC_SIZE($ndr, $var_name, 1);"; # FIXME: Yes, this is nasty. We allocate an array twice - once just to indicate that it's there, then the real allocation...
}
#pidl "memset($var_name, 0, sizeof($var_name));";
More information about the samba-cvs
mailing list