[Bug 1961427] Re: [Ubuntu 21.10] zlib: compressBound() returns an incorrect result on z15
Frank Heimes
1961427 at bugs.launchpad.net
Wed Mar 9 19:59:13 UTC 2022
debdiff for zlib_1.2.11.dfsg-2ubuntu7 to zlib_1.2.11.dfsg-2ubuntu8
(except the of the top line of the changelog:
zlib (1:1.2.11.dfsg-2ubuntu8) impish; urgency=medium
the debdiff is the same for impish and jammy)
* d/p/410-lp1961427.patch ported from zlib #410, fixing
compressBound() with hw acceleration. LP: #1961427
Refreshed some quilt patches just to remove offsets.
Thanks to Ilya Leoshkevich <iii at linux.ibm.com>.
** Patch added: "zlib_1.2.11.dfsg-2ubuntu7_to_zlib_1.2.11.dfsg-2ubuntu8 (jammy)"
https://bugs.launchpad.net/ubuntu/+source/zlib/+bug/1961427/+attachment/5567534/+files/debdiff_zlib_1.2.11.dfsg-2ubuntu7_to_zlib_1.2.11.dfsg-2ubuntu8_jammy.diff
** Also affects: zlib (Ubuntu Jammy)
Importance: Undecided
Assignee: Skipper Bug Screeners (skipper-screen-team)
Status: New
** Also affects: zlib (Ubuntu Impish)
Importance: Undecided
Status: New
** Summary changed:
- [Ubuntu 21.10] zlib: compressBound() returns an incorrect result on z15
+ zlib: compressBound() returns an incorrect result on z15
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to zlib in Ubuntu.
https://bugs.launchpad.net/bugs/1961427
Title:
zlib: compressBound() returns an incorrect result on z15
Status in Ubuntu on IBM z Systems:
New
Status in zlib package in Ubuntu:
New
Status in zlib source package in Impish:
New
Status in zlib source package in Jammy:
New
Bug description:
Description: zlib: compressBound() returns an incorrect result on z15
Symptom: Passing the result of compressBound() to compress()
results in an error code.
Problem: compressBound() is not adjusted for DFLTCC.
Solution: Adjust compressBound() for DFLTCC like it's already done
for deflateBound(). Since zlib project does not accept
patches at the moment, the fix has been integrated into
the DFLTCC pull request:
https://github.com/madler/zlib/pull/410
The commitid is b25781e735363e04f6c56e21431c47e4afc50b17.
Reproduction: z15 only:
#include <assert.h>
#include <stdlib.h>
#include <zlib.h>
int main() {
Bytef in_buf[128], out_buf[1024];
for (size_t i = 0; i < sizeof(in_buf); i++)
in_buf[i] = rand();
uLongf dest_len = compressBound(sizeof(in_buf));
assert(dest_len <= sizeof(out_buf));
int ret = compress(out_buf, &dest_len,
in_buf, sizeof(in_buf));
assert(ret == Z_OK);
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1961427/+subscriptions
More information about the foundations-bugs
mailing list