Commit graph

4878 commits

Author SHA1 Message Date
Quanah Gibson-Mount
10d4461634 Merge remote-tracking branch 'origin/mdb.RE/0.9' 2022-12-05 16:21:51 +00:00
Howard Chu
31e6efeb07 ITS#9955 liblunicode: fix buffer size in UTF8bvnormalize
output buffer may overrun 1 byte for specially crafted approxMatch search filters.
Not exploitable, no operational or security impact.
2022-12-01 14:58:37 +00:00
Howard Chu
f16ef18fc9 ITS#9916 2022-11-28 23:41:00 +00:00
Howard Chu
139831a5c0 ITS#9916 liblmdb: use alternate MDB_page2 struct for some accesses
fakepage pointers are only guaranteed to be 2-byte aligned. Use a
2-byte aligned struct definition when referencing 2-byte page members
if a page pointer possibly points to a fakepage.
2022-11-28 23:18:56 +00:00
Quanah Gibson-Mount
0c2168993b ITS#9806 2022-11-28 17:51:38 +00:00
Howard Chu
d2fa5806d8 ITS#9806 LMDB page_split: key threshold depends on page size
32 was chosen for page size of 4KB. Not large nough for 16KB pages.
2022-11-28 14:32:33 +00:00
Howard Chu
e85a624663 ITS#9899 fix use of non-standard u_char/u_int types 2022-10-26 16:33:30 +01:00
Howard Chu
41f87c53ec ITS#9937 libldap: fix put_simple_filter() with invalid filter
Add check for trivial input string.
2022-10-20 12:38:02 +01:00
Connor Smith
6489b6a857 ITS#9925 Fix some ancient #ifdef checks
Use #elif defined(...) for HAVE_WINSOCK and MACOS. All other instances
of these macros use #ifdef or similar. A compiler may warn about them
not being defined.

In libraries/liblber/sockbuf.c, (DOS && PCNFS) and (DOS && NCSA) were
replaced with HAVE_PCNFS and HAVE_NCSA, respectively. It seems logical
to do the same at the only remaining occurrence of DOS, PCNFS, and NCSA.

Use #if HARDCODE_DATA consistently, replacing two instances of #ifdef.
HARDCODE_DATA is always defined, and this way you can set HARDCODE_DATA
to 0 and have it work, rather than it going down the wrong branch and
failing in these two cases.
2022-10-13 03:37:47 +00:00
Quanah Gibson-Mount
9de1273a63 Merge remote-tracking branch 'origin/mdb.RE/0.9' 2022-10-04 15:50:15 +00:00
Quanah Gibson-Mount
d87d682b6d Prepare for release (0.9.30) 2022-10-04 14:23:03 +00:00
Quanah Gibson-Mount
ca7128ad35 ITS#9919 2022-10-03 16:40:10 +00:00
Mike Hommey
abe36745d2 ITS#9919 - Mark infrequently used functions as cold rather than manually putting them in a separate section 2022-09-27 17:30:48 +01:00
Quanah Gibson-Mount
b181666eec ITS#9030 2022-09-26 16:52:55 +00:00
Mike Hommey
4bb20ed082 ITS#9030 - Use sys/cachectl.h rather than asm/cachectl.h on mips
It also contains the cacheflush function declaration.
2022-09-23 02:39:27 +01:00
Ondřej Kuzník
1220282dd5 ITS#8196/ITS#9714 Switch to xorshift 2022-09-19 16:32:39 +00:00
Ondřej Kuzník
9d528c111d ITS#9817 One more leak plugged 2022-09-02 16:49:45 +01:00
Ondřej Kuzník
4697f4b3e0 ITS#9817 Fix leaks and nul-terminate string passed to ldap_bv2dn 2022-09-01 10:09:27 +01:00
Howard Chu
3f2abd0b2e ITS#9904 ldap_url_parsehosts: check for strdup failure
Avoid unnecessary strdup in IPv6 addr parsing, check for strdup
failure when dup'ing scheme.

Code present since 2000, 8da110a9e7
2022-08-25 17:01:13 +01:00
Howard Chu
ea8dd2d279 ITS#9904 ldif_open_url: check for ber_strdup failure
Code present since 1999, df8f7cbb9b
2022-08-24 14:40:51 +01:00
moneromooo-monero
8a76450336 lmdb: catch non-LMDB negative errors before strerror
That should hopefully shut coverity up
2022-08-22 18:51:32 +00:00
Michael Osipov
519e0c94c9 ITS#9901 libldap: fix non-std printf %p arguments 2022-08-22 16:44:05 +00:00
Howard Chu
6c9eea7306 ITS#9899 libldap: fix non-std syntax in cyrus.c
Broken in 3cd50fa8b3 for ITS#9189
2022-08-22 16:44:05 +00:00
Howard Chu
aef1c05089 ITS#9894 don't use gmake-specific features 2022-08-15 20:53:03 +00:00
Howard Chu
d47f212679 Add nonstd cbind SASL secprop
For Cyrus SASL 2.2, 8735185e9d
2022-07-28 15:46:07 +00:00
Ondřej Kuzník
c07e961d40 ITS#9876 Some more leaks plugged 2022-07-08 15:45:55 +00:00
Howard Chu
78618653c2 ITS#9876 Coverity fixes: plug memleaks 2022-07-05 03:49:34 +01:00
Howard Chu
e2028b0d01 Fix spurious fallthru warning 2022-06-09 23:00:48 +01:00
Ondřej Kuzník
56877e333b ITS#9817 Introduce DN and filter manipulation tools 2022-06-07 09:47:41 +01:00
Howard Chu
0b78166a47 ITS#9157: check for NULL ld 2022-05-21 16:39:29 +01:00
Yi Zhao
d75de4d6e9 ITS#9840 - libraries/Makefile.in: ignore the mkdir errors
Ignore the mkdir errors to fix the parallel build failure:

../../build/shtool mkdir -p TOPDIR/tmp-glibc/work/cortexa15t2hf-neon-wrs-linux-gnueabi/openldap/2.5.9-r0/image/usr/lib
mkdir: cannot create directory 'TOPDIR/tmp-glibc/work/cortexa15t2hf-neon-wrs-linux-gnueabi/openldap/2.5.9-r0/image/usr/lib': File exists

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
2022-05-09 16:48:43 +00:00
Helmut Grohne
f5f5231d29 ITS#9841 fix librewrite declaration of calloc 2022-05-05 20:29:40 +01:00
Howard Chu
1c197bbef9 Revert "ITS#9828 Fix ldap_count_values_len pointer confusion"
This reverts commit 7e7fad5e03.
2022-04-25 17:26:37 +01:00
Ondřej Kuzník
7e7fad5e03 ITS#9828 Fix ldap_count_values_len pointer confusion 2022-04-21 12:14:06 +01:00
Ondřej Kuzník
0dae0704c0 ITS#9811 Allow newlines at end of included file 2022-03-21 17:48:34 +00:00
Ondřej Kuzník
e8813b12b6 ITS#9803 Drop connection when receiving non-LDAP data 2022-03-08 17:28:05 +00:00
Howard Chu
e62d05d26c ITS#9436 libldap: OpenSSL 3.0 compat 2022-02-03 16:42:44 +00:00
Orgad Shaneh
04093763f9 ITS#9791 Fix compilation with openssl exclusions 2022-01-25 15:41:07 +00:00
Ondřej Kuzník
f4e74d51f5 ITS#9781 Relax refcount assertion for referrals 2022-01-19 10:35:01 +00:00
Quanah Gibson-Mount
788e9592ba Happy New Year! 2022-01-07 18:40:00 +00:00
Ondřej Kuzník
19d4a69882 ITS#9642 Notify runner of any changes to the runqueue 2021-12-15 20:40:53 +00:00
Ondřej Kuzník
e3905c9898 ITS#9596 Let libldap keep explicit port 0 as that 2021-12-14 16:30:54 +00:00
Howard Chu
69727ebbc8 ITS#9743 init client socket port
also silence meaningless warning
2021-11-09 18:06:18 +00:00
Quanah Gibson-Mount
f5138f290f ITS#9723 2021-10-26 16:34:16 +00:00
Howard Chu
c4085fdfe6 ITS#9723 clear C_EOF on cursor with MDB_FIRST_DUP 2021-10-26 16:40:38 +01:00
Quanah Gibson-Mount
4a87d7aad2 ITS#9673 - Start fully tracking symbols for versioning 2021-10-18 17:56:13 +00:00
Quanah Gibson-Mount
783fcbe8ed ITS#9673 - Fix library symbol versioning 2021-09-20 18:00:36 +00:00
Howard Chu
d285c05106 ITS#9686 plug peercert memleak 2021-09-15 13:03:13 +01:00
Howard Chu
6c0dc99389 ITS#9668 ldap_int_tls_connect: isdigit() requires unsigned char 2021-09-06 21:14:21 +01:00
Quanah Gibson-Mount
617e6974f7 ITS#9648 - Fix request.c for MAXPATHLEN not result.c Fixes 0412814c55 2021-08-31 16:33:57 +00:00