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 686605 Details for
Bug 889935
CVE-2012-5667 grep: Integer overflow leading to heap-based buffer-overflow when reading large lines
[?]
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]
Proposed fix (to cover boundary case)
grep-2.6.3-mem-exhausted.patch (text/plain), 569 bytes, created by
Jaroslav Škarvada
on 2013-01-24 09:44:09 UTC
(
hide
)
Description:
Proposed fix (to cover boundary case)
Filename:
MIME Type:
Creator:
Jaroslav Škarvada
Created:
2013-01-24 09:44:09 UTC
Size:
569 bytes
patch
obsolete
>diff -up grep-2.6.3/src/main.c.orig grep-2.6.3/src/main.c >--- grep-2.6.3/src/main.c.orig 2013-01-24 10:01:14.000000000 +0100 >+++ grep-2.6.3/src/main.c 2013-01-24 10:06:11.040824147 +0100 >@@ -479,6 +479,11 @@ fillbuf (size_t save, struct stats const > int cc = 1; > char *readbuf; > size_t readsize; >+ const size_t max_save = INT_MAX / 2; >+ >+ /* Limit the amount of saved data to INT_MAX to fix CVE-2012-5667 */ >+ if (save > max_save) >+ error (2, 0, _("line too long")); > > /* Offset from start of buffer to start of old stuff > that we want to save. */
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 889935
:
686585
| 686605