Skip to content

Conversation

@snamber
Copy link

@snamber snamber commented Dec 29, 2025

Use the appropriate bitSize parameter (8, 16, 32, or strconv.IntSize)
when
parsing integers to ensure overflow is caught at parse time rather than
silently truncating during type conversion.

https://github.com/tilebox/structconf/security/code-scanning

…rflow

Use the appropriate bitSize parameter (8, 16, 32, or strconv.IntSize)
when
parsing integers to ensure overflow is caught at parse time rather than
silently truncating during type conversion.

Fixes 8 CodeQL 'Incorrect conversion between integer types' alerts.
@snamber snamber changed the title Fix: use correct bitSize in ParseInt/ParseUint to prevent integer overflow Fix: use correct bitSize in integer parsing to prevent integer overflow Dec 29, 2025
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.

2 participants