Skip to content

Reject duplicate lookup table cell assignments#902

Open
Kuhai9801 wants to merge 1 commit into
zcash:mainfrom
Kuhai9801:table-layouter-duplicate-cell-fix
Open

Reject duplicate lookup table cell assignments#902
Kuhai9801 wants to merge 1 commit into
zcash:mainfrom
Kuhai9801:table-layouter-duplicate-cell-fix

Conversation

@Kuhai9801

Copy link
Copy Markdown

Closes #901

Reject duplicate assignments to the same lookup-table cell before mutating the
fixed-column assignment backend.

TableLayouter::assign_cell documents that assigning an already-assigned table
cell returns an error, but only default-row overwrites were rejected. Non-default
duplicate offsets could overwrite the stored fixed value for the same table
cell.

This PR adds the missing duplicate-offset check and regression coverage for both
default-row and non-default-row table overwrites.

@Kuhai9801 Kuhai9801 force-pushed the table-layouter-duplicate-cell-fix branch from 6f86edc to 1f47be5 Compare June 12, 2026 03:32
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.

Duplicate lookup-table cell assignments can overwrite fixed table values

1 participant