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 598637 Details for
Bug 621953
function readdir_r appears to return data beyond the buffer (overflow)
[?]
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]
readdir.patch
readdir.patch (text/plain), 842 bytes, created by
Peter Schiffer
on 2012-07-17 13:47:45 UTC
(
hide
)
Description:
readdir.patch
Filename:
MIME Type:
Creator:
Peter Schiffer
Created:
2012-07-17 13:47:45 UTC
Size:
842 bytes
patch
obsolete
>--- readdir.3.orig 2012-07-17 11:38:58.000000000 +0200 >+++ readdir.3 2012-07-17 15:44:18.862536635 +0200 >@@ -89,6 +89,31 @@ > Invalid directory stream descriptor \fIdir\fP. > .SH "CONFORMING TO" > SVr4, 4.3BSD, POSIX.1-2001 >+.SH NOTES >+Since POSIX.1 does not specify the size of the >+.I d_name >+field, and other nonstandard fields may precede that field within the >+.I dirent >+structure, portable applications that use >+.BR readdir_r () >+should allocate the buffer whose address is passed in >+.IR entry >+as follows: >+.in +4n >+.nf >+ >+len = (offsetof(struct dirent, d_name) + >+ pathconf(dirpath, _PC_NAME_MAX) + 1 + sizeof(long)) >+ & -sizeof(long); >+ >+entryp = malloc(len); >+ >+.fi >+.in >+(POSIX.1 requires that >+.I d_name >+is the last field in a >+.IR "struct dirent" .) > .SH "SEE ALSO" > .BR read (2), > .BR closedir (3),
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 621953
:
437184
|
587263
|
598637
|
598670