Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Invalid BufferType validation #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DullReferenceException
Copy link

I encountered a library using strtok2 that is unfortunately constructing a BufferType, passing in NaN for the length. Unfortunately, this is causing the parser to get into a state from whence there is no return. By throwing an exception, this should notify those that are calling BufferType incorrectly that an error has occurred so that at the very least, an uncaught exception will occur.

I encountered a library using `strtok2` that is unfortunately constructing a `BufferType`, passing in `NaN` for the length. Unfortunately, this is causing the parser to get into a state from whence there is no return. By throwing an exception, this should notify those that are calling `BufferType` incorrectly that an error has occurred so that at the very least, an uncaught exception will occur.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants