fixed another buffer overflow of coefficient zeroing

This commit is contained in:
Jean-Philippe Bossuat
2025-05-16 09:56:39 +02:00
parent 49a08289db
commit b80bcb8bbd

View File

@@ -107,7 +107,7 @@ where
{ {
fn zero(&mut self) { fn zero(&mut self) {
unsafe { unsafe {
std::ptr::write_bytes(self.as_mut_ptr(), 0, self.sl() * self.poly_count()); std::ptr::write_bytes(self.as_mut_ptr(), 0, self.n() * self.poly_count());
} }
} }