]> git.ipfire.org Git - thirdparty/zstd.git/commit
[libzstd] Fix memcpy() on potential NULL source 746/head
authorNick Terrell <terrelln@fb.com>
Mon, 3 Jul 2017 19:31:55 +0000 (12:31 -0700)
committerNick Terrell <terrelln@fb.com>
Mon, 3 Jul 2017 19:31:55 +0000 (12:31 -0700)
commitc80fc50a8dd211b904071049d4519569e199935f
tree815d82222c090b21e490c180edbc73f3df9b0357
parent1d39550471fa2f6bd994ce213539f1310ebadf88
[libzstd] Fix memcpy() on potential NULL source

* `ZSTD_decompressStream_generic()` `ip` may be `NULL` for one of the calls
  to `memcpy()`
* Assert the source is not `NULL` for calls to `memcpy()` where I believe
  the source should not be `NULL`.
lib/decompress/zstd_decompress.c