Commit graph

4882 commits

Author SHA1 Message Date
Ian Puleston
67164c7b61 ITS#10035 Fix setting TLSv1.3 ciphersuite 2023-04-27 15:36:40 +00:00
Howard Chu
af3f6f143e ITS#10015 libldap: fix KEEPALIVE opts from ITS#9490 2023-04-27 15:04:45 +00:00
Howard Chu
0e0bd88604 ITS#10004: librewrite: plug potential ld leak in ldapmap 2023-04-26 17:32:59 +00:00
Howard Chu
6f2e068583 ITS#10003: ldap_open_internal_connection: fix mutex usage
Note: this is a non-standard function with no use cases
2023-04-26 17:32:32 +00:00
Howard Chu
21b9957816 ITS#9996 librewrite plug potential leak in ldapmap map_ldap_apply() 2023-04-26 16:43:18 +00:00
Quanah Gibson-Mount
da324abfca Merge remote-tracking branch 'origin/mdb.RE/0.9' into OPENLDAP_REL_ENG_2_6 2023-02-08 18:47:23 +00:00
Quanah Gibson-Mount
8f44dca45d Update MDB_VERSION_DATE for the release 2023-02-08 18:41:37 +00:00
Quanah Gibson-Mount
05b582ac0c Update release date for 0.9.30 2023-02-08 18:40:04 +00:00
Ondřej Kuzník
66c2b5ad5f ITS#9045 rlock only if there may be other threads
We can't rlock if we've registered ourselves as a writer. We can only
figure that out by checking if we're the thread that initiated the
pause: is the server paused already?
2023-01-30 18:57:18 +00:00
Howard Chu
54fae7711f ITS#9961 LMDB: fix MSVC error 2022-12-15 09:38:45 +00:00
Quanah Gibson-Mount
248ad8f9ae Merge remote-tracking branch 'origin/mdb.RE/0.9' into OPENLDAP_REL_ENG_2_6 2022-12-05 16:33:17 +00:00
Howard Chu
261a4185eb 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-05 16:29:07 +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
a6cb004975 ITS#9899 fix use of non-standard u_char/u_int types 2022-11-01 16:57:40 +00:00
Howard Chu
139943cc11 ITS#9937 libldap: fix put_simple_filter() with invalid filter
Add check for trivial input string.
2022-10-25 19:14:30 +00:00
Connor Smith
a804b5f584 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 15:45:30 +00:00
Quanah Gibson-Mount
18f6cc1609 Merge remote-tracking branch 'origin/mdb.RE/0.9' into OPENLDAP_REL_ENG_2_6 2022-10-04 14:29:39 +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
e8566d0958 ITS#9817 One more leak plugged 2022-09-12 20:45:33 +00:00
Ondřej Kuzník
681d7612b3 ITS#9817 Fix leaks and nul-terminate string passed to ldap_bv2dn 2022-09-12 20:43:21 +00:00
Howard Chu
840944e26f 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-29 16:38:51 +00:00
Howard Chu
c5c8c06a8b ITS#9904 ldif_open_url: check for ber_strdup failure
Code present since 1999, df8f7cbb9b
2022-08-24 18:22:42 +00:00
Michael Osipov
2479c22f7e ITS#9901 libldap: fix non-std printf %p arguments 2022-08-24 18:18:35 +00:00
Howard Chu
9a67eb49d1 ITS#9899 libldap: fix non-std syntax in cyrus.c
Broken in 3cd50fa8b3 for ITS#9189
2022-08-24 18:18:26 +00:00
Howard Chu
0020cdbdf8 ITS#9894 don't use gmake-specific features 2022-08-24 15:52:17 +00: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
Ondřej Kuzník
832bcdfedf ITS#9876 Some more leaks plugged 2022-07-11 16:40:42 +00:00
Howard Chu
b98cfc24a8 ITS#9876 Coverity fixes: plug memleaks 2022-07-07 15:48:31 +00:00
Howard Chu
e2028b0d01 Fix spurious fallthru warning 2022-06-09 23:00:48 +01:00
Ondřej Kuzník
c0bc8b4535 ITS#9817 Introduce DN and filter manipulation tools 2022-06-07 15:59:06 +00:00
Howard Chu
6675535cd6 ITS#9157: check for NULL ld 2022-06-03 20:29:24 +00:00
Yi Zhao
71f24015c3 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-12 15:43:40 +00:00
Helmut Grohne
a7d00f910b ITS#9841 fix librewrite declaration of calloc 2022-05-12 15:41:48 +00:00
Ondřej Kuzník
9633818ae8 ITS#9811 Allow newlines at end of included file 2022-03-21 21:52:27 +00:00
Ondřej Kuzník
214c1f2d3d ITS#9803 Drop connection when receiving non-LDAP data 2022-03-21 16:38:59 +00:00
Howard Chu
a629bf5cd5 ITS#9436 libldap: OpenSSL 3.0 compat 2022-02-04 20:30:49 +00:00
Orgad Shaneh
ddfc35ea91 ITS#9791 Fix compilation with openssl exclusions 2022-01-31 20:02:56 +00:00
Ondřej Kuzník
c810c0b531 ITS#9781 Relax refcount assertion for referrals 2022-01-19 16:07:46 +00:00
Quanah Gibson-Mount
582722e926 Happy New Year! 2022-01-07 18:41:20 +00:00
Howard Chu
8f7f210fe7 ITS#9743 init client socket port
also silence meaningless warning
2021-11-11 17:26:37 +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
fa3b4d2f36 ITS#9673 - Start fully tracking symbols for versioning 2021-10-18 20:22:40 +00:00