diff options
Diffstat (limited to 'app-arch/lbzip2/files/2.1-crc-missmatch.patch')
-rw-r--r-- | app-arch/lbzip2/files/2.1-crc-missmatch.patch | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/app-arch/lbzip2/files/2.1-crc-missmatch.patch b/app-arch/lbzip2/files/2.1-crc-missmatch.patch index 662eb8901470..489eeff754d0 100644 --- a/app-arch/lbzip2/files/2.1-crc-missmatch.patch +++ b/app-arch/lbzip2/files/2.1-crc-missmatch.patch @@ -1,16 +1,13 @@ - src/lbunzip2.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - diff --git a/src/lbunzip2.c b/src/lbunzip2.c -index 113be47..67579ea 100644 +index 113be47..5d8a456 100644 --- a/src/lbunzip2.c +++ b/src/lbunzip2.c -@@ -1453,7 +1453,7 @@ mux(struct w2m_q *w2m_q, struct m2s_q *m2s_q, struct filespec *ispec, - if (w2m_blk->bs100k) { - bs100k = w2m_blk->bs100k; - any |= (9u >= bs100k); -- if (crc != w2m_blk->crc) -+ if (0 && crc != w2m_blk->crc) - log_fatal("%s: %s%s%s: stream CRC mismatch\n", pname, ispec->sep, - ispec->fmt, ispec->sep); - crc = 0u; +@@ -604,7 +604,7 @@ work_decompr(struct w2w_blk *w2w_blk, struct w2m_q *w2m_q, + w2m_blk->id.decompr_blk_id = decompr_blk_id++; + w2m_blk->id.last_decompr = (YB_OK == ybret); + w2m_blk->produced = sizeof w2m_blk->decompr - oleft; +- w2m_blk->bs100k = w2w_blk->bs100k; ++ w2m_blk->bs100k = (YB_OK == ybret) ? w2w_blk->bs100k : 0u; + w2m_blk->crc = w2w_blk->crc; + w2m_blk->crc1 = crc; + w2m_blk->bs100k1 = bs100k; |