public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/1162] New: opendir("...") doesnt fails, readdir segfaults
@ 2005-08-03 20:06 alex at fsn dot hu
2005-08-03 21:03 ` [Bug libc/1162] " alex at fsn dot hu
0 siblings, 1 reply; 2+ messages in thread
From: alex at fsn dot hu @ 2005-08-03 20:06 UTC (permalink / raw)
To: glibc-bugs
Passing 3 or more dots to opendir doesnt fails on the systems I tested (sorry, I
dont have time nor cpu power to test on vanilla sources).
After opendir returns a semi-valid identifier, calling readdir causes a
segmentation fault.
Sample code:
----
#include <dirent.h>
main()
{
struct dirent *e;
DIR *d = opendir("..."); // 3 or more dots
if (d < 0)
{
perror("Good, survived. Error: ");
exit(1);
}
printf("Bad, will fail...\n");
e = readdir(d);
}
----
Tested systems:
Slackware/x86
* glibc: 2.3.2
* gcc: 3.2.3
* kernel: 2.4.25-grsec
Gentoo/ppc
* glibc: 2.3.4
* gcc: 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)
* kernel: 2.4.23-ben1
--
Summary: opendir("...") doesnt fails, readdir segfaults
Product: glibc
Version: 2.3.4
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: alex at fsn dot hu
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: powerpc-unknown-linux-gnu and i486-slackware-linux
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1162
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libc/1162] opendir("...") doesnt fails, readdir segfaults
2005-08-03 20:06 [Bug libc/1162] New: opendir("...") doesnt fails, readdir segfaults alex at fsn dot hu
@ 2005-08-03 21:03 ` alex at fsn dot hu
0 siblings, 0 replies; 2+ messages in thread
From: alex at fsn dot hu @ 2005-08-03 21:03 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From alex at fsn dot hu 2005-08-03 21:02 -------
OMG, what did happened to me? Of course this is bad.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1162
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-03 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-03 20:06 [Bug libc/1162] New: opendir("...") doesnt fails, readdir segfaults alex at fsn dot hu
2005-08-03 21:03 ` [Bug libc/1162] " alex at fsn dot hu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).