Skip to content

Conversation

@chcmedeiros
Copy link
Collaborator

@chcmedeiros chcmedeiros commented Jan 27, 2026

This PR addresses security improvements identified in the JSON parser and text display translation functions.

Corrects boundary checks in array and object access functions
to prevent potential out-of-bounds reads when accessing JSON tokens.

The condition `token_index > json->numberOfTokens` is replaced with
`token_index >= json->numberOfTokens` to ensure that the last valid
token can be accessed.
Corrects a bounds check in the translation function to
prevent potential out-of-bounds access. The previous
implementation was using the destination length
incorrectly, leading to a faulty check. It now uses the
current count, ensuring accurate validation.
@chcmedeiros chcmedeiros requested a review from abenso January 27, 2026 11:04
Adds write permissions to the workflow for `contents`.

This enables the workflow to create releases, which is required
for automatically publishing new versions of the application.
@chcmedeiros chcmedeiros changed the title Fix bounds checking vulnerabilities in JSON parser and display translation Improve security checks in JSON parser and display translation Jan 27, 2026
@chcmedeiros chcmedeiros merged commit 05b78c4 into dev Jan 27, 2026
249 checks passed
@chcmedeiros chcmedeiros deleted the claim-fixes branch January 27, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants