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 250031 Details for
Bug 369531
CVE-2007-5498 missing sanity check in xen block backend driver
[?]
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]
suggested patch (against upstream mercurial repository).
fix (text/plain), 1.18 KB, created by
Gerd Hoffmann
on 2007-11-07 12:17:24 UTC
(
hide
)
Description:
suggested patch (against upstream mercurial repository).
Filename:
MIME Type:
Creator:
Gerd Hoffmann
Created:
2007-11-07 12:17:24 UTC
Size:
1.18 KB
patch
obsolete
>diff -r c0b0974fb055 linux-2.6-xen-sparse/include/xen/blkif.h >--- a/linux-2.6-xen-sparse/include/xen/blkif.h Fri May 18 16:59:32 2007 +0100 >+++ b/linux-2.6-xen-sparse/include/xen/blkif.h Wed Nov 07 12:59:58 2007 +0100 >@@ -72,25 +72,31 @@ enum blkif_protocol { > > static void inline blkif_get_x86_32_req(blkif_request_t *dst, blkif_x86_32_request_t *src) > { >- int i; >+ int i, n = BLKIF_MAX_SEGMENTS_PER_REQUEST; >+ > dst->operation = src->operation; > dst->nr_segments = src->nr_segments; > dst->handle = src->handle; > dst->id = src->id; > dst->sector_number = src->sector_number; >- for (i = 0; i < src->nr_segments; i++) >+ if (n > src->nr_segments) >+ n = src->nr_segments; >+ for (i = 0; i < n; i++) > dst->seg[i] = src->seg[i]; > } > > static void inline blkif_get_x86_64_req(blkif_request_t *dst, blkif_x86_64_request_t *src) > { >- int i; >+ int i, n = BLKIF_MAX_SEGMENTS_PER_REQUEST; >+ > dst->operation = src->operation; > dst->nr_segments = src->nr_segments; > dst->handle = src->handle; > dst->id = src->id; > dst->sector_number = src->sector_number; >- for (i = 0; i < src->nr_segments; i++) >+ if (n > src->nr_segments) >+ n = src->nr_segments; >+ for (i = 0; i < n; i++) > dst->seg[i] = src->seg[i]; > } >
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 369531
: 250031 |
250281