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 306880 Details for
Bug 446902
CVE-2008-2363 pan: heap overflow caused by large *.nzb files
[?]
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]
Fix the assertion in PAN due to sorting of an array containing redundant elements
pan-0.132.sortfix.patch (text/plain), 2.69 KB, created by
Pavel Polischouk
on 2008-05-28 02:53:31 UTC
(
hide
)
Description:
Fix the assertion in PAN due to sorting of an array containing redundant elements
Filename:
MIME Type:
Creator:
Pavel Polischouk
Created:
2008-05-28 02:53:31 UTC
Size:
2.69 KB
patch
obsolete
>diff -ur --exclude 'config*' --exclude '*desktop' --exclude '*list' pan-0.132.inc/pan/data/parts.cc pan-0.132/pan/data/parts.cc >--- pan-0.132.inc/pan/data/parts.cc 2007-08-01 13:00:01.000000000 -0400 >+++ pan-0.132/pan/data/parts.cc 2008-05-27 22:27:03.000000000 -0400 >@@ -303,8 +303,7 @@ > this->n_parts_total = n_parts_total; > this->n_parts_found = 0; // they haven't been added yet > >- if (n_parts_found > parts.size()) >- parts.resize (n_parts_found); >+ parts.clear(); > } > > void >@@ -312,21 +311,10 @@ > const StringView & mid, > bytes_t bytes) > { >- if (n_parts_found >= parts.size()) >- parts.resize (n_parts_found+1); >- >- Part& p = *(&parts.front() + n_parts_found++); >- p.number = number; >- p.bytes = bytes; > > Packer packer; > pack_message_id (packer, mid, reference_mid); >- p.len_used = packer.size (); >- if (p.len_alloced < p.len_used) { >- delete [] p.packed_mid; >- p.packed_mid = new char [p.len_used]; >- p.len_alloced = p.len_used; >- } >+ Part p(number,bytes,packer.size()); > packer.pack (p.packed_mid); > packed_mids_len += p.len_used; > >@@ -337,8 +325,9 @@ > assert (mid == tmp); > #endif > >- if (n_parts_total < n_parts_found) >+ if (n_parts_total < ++n_parts_found) > n_parts_total = n_parts_found; >+ parts.push_back(p); > } > > PartBatch :: Part& >@@ -346,7 +335,7 @@ > { > number = that.number; > bytes = that.bytes; >- len_used = len_alloced = that.len_used; >+ len_used = that.len_used; > delete [] packed_mid; > packed_mid = new char [len_used]; > memcpy (packed_mid, that.packed_mid, len_used); >@@ -357,11 +346,17 @@ > number (that.number), > bytes (that.bytes), > len_used (that.len_used), >- len_alloced (that.len_used), > packed_mid (new char [len_used]) > { > memcpy (packed_mid, that.packed_mid, len_used); > } >+PartBatch :: Part :: Part (number_t n, bytes_t b, size_t l): >+ number(n), >+ bytes(b), >+ len_used(l), >+ packed_mid(new char [len_used]) >+{ >+} > > void > PartBatch :: sort (void) >diff -ur --exclude 'config*' --exclude '*desktop' --exclude '*list' pan-0.132.inc/pan/data/parts.h pan-0.132/pan/data/parts.h >--- pan-0.132.inc/pan/data/parts.h 2007-08-01 13:00:01.000000000 -0400 >+++ pan-0.132/pan/data/parts.h 2008-05-27 22:27:03.000000000 -0400 >@@ -141,10 +141,10 @@ > number_t number; > bytes_t bytes; > size_t len_used; >- size_t len_alloced; > char * packed_mid; > Part(): number(0), bytes(0), >- len_used(0), len_alloced(0), packed_mid(0) {} >+ len_used(0), packed_mid(0) {} >+ Part(number_t n, bytes_t b, size_t l); > ~Part() { delete [] packed_mid; } > Part (const Part&); > Part& operator= (const Part&);
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 446902
:
306290
|
306292
|
306293
|
306294
|
306296
|
306297
| 306880