fix minor UBs
authorYann Collet <cyan@fb.com>
Sun, 8 Nov 2020 03:38:07 +0000 (19:38 -0800)
committerYann Collet <cyan@fb.com>
Sun, 8 Nov 2020 03:42:57 +0000 (19:42 -0800)
commite251a840253c5564364bf5c8c662a6fe623dc3e9
tree4c1cf21414f1feff4f309a2e9fad74fe8b0dff28
parentb16b9fcdbc110876c9cd82ac1c3392abc0c2e1b3
fix minor UBs

- check alignment before casting a pointer
- saveDict : don't memmove() on NULL dst
lib/lz4.c
lib/lz4hc.c