Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
sane-frontends
fix-buffer-overflow.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-buffer-overflow.diff of Package sane-frontends
--- src/xscanimage.c.orig 2006-01-17 16:06:16.000000000 +0100 +++ src/xscanimage.c 2006-01-17 16:32:42.000000000 +0100 @@ -1284,7 +1284,7 @@ { /* We are running in standalone mode */ /* test for pnm formats */ strncpy (testfilename, preferences.filename, sizeof (testfilename)); - testfilename[sizeof (testfilename)] = 0; + testfilename[sizeof (testfilename) - 1] = 0; g_strreverse (testfilename); if (!((!strncmp (testfilename, "mnp.", 4)) || (!strncmp (testfilename, "mgp.", 4)) || --- src/xcam.c.orig 2005-06-02 18:32:09.000000000 +0200 +++ src/xcam.c 2006-03-27 16:10:08.000000000 +0200 @@ -1289,7 +1289,7 @@ /* test for pnm formats */ strncpy (testfilename, preferences.filename, sizeof (testfilename)); - testfilename[sizeof (testfilename)] = 0; + testfilename[sizeof (testfilename) - 1] = 0; g_strreverse (testfilename); if (!((!strncmp (testfilename, "mnp.", 4)) || (!strncmp (testfilename, "mgp.", 4)) ||
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