Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 268451 Details for
Bug 399041
If a map entry is > 255 chars, automounter fails
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix off-by-one error for lookup of map keys exactly 255 characters long.
autofs-5.0.2-fix-off-by-one-lookup.patch (text/plain), 1.86 KB, created by
Ian Kent
on 2007-11-26 04:10:17 UTC
(
hide
)
Description:
Patch to fix off-by-one error for lookup of map keys exactly 255 characters long.
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2007-11-26 04:10:17 UTC
Size:
1.86 KB
patch
obsolete
>diff --git a/modules/lookup_file.c b/modules/lookup_file.c >index 23ea07d..550bf5c 100644 >--- a/modules/lookup_file.c >+++ b/modules/lookup_file.c >@@ -1047,7 +1047,7 @@ int lookup_mount(struct autofs_point *ap, const char *name, int name_len, void * > > debug(ap->logopt, MODPREFIX "looking up %s", name); > >- key_len = snprintf(key, KEY_MAX_LEN, "%s", name); >+ key_len = snprintf(key, KEY_MAX_LEN + 1, "%s", name); > if (key_len > KEY_MAX_LEN) > return NSS_STATUS_NOTFOUND; > >diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c >index 93a1b40..b8484a2 100644 >--- a/modules/lookup_ldap.c >+++ b/modules/lookup_ldap.c >@@ -2053,7 +2053,7 @@ int lookup_mount(struct autofs_point *ap, const char *name, int name_len, void * > > debug(ap->logopt, MODPREFIX "looking up %s", name); > >- key_len = snprintf(key, KEY_MAX_LEN, "%s", name); >+ key_len = snprintf(key, KEY_MAX_LEN + 1, "%s", name); > if (key_len > KEY_MAX_LEN) > return NSS_STATUS_NOTFOUND; > >diff --git a/modules/lookup_nisplus.c b/modules/lookup_nisplus.c >index bb1ca42..fee8b16 100644 >--- a/modules/lookup_nisplus.c >+++ b/modules/lookup_nisplus.c >@@ -476,7 +476,7 @@ int lookup_mount(struct autofs_point *ap, const char *name, int name_len, void * > > debug(ap->logopt, MODPREFIX "looking up %s", name); > >- key_len = snprintf(key, KEY_MAX_LEN, "%s", name); >+ key_len = snprintf(key, KEY_MAX_LEN + 1, "%s", name); > if (key_len > KEY_MAX_LEN) > return NSS_STATUS_NOTFOUND; > >diff --git a/modules/lookup_yp.c b/modules/lookup_yp.c >index e8ca8e8..5f4f95f 100644 >--- a/modules/lookup_yp.c >+++ b/modules/lookup_yp.c >@@ -567,7 +567,7 @@ int lookup_mount(struct autofs_point *ap, const char *name, int name_len, void * > > debug(ap->logopt, MODPREFIX "looking up %s", name); > >- key_len = snprintf(key, KEY_MAX_LEN, "%s", name); >+ key_len = snprintf(key, KEY_MAX_LEN + 1, "%s", name); > if (key_len > KEY_MAX_LEN) > return NSS_STATUS_NOTFOUND; >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 399041
: 268451