Skip to content

Fix CodeQL port parse warning in Go pgx connector#354

Merged
danielfrankcom merged 1 commit intomainfrom
dev/frankcom/golang-port-check
Jan 22, 2026
Merged

Fix CodeQL port parse warning in Go pgx connector#354
danielfrankcom merged 1 commit intomainfrom
dev/frankcom/golang-port-check

Conversation

@danielfrankcom
Copy link
Copy Markdown
Contributor

This PR fixes a port parsing issue which CodeQL complains about for the pgx connector. See here.

The Atoi has been replaced with an equivalent which checks the bounds of the value before conversion.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT-0 license.

@danielfrankcom danielfrankcom marked this pull request as ready for review January 22, 2026 20:25
@danielfrankcom danielfrankcom merged commit 868da56 into main Jan 22, 2026
13 checks passed
@danielfrankcom danielfrankcom deleted the dev/frankcom/golang-port-check branch January 22, 2026 23:01
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