The Samba-Bugzilla – Attachment 12231 Details for
Bug 11838
LDAP Search Attribute-"Range" Error if "Range" stars with a capital letter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for master.
0001-s4-ldb-Canonicalize-case-before-sscanf-search.patch (text/plain), 1.23 KB, created by
Jeremy Allison
on 2016-06-28 22:15:34 UTC
(
hide
)
Description:
git-am fix for master.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2016-06-28 22:15:34 UTC
Size:
1.23 KB
patch
obsolete
>From 2da3f6512b91853d4f2c4aff8ffc885e90579cc6 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Tue, 28 Jun 2016 15:13:26 -0700 >Subject: [PATCH] s4: ldb: Canonicalize case before sscanf search. > >https://bugzilla.samba.org/show_bug.cgi?id=11838 > >Signed-off-by: <sdb.tomcat@gmail.com> >Reviewed-by: Jeremy Allison <jra@samba.org> >--- > source4/dsdb/samdb/ldb_modules/ranged_results.c | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/source4/dsdb/samdb/ldb_modules/ranged_results.c b/source4/dsdb/samdb/ldb_modules/ranged_results.c >index 60d7503..5af62b1 100644 >--- a/source4/dsdb/samdb/ldb_modules/ranged_results.c >+++ b/source4/dsdb/samdb/ldb_modules/ranged_results.c >@@ -211,6 +211,13 @@ static int rr_search(struct ldb_module *module, struct ldb_request *req) > if (strncasecmp(p, ";range=", strlen(";range=")) != 0) { > continue; > } >+ /* >+ * The sscanf below is looking for lower case but >+ * the check above ignores case. Canonicalize as >+ * lower case. >+ * https://bugzilla.samba.org/show_bug.cgi?id=11838 >+ */ >+ memcpy(p, ";range=", strlen(";range=")); > end = (unsigned int)-1; > if (sscanf(p, ";range=%u-*", &start) != 1) { > if (sscanf(p, ";range=%u-%u", &start, &end) != 2) { >-- >2.8.0.rc3.226.g39d4020 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
abartlet
:
review-
Actions:
View
Attachments on
bug 11838
:
12231
|
12232
|
12247