Closed schwehr closed 6 years ago
The next release will have the assert()s replaced with a conditional and an error-return.
Can you please link the fix so that I can match your fix to my code base and drop my hack?
I'm not sure what you're asking by "Link the fix"?
If you're asking for a new release, then I'm not ready for that yet.
Can you not push that commit? Or if not, quote the code in the bug? That will save me a merge conflict
@schwehr, I don't understand. That code was committed about 6 hours ago. See https://github.com/Unidata/UDUNITS-2/blob/master/lib/unitcore.c
I assumed you had not pushed the code as I had assumed that you had put #66 in the commit message, but you hadn't. I've now added a comment to the commit to make it obvious.
@schwehr Thanks. I committed before I knew about the special commit words.
In doing a little initial fuzzing of udunits I hit this assert of scale within seconds. Asserts should be for things that should never happen. My fix below probably isn't the best, but it at least lets me continue on with fuzzing.
The fuzzer (which isn't particularly good for coverage):
Some of the inputs to ut_parse that trigger the assert include
360-191
,229991-091