]> git.ipfire.org Git - thirdparty/zstd.git/commit
fix one UB pointer arithmetic in encoder
authorYann Collet <cyan@fb.com>
Fri, 17 Nov 2017 20:55:37 +0000 (12:55 -0800)
committerYann Collet <cyan@fb.com>
Fri, 17 Nov 2017 21:24:51 +0000 (13:24 -0800)
commit23767e950aea65d5aec0a81f2980aeeae8bfaf94
tree0a31cb9e008ef432a9ab8798d49e6a852ac5c84b
parentcdade555ee9a023187a1dfc894c3add64b0bbb0a
fix one UB pointer arithmetic in encoder

Instead of calculating distance between 2 memory objects, which is UB,
we extract the offset from object 1, and transfer it into object 2.
lib/compress/zstd_compress.c
lib/decompress/zstd_decompress.c
tests/Makefile