Skip to content

chore: validate OODS length before slicing in verify_oods#171

Open
Olexandr88 wants to merge 1 commit intoHerodotusDev:mainfrom
Olexandr88:main
Open

chore: validate OODS length before slicing in verify_oods#171
Olexandr88 wants to merge 1 commit intoHerodotusDev:mainfrom
Olexandr88:main

Conversation

@Olexandr88
Copy link
Copy Markdown

Add a guard to ensure OODS length is at least 2 before slicing. Prevents potential underflow or out-of-bounds access when handling malformed input. Purely additive change with no impact on existing logic.

Signed-off-by: Olexandr88 <radole1203@gmail.com>
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.

1 participant