[Date Prev][Date Next]
(ITS#6402) Mismatched parentheses in LBER_INVALID macro
Full_Name: Julian Foad
Version: CVS head (include/lber.h r1.111)
Submission from: (NULL) (220.127.116.11)
The definition of the macro LBER_INVALID in 'include/lber.h' has mismatched
(unbalanced) parentheses, meaning that it cannot be used as a valid C expression
This error was noticed when parsing the file with 'ctypesgen' as part of
building the ctypes-python bindings of Subversion.
The patch to fix it, in Unidiff format, looks like this:
#define LBER_INVALID(t) (((t) & (ber_tag_t) 0x080UL) \
- && (((t) & (ber_tag_t) ~ 0x0FF))
+ && ((t) & (ber_tag_t) ~ 0x0FF))
I uploaded the patch file; URL is filled in below.
The macro is not used within the openldap source, so this problem and this fix
makes no difference to the building and testing of openldap itself.