Skip to content

fix off-by-one in import table bounds checks - #827

Open
karel-m wants to merge 1 commit into
developfrom
pr/fix-import-table-bounds
Open

karel-m wants to merge 1 commit into
developfrom
pr/fix-import-table-bounds

Conversation

@karel-m

@karel-m karel-m commented Nov 17, 2026

Copy link
Copy Markdown
Member

It looks like an off-by-one security issue, but it isn’t: the index never comes directly from the input.

It’s always a value from the static pka_oids[] or pem_std_headers[] tables, which only contain IDs below LTC_OID_NUM / LTC_PKA_NUM. An unknown OID is rejected before the check is reached.

@karel-m
karel-m requested a review from sjaeckel November 17, 2026 20:09
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.

1 participant