summaryrefslogtreecommitdiff
path: root/pidl
Commit message (Collapse)AuthorAgeFilesLines
* PIDL: fix parsing linemarkers in preprocessor outputAlexander Bokovoy2013-07-042-2/+6
| | | | | | | | | | | | | | | | | | | | | | | When PIDL calls out to C preprocessor to expand IDL files and parse the output, it filters out linemarkers and line control information as described in http://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html and http://gcc.gnu.org/onlinedocs/cpp/Line-Control.html#Line-Control With gcc 4.8 stdc-predef.h is included automatically and linemarker for the file has extended flags that PIDL couldn't parse ('system header that needs to be extern "C" protected for C++') Thanks to Jakub Jelinek <jakub@redhat.com> for explanation of the linemarker format. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=906517 Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 6ba7ab5c14801aecae96373d5a9db7ab82957526) Signed-off-by: Andreas Schneider <asn@samba.org> Fix bug #9636 - pidl can't parse new linemarkers in preprocessor output. (cherry picked from commit 643571470f2e4cd2f58bd60ac7189abb826d33cc)
* pidl: Add skip option to elements.Andreas Schneider2013-03-212-2/+11
| | | | | | | This option allows to skip struct elements in pull and push function. This can be used to pass flags to the structure e.g. for string values. Reviewed-by: Günther Deschner <gd@samba.org>
* pidl/NDR/Parser: also do range checks on the array sizeStefan Metzmacher2012-04-101-5/+20
| | | | | | | | metze The last 8 patches address bug #8815 (PIDL based autogenerated code allows overwriting beyond of allocated array; CVE-2012-1182). (cherry picked from commit 0b9d59d256a74594e89467e5ebe4e62c25c9572e)
* pidl/NDR/Parser: do array range validation in ParseArrayPullGetLength()Stefan Metzmacher2012-04-101-28/+14
| | | | | metze (cherry picked from commit 3e0e6f56a671b40b21c37838ff292fe8902889bb)
* pidl/NDR/Parser: use helper variables for array size and lengthStefan Metzmacher2012-04-101-7/+15
| | | | | metze (cherry picked from commit e94415cf237d1e434daa5da70e6df0b4b6926bae)
* pidl/NDR/Parser: remember if we already know the array lengthStefan Metzmacher2012-04-101-1/+7
| | | | | metze (cherry picked from commit 25f68811af3399c6148fa5d31d932465e27a2125)
* pidl/NDR/Parser: use ParseArrayPullGetLength() to get the number of array ↵Stefan Metzmacher2012-04-101-5/+1
| | | | | | | | | | elements (bug #8815 / CVE-2012-1182) An anonymous researcher and Brian Gorenc (HP DVLabs) working with HP's Zero Day Initiative program have found this and notified us. metze (cherry picked from commit 8e99484dec90690ec1e00c17580150278963e063)
* pidl/NDR/Parser: split off ParseArrayPullGetSize() and ParseArrayPullGetLength()Stefan Metzmacher2012-04-101-13/+42
| | | | | metze (cherry picked from commit dc9c68c8992db8225c93043757c4d33b8814c428)
* pidl/NDR/Parser: simplify logic in DeclareArrayVariables*()Stefan Metzmacher2012-04-101-8/+6
| | | | | metze (cherry picked from commit d15b71523d228f78f317f44181900dbf10b52e33)
* pidl/NDR/Parser: declare all union helper variables in ParseUnionPull()Stefan Metzmacher2012-04-101-2/+2
| | | | | metze (cherry picked from commit 94622cea2b2f4914b4ced35e952680c20cc4985b)
* idl: add to_null propertyDavid Disseldorp2012-01-161-1/+8
| | | | | | | | | | | | | to_null specifies that character conversion should only occur until the null pointer in an array based string. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Jan 14 00:51:54 CET 2012 on sn-devel-104 The last 5 patches address bug #8606 (Intermittent print job failures caused by character conversion errors).
* idl: add parser for the to_null propertyDavid Disseldorp2012-01-161-1/+5
| | | | | | Compile into a ndr_pull_charset_to_null call. Signed-off-by: Jeremy Allison <jra@samba.org>
* pidl: add an include for "ntdomain.h" for s3 server stubs.Günther Deschner2011-04-051-0/+1
| | | | | Guenther (cherry picked from commit 9115615663edf82afde5a3c934b53d53a0e508f0)
* pidl:Samba4/NDR/Client: fix arguments to warning()Stefan Metzmacher2011-03-111-1/+1
| | | | | | We want the file:line: information displayed. metze
* pidl:Samba4/NDR/Parser: fix compiler warnings in 'pipe' related codeStefan Metzmacher2011-03-111-3/+3
| | | | metze
* pidl: add support for 'pipe' at the NDR layerStefan Metzmacher2011-03-105-18/+380
| | | | metze
* pidl/idl.yp: fill 'pipe' elements with array and countStefan Metzmacher2011-03-102-32/+80
| | | | metze
* pidl:NDR/Client: skip all functions if pipe elements are usedStefan Metzmacher2011-03-101-0/+18
| | | | | | We don't support pipe at the dcerpc level yet. metze
* pidl:NDR/Client: skip sync functions if pipe elements are usedStefan Metzmacher2011-03-101-0/+34
| | | | metze
* pidl:Python: don't generate functions with pipe elementsStefan Metzmacher2011-03-101-1/+10
| | | | metze
* pidl:Samba3/ClientNDR: don't generate stubs for functions with pipe elementsStefan Metzmacher2011-03-101-0/+11
| | | | metze
* pidl/NDR: add ContainsPipe() functionStefan Metzmacher2011-03-101-1/+15
| | | | metze
* pidl/Typelist: add is_fixed_size_scalar()Stefan Metzmacher2011-03-101-2/+16
| | | | metze
* pidl/Typelist: dnsp_name and dnsp_string are scalar referencesStefan Metzmacher2011-03-101-1/+2
| | | | metze
* pidl Add support for uid_t and gid_t typesAndrew Bartlett2011-03-013-2/+6
| | | | | | | | | These are mapped to uint64_t, which should be big enough. This is proposed to be used for internal Samba representations, where it would be more painful to convert all the callers to an uint64_t calling convention. Andrew Bartlett
* Revert "Fix alignment issues in SPOOLSS "BUFFER" marshalling."Stefan Metzmacher2011-02-281-7/+0
| | | | | | | | This reverts commit 187f695469071d0550613e037b36170facb85460. This is the wrong fix. metze
* Fix alignment issues in SPOOLSS "BUFFER" marshalling.Jeremy Allison2011-02-181-0/+7
| | | | | | | Guenther and Metze please check ! Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Feb 18 18:49:55 CET 2011 on sn-devel-104
* pidl: support using pidl from top level directoryAndrew Tridgell2011-02-071-2/+7
| | | | | | | | | | | | pidl needs to know if it is being used within the samba tree or not, to get the names of some include files right. This adds support for using pidl in the top level directory of a Samba build This change also makes it clear that is_intree() is a boolean function. Previously it returned different values for Samba3 and Samba4, but there is nothing that depends on that Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pidl:Samba4/NDR/Parser: fix ndr_pull/ndr_push mismatchStefan Metzmacher2011-02-011-1/+1
| | | | metze
* pidl:Samba4/NDR/Parser: add support for 'ms_union' style aligmentStefan Metzmacher2011-02-011-2/+12
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Feb 1 12:13:45 CET 2011 on sn-devel-104
* pidl:Samba4/NDR/Parser: only do the switch type alignment when we have a ↵Stefan Metzmacher2011-02-011-7/+8
| | | | | | | | | switch type This doesn't change the logic, it just doesn't call the same aligment function twice. metze
* pidl:NDR: add support for 'ms_union' property.Stefan Metzmacher2011-02-012-46/+54
| | | | metze
* pidl:Typelist: fix perl warnings about recursiv function callsStefan Metzmacher2011-01-261-0/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 26 10:59:04 CET 2011 on sn-devel-104
* pidl:Samba3/ServerNDR: correctly initialise ndr_push structStefan Metzmacher2011-01-261-0/+6
| | | | | | | | We need to copy the ptr_count from the ndr_pull struct to the ndr_push struct, otherwise we'll reuse full pointer ids, which will cause the client to fail in the ndr unmarshalling. metze
* pidl:Samba4/NDR/Client: remove compat mode for dcerpc_pipe based bindingsStefan Metzmacher2011-01-211-57/+0
| | | | | | | | | | The only consumer "openchange" uses the dcerpc_binding_handle based functions now. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jan 21 08:16:25 CET 2011 on sn-devel-104
* pidl:wscript: don't warn about pidl gammar file changes for nowStefan Metzmacher2011-01-181-2/+4
| | | | | | | | | | We may add some logic that uses git diff HEAD to detect this changes in developer mode later again. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jan 18 08:10:06 CET 2011 on sn-devel-104
* pidl:Samba4/Python: fix memory leak in _ndr_print functionsStefan Metzmacher2011-01-061-1/+6
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jan 6 14:34:31 CET 2011 on sn-devel-104
* pidl/wscript: only warn about grammar file changesStefan Metzmacher2011-01-061-4/+4
| | | | | | | autobuild should protect us from having grammar files and generated files out of sync. metze
* pidl/wscript: let the developer use the standalone build with yappStefan Metzmacher2011-01-051-10/+22
| | | | | | Waf isn't happy when files in the source directory are changed. metze
* pidl:Samba4/Python: avoid ';;' in generated C code.Stefan Metzmacher2011-01-051-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 5 11:10:34 CET 2011 on sn-devel-104
* pidl:Samba4/Python: fix segfault when setting pointers to scalars.Stefan Metzmacher2011-01-051-0/+3
| | | | metze
* pidl: regenerate lib/Parse/Pidl/Expr.pm from expr.ypStefan Metzmacher2011-01-051-36/+36
| | | | metze
* pidl: sync idl.yp with the CPP changesStefan Metzmacher2011-01-051-2/+8
| | | | | | This is taken from commit 21b0d5e3b10711e6ce3bfad0c1ee2da09a60e232. metze
* Fix some formatting.Jelmer Vernooij2011-01-031-3/+3
|
* Use fail_on_null.Jelmer Vernooij2011-01-031-1/+1
|
* wmi: Remove unnecessary noprint statements.Jelmer Vernooij2011-01-011-4/+0
|
* pidl: Add prototype for init function in pidl-generated Python bindings.Jelmer Vernooij2010-12-181-0/+1
|
* pidl: Use system pytalloc if possible.Jelmer Vernooij2010-12-181-1/+1
|
* pidl:Samba4/Python.pm: ignore "SUBCONTEXT" levelsStefan Metzmacher2010-12-101-9/+21
| | | | | | | These are only important for the NDR marshalling and not for the python bindings. metze
* pidl:Samba4/Python.pm: don't handle scalar reference types specialStefan Metzmacher2010-12-101-10/+9
| | | | | | | The only special thing is that don't need get_value_of(), all other checks are needed. metze