fix: prevent panic on empty vectors in AMD64 vector operations#727
Conversation
|
Good catch, thanks for the PR. |
|
I see you already had a commit with tests; similarly for the CI to pass, this needs to go in |
should i close then this PR and create new PR with changes in correct files? or i should just revert changes in these files to make changes in vector_ops_asm.go and tests_vector.go |
|
we do squash merge so you can work on the same PR (go generate ./... in the root will overwrite your changes anyway -- all these files are generated from templates) |
Done |
Fix panic when calling Add/Sub methods on empty vectors in AMD64-optimized
vector implementations across multiple elliptic curve packages.
bls12-381, bls12-377, bls24-315, bls24-317 (both fp and fr packages)
This prevents runtime panics that could occur when processing empty vectors
in high-performance cryptographic operations, improving robustness of the
vector math library.