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

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