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 596239 Details for
Bug 831322
[PATCH] fix possible buffer overflow
[?]
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]
Better fix for the heap overflow
0001-Fix-off-by-one-error-when-copying-RTF-header.patch (text/plain), 1.02 KB, created by
Petr Pisar
on 2012-07-04 15:10:12 UTC
(
hide
)
Description:
Better fix for the heap overflow
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2012-07-04 15:10:12 UTC
Size:
1.02 KB
patch
obsolete
>From 492f2ea1326d7825943f48aff31ed0ddc89fd2b7 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> >Date: Wed, 4 Jul 2012 17:04:44 +0200 >Subject: [PATCH] Fix off-by-one error when copying RTF header > >The RTF header (RTF_PREBUF) string is copied to temporary buffer. The >terminating '\0' is never accessed, so it's not needed and cannot be >written after the allocated buffer. > ><http://sourceforge.net/tracker/?func=detail&aid=2949686&group_id=70352&atid=527487> ><https://bugzilla.redhat.com/show_bug.cgi?id=831322> >--- > ytnef.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/ytnef.c b/ytnef.c >index 482ecdc..970c048 100644 >--- a/ytnef.c >+++ b/ytnef.c >@@ -1328,7 +1328,7 @@ unsigned char *DecompressRTF(variableLength *p, int *size) { > > comp_Prebuf.size = strlen(RTF_PREBUF); > comp_Prebuf.data = calloc(comp_Prebuf.size, 1); >- strcpy(comp_Prebuf.data, RTF_PREBUF); >+ memcpy(comp_Prebuf.data, RTF_PREBUF, comp_Prebuf.size); > > src = p->data; > in = 0; >-- >1.7.7.6 >
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 831322
:
591258
| 596239