Example vector_2.hpp
void convert(double *a) const {
_mm256_storeu_pd(local_a,_avx0);
}
If the user passes in a double[2] expecting only 2 values then this code will write past the end of the pointer. An example of this bug is in vector_2.hpp
inline std::ostream& operator<<(std::ostream& os, VectorSIMD2 a){
double ad[2];
a.convert(ad);
os << "{" << ad[0] << "," << ad[1] << "}";
return os;
}
Example vector_2.hpp
If the user passes in a double[2] expecting only 2 values then this code will write past the end of the pointer. An example of this bug is in vector_2.hpp