ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.56k stars 185 forks source link

[BUG] Crash when parsing invalid JSON from Protobuf data #2093

Open NghiaTranUIT opened 2 months ago

NghiaTranUIT commented 2 months ago

Description

From AppCenter Report:

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NaN number in JSON write'

It's an objective-c exception from JSONSerialization.data(withJSONObject: final, options: option). Even the try-catch from Swift can't catch it.

Steps to Reproduce

  1. Not sure how to reproduce

Current Behavior

Expected Behavior

Environment

NghiaTranUIT commented 2 months ago

Fixed: https://download.proxyman.io/beta/Proxyman_5.6.1_Fix_crash_invalid_protobuf_json.dmg