Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 325132 Details for
Bug 436382
=app-arch/lbzip2-2.2: Assertion failure while compressing
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
fix_empty_range.patch (text/plain), 634 bytes, created by
Florian Philipp
on 2012-09-27 15:01:16 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Florian Philipp
Created:
2012-09-27 15:01:16 UTC
Size:
634 bytes
patch
obsolete
>diff -Naur lbzip2-2.2_orig/src/encode.c lbzip2-2.2/src/encode.c >--- lbzip2-2.2_orig/src/encode.c 2012-08-06 02:34:24.000000000 +0200 >+++ lbzip2-2.2/src/encode.c 2012-09-27 16:36:37.788182811 +0200 >@@ -789,8 +789,12 @@ > for (a = 0, t = 0; t < nt; t++) { > /* Find a range of symbols which total count is roughly proportional to one > nt-th of all values. */ >- for (c = 0, b = a; c * (nt-t) < nm; b++) >+ c = 0, b = a; >+ do { > c += s->lookup[0][b]; >+ b++; >+ } while (c * (nt-t) < nm); >+ > assert(a < b); > if (a < b-1 && (2*c - s->lookup[0][b-1]) * (nt-t) > 2*nm) { > c -= s->lookup[0][--b];
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 436382
:
325110
| 325132