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 148328 Details for
Bug 200623
attr -l SEGV's when there is an xattr
[?]
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]
attr -l works fine with the patch
list_attr.patch (text/plain), 1.78 KB, created by
Sergey Satskiy
on 2007-02-19 16:33:48 UTC
(
hide
)
Description:
attr -l works fine with the patch
Filename:
MIME Type:
Creator:
Sergey Satskiy
Created:
2007-02-19 16:33:48 UTC
Size:
1.78 KB
patch
obsolete
>--- libattr/libattr.c.orig 2007-02-19 19:08:35.000000000 +0300 >+++ libattr/libattr.c 2007-02-19 19:30:01.000000000 +0300 >@@ -268,7 +268,7 @@ > attrlist_cursor_t *cursor) > { > const char *l; >- int length, count = 0; >+ int names_length, length, count = 0; > char lbuf[MAXLISTLEN]; > char name[MAXNAMELEN+16]; > unsigned int start_offset, end_offset; >@@ -280,16 +280,16 @@ > bzero(buffer, sizeof(attrlist_t)); > > if (flags & ATTR_DONTFOLLOW) >- length = llistxattr(path, lbuf, sizeof(lbuf)); >+ names_length = llistxattr(path, lbuf, sizeof(lbuf)); > else >- length = listxattr(path, lbuf, sizeof(lbuf)); >- if (length <= 0) >- return length; >+ names_length = listxattr(path, lbuf, sizeof(lbuf)); >+ if (names_length <= 0) >+ return names_length; > > start_offset = sizeof(attrlist_t); > end_offset = buffersize & ~(8-1); /* 8 byte align */ > >- for (l = lbuf; l != lbuf + length; l = strchr(l, '\0') + 1) { >+ for (l = lbuf; l != lbuf + names_length; l = strchr(l, '\0') + 1) { > if (api_unconvert(name, l, flags)) > continue; > if (flags & ATTR_DONTFOLLOW) >@@ -314,7 +314,7 @@ > attrlist_cursor_t *cursor) > { > const char *l; >- int c, count = 0; >+ int names_length, c, count = 0; > char lbuf[MAXLISTLEN]; > char name[MAXNAMELEN+16]; > unsigned int start_offset, end_offset; >@@ -325,14 +325,14 @@ > } > bzero(buffer, sizeof(attrlist_t)); > >- c = flistxattr(fd, lbuf, sizeof(lbuf)); >- if (c < 0) >- return c; >+ names_length = flistxattr(fd, lbuf, sizeof(lbuf)); >+ if (names_length < 0) >+ return names_length; > > start_offset = sizeof(attrlist_t); > end_offset = buffersize & ~(8-1); /* 8 byte align */ > >- for (l = lbuf; l != lbuf + c; l = strchr(l, '\0') + 1) { >+ for (l = lbuf; l != lbuf + names_length; l = strchr(l, '\0') + 1) { > if (api_unconvert(name, l, flags)) > continue; > c = fgetxattr(fd, l, NULL, 0);
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 200623
: 148328