mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 09:21:52 +03:00
Fixed out of bounds read in AVX512VBMI version of fdr_exec_fat_teddy … (#333)
Fixed out of bounds read in AVX512VBMI version of fdr_exec_fat_teddy (#322) * Replaced the 32 byte read with a properly truncated mapped read * Added a unit test Co-authored-by: Rafał Dowgird <rafal.dowgird@rtbhouse.com>
This commit is contained in:
@@ -283,7 +283,7 @@ hwlm_error_t fdr_exec_fat_teddy_512vbmi_templ(const struct FDR *fdr,
|
||||
if (likely(ptr + loopBytes <= buf_end)) {
|
||||
u64a k0 = FAT_TEDDY_VBMI_CONF_MASK_HEAD;
|
||||
m512 p_mask0 = set_mask_m512(~((k0 << 32) | k0));
|
||||
m512 r_0 = prep_conf_fat_teddy_512vbmi_templ<NMSK>(&lo_mask, dup_mask, sl_msk, set2x256(loadu256(ptr)));
|
||||
m512 r_0 = prep_conf_fat_teddy_512vbmi_templ<NMSK>(&lo_mask, dup_mask, sl_msk, set2x256(loadu_maskz_m256(k0, ptr)));
|
||||
|
||||
r_0 = or512(r_0, p_mask0);
|
||||
CONFIRM_FAT_TEDDY_512(r_0, 16, 0, VECTORING, ptr);
|
||||
|
||||
Reference in New Issue
Block a user