X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fbt_matchfinder.h;fp=include%2Fwimlib%2Fbt_matchfinder.h;h=1a94497845cd0a4d34380c8d7f69ba812f7e08a2;hp=c2fa8b8297b1a94deaed2a6aef1e9679587aaadb;hb=5ec910e4e9126a37eed1ff199d55a1952c76e0f7;hpb=5391d97b3dfa31dfbe1b9743f3de44042ab2498d diff --git a/include/wimlib/bt_matchfinder.h b/include/wimlib/bt_matchfinder.h index c2fa8b82..1a944978 100644 --- a/include/wimlib/bt_matchfinder.h +++ b/include/wimlib/bt_matchfinder.h @@ -147,11 +147,6 @@ TEMPLATED(bt_matchfinder_advance_one_byte)(struct TEMPLATED(bt_matchfinder) * co u32 len; u32 best_len = 2; - if (unlikely(max_len < LOAD_U24_REQUIRED_NBYTES + 1)) { - *best_len_ret = best_len; - return lz_matchptr; - } - hash3 = *next_hash; *next_hash = lz_hash(load_u24_unaligned(in_next + 1), BT_MATCHFINDER_HASH3_ORDER); prefetchw(&mf->hash3_tab[*next_hash]); @@ -246,7 +241,7 @@ TEMPLATED(bt_matchfinder_advance_one_byte)(struct TEMPLATED(bt_matchfinder) * co * The current position in the input buffer (the position of the sequence * being matched against). * @max_len - * The maximum permissible match length at this position. + * The maximum permissible match length at this position. Must be >= 5. * @nice_len * Stop searching if a match of at least this length is found. * Must be <= @max_len. @@ -305,7 +300,7 @@ TEMPLATED(bt_matchfinder_get_matches)(struct TEMPLATED(bt_matchfinder) *mf, * @cur_pos * The current position in the input buffer. * @max_len - * The maximum permissible match length at this position. + * The maximum permissible match length at this position. Must be >= 5. * @nice_len * Stop searching if a match of at least this length is found. * @max_search_depth