This might be the right attitude for a max function written in JavaScript, where the calling code has some control over the inputs.
It's the wrong attitude for a JSON parser written in C, unless you like to get owned.
This might be the right attitude for a max function written in JavaScript, where the calling code has some control over the inputs.
It's the wrong attitude for a JSON parser written in C, unless you like to get owned.
It's entirely reasonable for a tiny JSON parser written in C to not deal with JSON files over 0x7fffffff bytes long.