Skip to content

Return 0 for malformed q-values#313

Open
glbrntt wants to merge 1 commit into
apple:mainfrom
glbrntt:qvalues
Open

Return 0 for malformed q-values#313
glbrntt wants to merge 1 commit into
apple:mainfrom
glbrntt:qvalues

Conversation

@glbrntt

@glbrntt glbrntt commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Motivation:

Certain malformed q-values can trigger a crash because they don't validate that a string split results in the expected number of parts.

Modifications:

  • validate that the number of split parts is as expected, return a q-value of zero otherwise (i.e. "not acceptable")

Result:

Safer code

Motivation:

Certain malformed q-values can trigger a crash because they don't
validate that a string split results in the expected number of parts.

Modifications:

- validate that the number of split parts is as expected, return a
  q-value of zero otherwise (i.e. "not acceptable")

Result:

Safer code
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant