regroup all mentions of ZSTD_REP_MOVE within zstd_compress_internal.h

This commit is contained in:
Yann Collet
2021-12-28 13:47:57 -08:00
parent a34ccad9a6
commit de9f52e945
3 changed files with 6 additions and 9 deletions
+2 -3
View File
@@ -1648,9 +1648,8 @@ ZSTD_compressBlock_lazy_generic(
}
/* NOTE:
* start[-offset+ZSTD_REP_MOVE-1] is undefined behavior.
* (-offset+ZSTD_REP_MOVE-1) is unsigned, and is added to start, which
* overflows the pointer, which is undefined behavior.
* Pay attention that `start[-value]` can lead to strange undefined behavior
* notably if `value` is unsigned, resulting in a large positive `-value`.
*/
/* catch up */
if (offcode) {