The server crashes with segmentation fault if the string the client sends is invalid, this is from the "JSON C" library. The solution is to find a JSON validator, and validate the JSON before allowing the JSON C library to parse/read it at all.
We have switched to using Jansson for creating, editing, parsing and validating JSON and have utilized the validation function in version 0.1.2 to prevent segmentation defaults.
The server crashes with segmentation fault if the string the client sends is invalid, this is from the "JSON C" library. The solution is to find a JSON validator, and validate the JSON before allowing the JSON C library to parse/read it at all.