Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
m2300w
m2300w-fgets-overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File m2300w-fgets-overflow.patch of Package m2300w
--- m2300w/src/m2300w.c +++ m2300w/src/m2300w.c @@ -765,7 +765,7 @@ char buffer[255]; - while ((fgets (buffer, 256, in_stream)) != NULL) { + while ((fgets (buffer, sizeof(buffer), in_stream)) != NULL) { int inpX = 0; int inpY = 0; int inpXBytes = 0; @@ -868,7 +868,7 @@ /* weitere pbm header ueberlesen - koennte mann sptereigentlich auch auswerten */ for (readHeader = 0; readHeader < 1; readHeader++) { - if (fgets (buffer, 256, in_stream) != NULL) { + if (fgets (buffer, sizeof(buffer), in_stream) != NULL) { if (verb > 3) { fprintf (stderr, "gelesener Header: %s", buffer); } --- m2300w/src/m2400w.c +++ m2300w/src/m2400w.c @@ -807,7 +807,7 @@ char buffer[255]; - while ((fgets (buffer, 256, in_stream)) != NULL) { + while ((fgets (buffer, sizeof(buffer), in_stream)) != NULL) { int inpX = 0; int inpY = 0; int inpXBytes = 0; @@ -910,7 +910,7 @@ /* weitere pbm header ueberlesen - koennte mann sptereigentlich auch auswerten */ for (readHeader = 0; readHeader < 1; readHeader++) { - if (fgets (buffer, 256, in_stream) != NULL) { + if (fgets (buffer, sizeof(buffer), in_stream) != NULL) { if (verb > 3) { fprintf (stderr, "gelesener Header: %s", buffer); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor