Closed guijan closed 3 years ago
Thanks! Would you mind adding a test that demonstrates the case this change fixes? Also, it seems that this doesn’t compile on older Visual Studio versions, which has to be worked around somehow.
I'm sorry for the trouble, but I only realized now the parser detects a syntax error in the JSON before strtod gets to convert such a string.
strtod() also looks for the strings "INF" or "NAN" and returns Infinity or NaN respectively, both are explicitly forbidden by the RFC.