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 644666 Details for
Bug 871614
CVE-2012-4560 libssh: multiple buffer overflow flaws
[?]
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]
CVE-2012-4560-Fix-a-possible-infinite-loop-in-buffer.patch
0003-CVE-2012-4560-Fix-a-possible-infinite-loop-in-buffer.patch (text/plain), 1.22 KB, created by
Andreas Schneider
on 2012-11-14 08:52:00 UTC
(
hide
)
Description:
CVE-2012-4560-Fix-a-possible-infinite-loop-in-buffer.patch
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2012-11-14 08:52:00 UTC
Size:
1.22 KB
patch
obsolete
>From 83c41ddb6f81410caba19fde8474b3e2397f45b0 Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@cryptomilk.org> >Date: Fri, 12 Oct 2012 11:35:20 +0200 >Subject: [PATCH 03/11] CVE-2012-4560: Fix a possible infinite loop in > buffer_reinit(). > >If needed is bigger than the highest power of two or a which fits in an >integer we will loop forever. > >Signed-off-by: Andreas Schneider <asn@cryptomilk.org> >--- > src/buffer.c | 13 +++++++++---- > 1 file changed, 9 insertions(+), 4 deletions(-) > >diff --git a/src/buffer.c b/src/buffer.c >index 3ffe6de..aef7e44 100644 >--- a/src/buffer.c >+++ b/src/buffer.c >@@ -111,13 +111,18 @@ void ssh_buffer_free(struct ssh_buffer_struct *buffer) { > SAFE_FREE(buffer); > } > >-static int realloc_buffer(struct ssh_buffer_struct *buffer, int needed) { >- int smallest = 1; >- char *new = NULL; >+static int realloc_buffer(struct ssh_buffer_struct *buffer, size_t needed) { >+ size_t smallest = 1; >+ char *new; >+ > buffer_verify(buffer); >+ > /* Find the smallest power of two which is greater or equal to needed */ > while(smallest <= needed) { >- smallest <<= 1; >+ if (smallest == 0) { >+ return -1; >+ } >+ smallest <<= 1; > } > needed = smallest; > new = realloc(buffer->data, needed); >-- >1.8.0 >
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 871614
:
644664
|
644665
|
644666
|
644667
|
644668
|
644669
|
644988
|
644990