mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
fixed another buffer overflow of coefficient zeroing
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user