You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using prediction functions with strings containing a null byte, the library crashes due to an unwrap() on a CString creation.
However, encountering null bytes happens in the nature and while the presence of null bytes could be checked upstream, I don't think that having the program crash is intended behaviour.
This could be fixed by removing unwrap, change return types if applicable and map the error to a String.
I'd be glad to implement such a fix :)
The text was updated successfully, but these errors were encountered:
When using prediction functions with strings containing a null byte, the library crashes due to an
unwrap()
on aCString
creation.However, encountering null bytes happens in the nature and while the presence of null bytes could be checked upstream, I don't think that having the program crash is intended behaviour.
This could be fixed by removing
unwrap
, change return types if applicable and map the error to a String.I'd be glad to implement such a fix :)
The text was updated successfully, but these errors were encountered: