summaryrefslogtreecommitdiff
path: root/pidl/tests
AgeCommit message (Collapse)AuthorFilesLines
2024-07-12pidl: Wireshark: Convert the pidl dissector generation code to C99 typesJohn Thacker1-6/+6
Pick up change from Wireshark: commit 4df8d2884ddfe72a03d0b322c10ae515a8366ea4 Author: John Thacker <johnthacker@gmail.com> Date: Sat Jun 22 11:21:47 2024 -0400 pidl: Convert the pidl dissector generation code to C99 types Switch the Wireshark.pm pidl dissector generation code to using C99 types, and regenerated the dcerpc pidl dissectors. Ping #19116 Signed-off-by: John Thacker <johnthacker@gmail.com> Reviewed-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2024-07-12pidl: Wireshark: Update test for removal of ett initializationJohn Thacker1-20/+20
Pick up change from Wireshark: commit 6e4c81b324e9b1752ce6bc253a09355512b5b387 Author: John Thacker <johnthacker@gmail.com> Date: Sat Jun 22 11:10:48 2024 -0400 pidl: Update test for removal of ett initialization Also remove trailing whitespace Signed-off-by: John Thacker <johnthacker@gmail.com> Reviewed-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2024-07-12pidl: Wireshark: Const-ify dcerpc_sub_dissector structures.John Thacker1-1/+1
Pick up change from Wireshark: commit 8a2a42241fd148ce735e776a6a1e6b49b64d215e Author: Darius Davis <darius-wireshark@free-range.com.au> Date: Sun May 19 17:39:38 2024 +1000 Const-ify dcerpc_sub_dissector structures. This moves about 56 kBytes of data from a read-write data section to read-only. The various dissectors were _not_ regenerated for this commit. Instead, this commit was produced using the following command: find * -type f -exec sed -i -e 's/\(["'\'']\|^\)static dcerpc_sub_dissector/\1static const dcerpc_sub_dissector/' \{\} \; This updates the generator script and its test, as well as making an identical change to all of the dissectors, regardless of whether or not those dissectors were produced by the generator script. Signed-off-by: John Thacker <johnthacker@gmail.com> Reviewed-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2024-07-12pidl: Wireshark: Remove init of proto variablesJohn Thacker1-1/+1
Pick up change from Wireshark as it applies to PIDL: commit 2a9bc63325c99653c5da873c273430add3b5e9dd Author: Stig Bjørlykke <stig@bjorlykke.org> Date: Mon Nov 20 08:16:40 2023 +0100 Remove init of proto variables Remove init of proto, header field, expert info and subtree variables. This will reduces the binary size by approximate 1266320 bytes due to using .bss to zero-initialize the fields. The conversion is done using the tools/convert-proto-init.py script Signed-off-by: John Thacker <johnthacker@gmail.com> Reviewed-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2023-11-20pidl: Add new ‘u16string’ typeJoseph Sutton1-1/+2
This type represents a UTF‐16–encoded string. These strings are kept UTF‐16–encoded rather than converted to the Unix charset to be stored in memory; this avoids issues regarding NULL termination and conversion between character sets. We want to be able to handle strings that are not valid UTF‐16. Not bumping the NDR ABI version, because there hasn’t been an NDR release since commit c4f281e9ae36c225b6003e0fa1cb8fb2e67bf543. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-09-05pidl/tests: Add tests for hang with nested struct.Noel Power1-1/+20
make sure hang test calls Parse::Pidl::Typelist::LoadIdl which triggers part of the hang Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-08-15librpc:ndr: Add ‘int64’ typeJoseph Sutton2-2/+4
This type behaves like a signed variant of ‘hyper’. Unlike the existing ‘dlong’ type, which has four byte alignment, ‘int64’ is aligned to eight bytes. Bump the NDR version to 3.0.1. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15452 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-12-10pidl/tests/samba-ndr.pl: remove duplicate importDouglas Bagnall1-1/+0
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Dec 10 04:16:31 UTC 2019 on sn-devel-184
2019-12-10pidl: use perl warningsDouglas Bagnall13-2/+13
Warnings are good. If we turn on warnings with 'use warnings', we will see bugs that have lain latent for years. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-12-04pidl: don't export parser class methodsDouglas Bagnall1-1/+1
These methods are not used or usable as exported functions. The correct (and actual) usage is along these lines; require Parse::Pidl::Samba3::ClientNDR; my $generator = new Parse::Pidl::Samba3::ClientNDR(); my ($c_code,$h_code) = $generator->Parse($ndr, $header, $c_header); where the methods are either explicitly referenced (new A::B::C), or are called from the blessed object, neither of which need exporting. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Dec 4 06:35:06 UTC 2019 on sn-devel-184
2019-12-04pidl s4/TDR: use conventional ->{res} nameDouglas Bagnall1-6/+6
rather than ->{ret}, meaning this class can be moved to a Pidl::Base subclass Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-08-30pidl/tests: fix ndr_push_init_ctx() usageAlexander Bokovoy4-27/+27
The code in libndr got rid of the second argument quite some time ago (2010): f9ca9e46ad24036bf00cb361a6cef4b2e7e98d7d However, pidl tests did include a code that passed two arguments. Recently GCC started to fail to compile such code. Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 30 04:48:00 CEST 2018 on sn-devel-144
2016-09-07pidl: fix field2name wireshark dissector test.Günther Deschner1-1/+1
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Wed Sep 7 16:05:26 CEST 2016 on sn-devel-144
2016-06-20pidl/ws: fix failing testsAurelien Aptel1-1/+1
This commit fixes 2 test failures in Pidl test suite. - commit 02cd7808 changed the error the test was expecting => update expected output in the test - commit c76b65e changed whitespaces in the output => revert to the old output in the generator Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2014-11-22Clean up more whitespace.Guy Harris2-2/+2
Reviewed-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-By: Kamen Mazdrashki <kamenim@samba.org> Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
2013-10-09pidl-wireshark: fix trailing white space in the HF definitionMatthieu Patou1-1/+1
Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-06-12pidl/tests: fix use of a non-existent word (existant)Michael Adam1-2/+2
2011-09-08pidl: adjust expected output for new flag checkingAndrew Tridgell1-2/+4
2011-02-01pidl:NDR: add support for 'ms_union' property.Stefan Metzmacher1-19/+20
metze
2010-09-28pidl: add support for pointers in typedefsStefan Metzmacher1-0/+4
metze
2010-08-26pidl:Samba3/ClientNDR: remove unused ParseOutputArgument functionStefan Metzmacher1-10/+2
metze
2010-08-16Fix a typoVolker Lendecke1-2/+2
2010-08-12pidl:Samba3/ClientNDR: implement rpccli_ stubs on top of dcerpc_ stubsStefan Metzmacher1-81/+21
metze
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-12/+6
2010-03-18charset: fixed a problem with the global use of the iconv_convenience structureAndrew Tridgell1-6/+6
We had a crash bug where a cached copy of a iconv convenience pointer was used after being freed when loadparm asked for iconv to reload. This could happen if a python module used a iconv based function before loadparm was completed. The fix is to ensure that any use of this pointer remains valid, by reusing the pointer itself when it has already been initialised, but filling in the child elements with the updated values.
2010-02-02Change uint_t to unsigned int in pidlMatt Kraai1-1/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-26pidl:Samba3/ClientNDR: $size can be 'foo / 2' so we need to add '(' and ')'Stefan Metzmacher1-1/+1
foo / 5 * sizeof(bar)' isn't the same as '(foo / 2) * sizeof(bar)'. metze
2009-11-09pidl: Fix selftest after s3 code changedVolker Lendecke1-59/+27
2009-10-07pidl: update PIDL tests for uint1632 enumsAndrew Tridgell1-1/+1
2009-10-02pidl: fixed unit tests for trailer alignmentAndrew Tridgell1-0/+2
2009-10-02pid: update ndr testsuite for new union alignmentAndrew Tridgell1-1/+2
2009-09-19pidl: update expected output for NDR64 changesAndrew Tridgell1-1/+1
2009-09-13Fix string-wchar-fixed-array-03 test (when libndr is available).Jelmer Vernooij1-2/+2
2009-09-13Fix string-wchar-fixed-array-02 test (when libndr is available).Jelmer Vernooij1-2/+2
2009-09-13Fix string-wchar-fixed-array-01 test (when libndr is available).Jelmer Vernooij1-4/+4
2009-09-13pidl: Remove unnecessary _GNU_SOURCE define.Jelmer Vernooij1-1/+0
2009-08-12pidl: fix parse_idl test after idl.yp changesStefan Metzmacher1-28/+103
We now generate 'FILE' and 'LINE' elements for each layer. This change makes the expected PIDL trees human readable:-) metze
2009-08-12pidl: fix samba3-cli test after the async function were addedStefan Metzmacher1-2/+212
metze
2009-07-27pidl: add support for [string] on fixed size arrays.Stefan Metzmacher1-1/+109
midl also supports this: struct { long l1; [string] wchar_t str[16]; long l2; }; Where the wire size of str is encoded like a length_is() header: 4-byte offset == 0; 4-byte array length; The strings are zero terminated. metze
2009-07-03pidl: Don't run compile tests inside the tree, won't work yet.Jelmer Vernooij1-4/+8
2009-06-05pidl Fix samba4.pidl.typelist test after addition of 'double'Andrew Bartlett1-0/+1
2009-06-02Add support for double type in pidl.Brad Hards2-2/+9
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-01-30pidl: fix samba3-cli test after change to cli->dispatch()Stefan Metzmacher1-2/+2
metze
2008-12-23pidl: Fix typelist test after addition of type origin tracking.Jelmer Vernooij1-0/+1
2008-12-12Remove EJS backend for PIDL, as we don't have EJS anymore.Jelmer Vernooij1-37/+0
2008-10-10Fix executability of samba3-srv.Jelmer Vernooij1-0/+0
2008-09-17Move pidl to top-level directory.Jelmer Vernooij27-0/+3441