Accepting request 629476 from home:dmulder:branches:ldb_fix

- Add fix_ldb_mod_op_test.patch: Fix missing NULL terminator in
  ldb_mod_op_test testsuite
- Update to 1.3.5
  + Security fix for CVE-2018-1140 (NULL pointer de-reference,
    bug #13374).
- 1.3.4
  + Fix memory leaks and missing error checks (bug #13459, #13471,
    #13475).
  + Fix fallback to full scan (performance regression) on
    one-level search (bug #13448).
  + Fix read corruption (missing results) during writes,
    particularly during a Samba subtree rename (bug #13452).

OBS-URL: https://build.opensuse.org/request/show/629476
OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=125
This commit is contained in:
James McDonough 2018-08-15 22:13:10 +00:00 committed by Git OBS Bridge
parent 4f76a2cd37
commit 934e8f88bb
7 changed files with 68 additions and 15 deletions

31
fix_ldb_mod_op_test.patch Normal file
View File

@ -0,0 +1,31 @@
commit f8b368c9f0c2a34b6d15303a9d6facd762e1a517
Author: Andrew Bartlett <abartlet@samba.org>
Date: Thu Mar 8 14:01:50 2018 +1300
ldb: Fix missing NULL terminator in ldb_mod_op_test testsuite
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
diff --git a/lib/ldb/tests/ldb_mod_op_test.c b/lib/ldb/tests/ldb_mod_op_test.c
index d024ab66e3e..59fc766e918 100644
--- a/tests/ldb_mod_op_test.c
+++ b/tests/ldb_mod_op_test.c
@@ -3099,7 +3099,7 @@ static int ldb_unique_index_test_setup(void **state)
"dn: @INDEXLIST\n"
"@IDXATTR: cn\n"
"\n";
- const char *options[] = {"modules:unique_index_test"};
+ const char *options[] = {"modules:unique_index_test", NULL};
ret = ldb_register_module(&ldb_unique_index_test_module_ops);
@@ -3201,7 +3201,7 @@ static int ldb_non_unique_index_test_setup(void **state)
"dn: @INDEXLIST\n"
"@IDXATTR: cn\n"
"\n";
- const char *options[] = {"modules:unique_index_test"};
+ const char *options[] = {"modules:unique_index_test", NULL};
ret = ldb_register_module(&ldb_unique_index_test_module_ops);

View File

@ -1,11 +0,0 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAABAgAGBQJa6hPTAAoJEEeTkWETCEAllFAIAI7UeyrNimG/Mkf4y+z8BbnU
9IXXpn+aC18ULYanc0ZJ6y0LxKS3EnKDos6CA85YQcL3KAeBX86hfPJ1f/LCafhd
7L6L93xJsSxim2UhgkL6kks8S8IiahjLc8SHvlaznHyrCFAAIKftlkUpQvhxmp2K
XFrrWtb/2TvvLhH4tkjf0f6ZbJop5kaVvMD49KO382u1wX4Glw+SdhNBn43hg7tW
FZpJwC8HyuJ741w6EkqRSvTRjUqIb9OiIJr07DtnbSEpzVQ5ioowxYkopTjeTTII
o4JOvzB/nZKZClHL/yJ921xdSnhYtxWIJhI4KGobD4kxUIZeGP2PYUnIoSlRovg=
=lGEB
-----END PGP SIGNATURE-----

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2b3070f6127d9684e928038abad441e18aef8c2ce703c3ec5d57fadd4ecdfa91
size 1370823

11
ldb-1.3.5.tar.asc Normal file
View File

@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQFJBAABCgAzFiEEkUejOXGVGO6QEby1R5ORYRMIQCUFAltymLkVHHNhbWJhLWJ1
Z3NAc2FtYmEub3JnAAoJEEeTkWETCEAlkpYIAK+8BqdhMKah1mIebqFahqqqSYVj
piAViKtkeu7/wn7S/D/lJ+XwTGT/VdWOgwMQGCrmDqH0YWyNR8KUAum57kdtfMbA
18pHesusufAVvAGlDRgEtyKI/Pt6ma7DeBWrYt4PgYBmVBWhbZBmEkWz2bysAtnT
cPrMROaiMoMno86yEISXFbjC+pO2xx4dL7sXuINn9CWnJ3ErMVyzBg3gsahL3cYN
yJ9Rykc57Ns0HAOhuyjp1vR4F2yWkk7OeHMZJAVkXmqfBFq64p6ZWhBLslPNyhMs
vUijQuLX8dW5Qq0kNWgVWrqVJtGTbdHLsW9vGN+9a1JFf6xgzXH+AtHdcWc=
=VZ1L
-----END PGP SIGNATURE-----

3
ldb-1.3.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c26efac83efea0b467a4afab413ed91557f0c299428114bf92f72fb7d03b4f6
size 1374214

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Wed Aug 15 21:52:13 UTC 2018 - dmulder@suse.com
- Add fix_ldb_mod_op_test.patch: Fix missing NULL terminator in
ldb_mod_op_test testsuite
-------------------------------------------------------------------
Tue Aug 14 20:35:30 UTC 2018 - dmulder@suse.com
- Update to 1.3.5
+ Security fix for CVE-2018-1140 (NULL pointer de-reference,
bug #13374).
- 1.3.4
+ Fix memory leaks and missing error checks (bug #13459, #13471,
#13475).
+ Fix fallback to full scan (performance regression) on
one-level search (bug #13448).
+ Fix read corruption (missing results) during writes,
particularly during a Samba subtree rename (bug #13452).
-------------------------------------------------------------------
Wed May 23 10:36:02 UTC 2018 - jmcdonough@suse.com

View File

@ -55,7 +55,7 @@ BuildRequires: python-talloc-devel >= %{talloc_version}
BuildRequires: libtirpc-devel
%endif
Url: https://ldb.samba.org/
Version: 1.3.3
Version: 1.3.5
Release: 0
Summary: An LDAP-like embedded database
License: GPL-3.0-or-later
@ -65,6 +65,7 @@ Source1: https://download.samba.org/pub/ldb/ldb-%{version}.tar.asc
Source2: ldb.keyring
Source4: baselibs.conf
Patch0: ldb-python3.5-fix-soabi_name.patch
Patch1: fix_ldb_mod_op_test.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -145,6 +146,7 @@ LDB library.
%prep
%setup -n ldb-%{version} -q
%patch0 -p1
%patch1 -p1
%build
%if 0%{?suse_version} > 1110