Skip to content

fix(auth): validate OAuth expiry conversions - #47

Merged
tiankaima-copilot merged 1 commit into
mainfrom
codex/cli-codeql-integer
Aug 27, 2026
Merged

fix(auth): validate OAuth expiry conversions#47
tiankaima-copilot merged 1 commit into
mainfrom
codex/cli-codeql-integer

Conversation

@tiankaima-copilot

Copy link
Copy Markdown
Collaborator

Summary

  • parse OAuth expires_in values within the native integer width
  • reject non-positive, fractional, integer-overflow, and time.Duration-overflow values
  • use the existing fallback expiry when a provider returns an unsafe value
  • add regression coverage for numeric/string encodings and overflow boundaries

Validation

  • make test
  • make lint
  • make vet
  • git diff --check

Resolves CodeQL alerts #1 and #2 (go/incorrect-integer-conversion).

@tiankaima-copilot
tiankaima-copilot merged commit 18325d8 into main Aug 27, 2026
4 checks passed
@tiankaima-copilot
tiankaima-copilot deleted the codex/cli-codeql-integer branch August 27, 2026 12:23
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