mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
Both gej_add_ge(r, p, q) and gej_add(r, p, q) write to r->x/y/z while reading from p->x/y/z. When r == p (in-place accumulation in ecmult loops), the output overwrites input during computation. Added copy-on-alias detection at the top of both functions, matching the fix already applied to gej_double. https://claude.ai/code/session_011KVZhDcV2G7idNWEBz12GY