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 161927 Details for
Bug 253639
DevIL sigsegv from ilSaveF()
[?]
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.
small test program
bug.c (text/x-csrc), 772 bytes, created by
John Ellson
on 2007-08-20 22:33:54 UTC
(
hide
)
Description:
small test program
Filename:
MIME Type:
Creator:
John Ellson
Created:
2007-08-20 22:33:54 UTC
Size:
772 bytes
patch
obsolete
>#include <IL/il.h> >#include <IL/ilu.h> > >int main (int argc, char *argv[]) >{ > ILuint ImgId; > ILenum Error; > FILE *f; > > if (!argc) { > fprintf(stderr, "Needs a source image\n"); > return -1; > } > > if (ilGetInteger(IL_VERSION_NUM) < IL_VERSION || > iluGetInteger(ILU_VERSION_NUM) < ILU_VERSION) { > fprintf(stderr, "DevIL version is different...exiting!\n"); > return -1; > } > > ilInit(); > ilGenImages(1, &ImgId); > ilBindImage(ImgId); > ilLoadImage(argv[1]); > >#if 0 > /* this works */ > ilEnable(IL_FILE_OVERWRITE); > ilSaveImage("bug.jpg"); >#endif > >#if 1 > /* this fails */ > f = fopen("bug.jpg", "w+"); > ilSaveF(IL_JPG, f); > fclose(f); >#endif > > ilDeleteImages(1, &ImgId); > > while ((Error = ilGetError())) { > fprintf(stderr, "Error: %s\n", iluErrorString(Error)); > } > > 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 253639
: 161927