fixed potential buffer overflow & added vec_znx_normalize_tmp_bytes

This commit is contained in:
Jean-Philippe Bossuat
2025-02-25 10:15:27 +01:00
parent 18ca4801ae
commit 95734b695c
2 changed files with 10 additions and 0 deletions

View File

@@ -439,6 +439,7 @@ impl VmpPMatOps for Module {
}
fn vmp_prepare_row(&self, b: &mut VmpPMat, a: &[i64], row_i: usize, buf: &mut [u8]) {
debug_assert!(a.len() == b.cols() * self.n());
unsafe {
vmp::vmp_prepare_row(
self.0,