Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 62594 Details for
Bug 97900
python segfaults, possibly because of an fread/fwrite bug in glibc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
crashing C program
tmpfile.c (text/plain), 503 bytes, created by
Marien Zwart (RETIRED)
on 2005-07-04 05:17:16 UTC
(
hide
)
Description:
crashing C program
Filename:
MIME Type:
Creator:
Marien Zwart (RETIRED)
Created:
2005-07-04 05:17:16 UTC
Size:
503 bytes
patch
obsolete
> >#include <stdio.h> > >#define SMALLCHUNK 13100 > >int main() >{ > FILE* myFile; > char buffer[SMALLCHUNK]; > int i; > > myFile = fopen("/tmp/crash", "w+"); > if (!myFile) { > exit(40); > } > > if (fwrite("a", 1, 1, myFile) != 1) { > exit(41); > } > > if (fread(buffer, 1, SMALLCHUNK - 1, myFile)) { > exit(42); > } > > for(i=0; i < 4097; i++) { > if(fwrite("n", 1, 1, myFile) != 1) { > exit(43); > } > > } > > return 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 Raw
Actions:
View
Attachments on
bug 97900
: 62594