Skip to content

fix(avm): Fix TS ECC add infinity handling#19657

Merged
sirasistant merged 1 commit into
merge-train/avmfrom
arv/fix_ecc_ts
Jan 16, 2026
Merged

fix(avm): Fix TS ECC add infinity handling#19657
sirasistant merged 1 commit into
merge-train/avmfrom
arv/fix_ecc_ts

Conversation

@sirasistant

Copy link
Copy Markdown
Contributor

Fuzzer revealed issues in infinity handling in ts

let dest;
if (p1IsInfinite) {
if (p1IsInfinite && p2IsInfinite) {
dest = Point.ZERO;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I see why this all failed previously... Point.ZERO is not really the point at infinity (the Point class stores isInfinite = false for ZERO, which is never passed to bb anyway). Maybe tracking a destIsInfinite in this nested if would be better so we can override more robustly at the end?
Anyway! This is great for now, good find!!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah wanted to do a minimal fix since it's on the old ts codebase

@AztecBot

Copy link
Copy Markdown
Collaborator

Flakey Tests

🤖 says: This CI run detected 2 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/e87621562c407c31�e87621562c407c318;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_invalidate_block.parallel.test.ts "committee member invalidates a block if proposer does not come through" (94s) (code: 1) group:e2e-p2p-epoch-flakes (\033sirasistant\033: fix(avm): Fix TS ECC add infinity handling)
\033FLAKED\033 (8;;http://ci.aztec-labs.com/a4e48ebefc6eca36�a4e48ebefc6eca368;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_invalidate_block.parallel.test.ts "proposer invalidates multiple blocks" (601s) (code: 124) group:e2e-p2p-epoch-flakes (\033sirasistant\033: fix(avm): Fix TS ECC add infinity handling)

@sirasistant sirasistant merged commit 4fdfe22 into merge-train/avm Jan 16, 2026
8 checks passed
@sirasistant sirasistant deleted the arv/fix_ecc_ts branch January 16, 2026 11:41
@AztecBot AztecBot mentioned this pull request Jan 16, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Jan 17, 2026
BEGIN_COMMIT_OVERRIDE
feat(avm): contract instance mutation (#19499)
fix(avm): Fix note hash exists fuzzing (#19616)
fix(avm): Build trace on coverage prover runs (#19627)
chore(avm): Use PC alias type consistently (#19625)
feat(avm): mutate global gas fees and timestamp (#19500)
docs: avm docs (#19603)
fix(avm): Increase chances of fuzzer finding limits (#19656)
fix(avm)!: de-risk memory injection attacks (#19620)
fix(avm): Fix TS ECC add infinity handling (#19657)
fix(avm): Fix jumpif in fuzzer (#19655)
feat(avm): protocol contractg mutations (#19586)
chore(avm): analyze fuzzer corpus distribution (#19614)
feat(avm): fuzzer treats enqueued call size as coverage (#19615)
refactor(avm): Refactor calldata copy and return data copy fuzzing
(#19666)
feat(avm): boundary values for mutations (#19617)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants