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 298651 Details for
Bug 438117
CVE-2008-0053 cups: buffer overflows in HP-GL/2 filter
[?]
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.
[patch]
Upstream patch
cups-CVE-2008-0053.diff (text/plain), 1.62 KB, created by
Tomas Hoger
on 2008-03-20 08:14:45 UTC
(
hide
)
Description:
Upstream patch
Filename:
MIME Type:
Creator:
Tomas Hoger
Created:
2008-03-20 08:14:45 UTC
Size:
1.62 KB
patch
obsolete
>Index: hpgl-input.c >=================================================================== >--- hpgl-input.c (revision 7218) >+++ hpgl-input.c (revision 7219) >@@ -3,7 +3,7 @@ > * > * HP-GL/2 input processing for the Common UNIX Printing System (CUPS). > * >- * Copyright 2007 by Apple Inc. >+ * Copyright 2007-2008 by Apple Inc. > * Copyright 1993-2006 by Easy Software Products. > * > * These coded instructions, statements, and computer programs are the >@@ -48,6 +48,7 @@ > i; /* Looping var */ > char buf[262144], /* String buffer */ > *bufptr; /* Pointer into buffer */ >+ float temp; /* Temporary parameter value */ > static param_t p[MAX_PARAMS]; /* Parameter buffer */ > > >@@ -212,10 +213,10 @@ > case '-' : > case '+' : > ungetc(ch, fp); >- fscanf(fp, "%f", &(p[num_params].value.number)); >- if (num_params < MAX_PARAMS) >+ if (fscanf(fp, "%f", &temp) == 1 && num_params < MAX_PARAMS) > { >- p[num_params].type = PARAM_RELATIVE; >+ p[num_params].type = PARAM_RELATIVE; >+ p[num_params].value.number = temp; > num_params ++; > } > break; >@@ -231,10 +232,10 @@ > case '9' : > case '.' : > ungetc(ch, fp); >- fscanf(fp, "%f", &(p[num_params].value.number)); >- if (num_params < MAX_PARAMS) >+ if (fscanf(fp, "%f", &temp) == 1 && num_params < MAX_PARAMS) > { >- p[num_params].type = PARAM_ABSOLUTE; >+ p[num_params].type = PARAM_ABSOLUTE; >+ p[num_params].value.number = temp; > num_params ++; > } > break;
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 438117
: 298651