kstenerud / KSCrash

The Ultimate iOS Crash Reporter
MIT License
4.23k stars 705 forks source link

Add Support for Unsigned Integer Elements, Enhance JSON Encoding/Decoding Robustness, and Replace `sprintf` with Safer `snprintf` #526

Closed GLinnik21 closed 2 months ago

GLinnik21 commented 2 months ago

This update adds support for handling and accurately encoding/decoding unsigned integer elements in JSON, ensures compatibility with large values, replaces sprintf with the safer snprintf function, and extends the test suite to cover edge cases for integers, unsigned integers, and floating point numbers. However, it does not address the suboptimal implementation where a single function handles both float and double types, which ideally need separate functions for better precision and clarity.