1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/librpc
Andrew Tridgell 1c25f5ebca libndr: moved the NDR_* flags to have less overlap
We have 3 different types of flags values in our NDR layer. We've
recently found bugs where these types of flags have been mixed up,
especially by people adding hand written ndr code for tricky
structures. We previously got away with this because (for example)
NDR_SCALARS and NDR_IN had the same value, so mixing up the two
concepts sometimes worked. Unfortunately it also led to bugs where we
didn't do what was expected, such as in our smbtorture ndr test suite,
where passing a ndr_flags value of zero led to only checking that two
empty structures were equal.

This changes the values of the NDR_IN|NDR_OUT and
NDR_SCALARS|NDR_BUFFERS values to be in different bit ranges, and adds
macros for checking the validity of passed in flags. A followup patch
modifies the ndr calls to use these macros, and pidl to generate
them. This should catch misuse of the APIs.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08 03:35:27 +02:00
..
gen_ndr waf-idl: put the gen_ndr/README file for source3 back 2010-07-19 22:17:17 +10:00
idl security.idl add new well-known SIDs 2011-08-31 09:53:31 +02:00
ndr libndr: moved the NDR_* flags to have less overlap 2011-09-08 03:35:27 +02:00
rpc libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol 2011-06-20 08:12:03 +02:00
tools ndrdump - make "in_pipes" and "out_pipes" const 2011-03-23 08:37:24 +01:00
build_idl.sh s3-build: remove --samba3-ndr-client from build_idl.sh script. 2011-02-02 20:53:15 +01:00
ndr_krb5pac.pc.in librpc: make NDR_KRB5PAC a shared library (libndr-krb5pac.so). 2011-02-14 18:54:38 +01:00
ndr_standard.pc.in s4-pkgconfig: add @LIB_RPATH@ to our link flags 2010-12-08 12:46:00 +01:00
ndr.pc.in s4-pkgconfig: add @LIB_RPATH@ to our link flags 2010-12-08 12:46:00 +01:00
tables.pl Consider shared IDL files and Samba3-specific IDL files separately, allow overriding output directory. 2008-12-16 15:42:47 +01:00
wscript_build dcerpc-binding: Install header file. 2011-08-21 03:22:05 +02:00