News for hackers. Stuff that matters.
Re:Son: A minimal subset of JSON for machine-to-machine comm... by d33 on Sunday December 10, 2017 @10:55AM (#15891918)
I'd say so. This is kind of a security question - the data is valid from the protocol's perspective, it's the contents that are malicious. It's up to the developer to decide how to handle that - if it's super important to be able to process such big numbers, modify the parser to handle that (for example by storing them on the HDD). Same goes for another serialization format: bencoding. It supports arbitrarily nested data structures and most implementations are recursive, which can easily result in stack overflow if you mess up the implementation. But I wouldn't blame the standard - that's the price you pay for flexibility. At the end of the day, you need to sanitize your input anyway and keep your edge cases in mind. Same goes with XML bombs...
Re:Son: A minimal subset of JSON for machine-to-machine comm... by rmrfrmrf on Sunday December 10, 2017 @03:13PM (#15893264)
I would think the JS part of JSON would preclude any massive integers. It’s still an IEEE floating point at the end of the day, so your max is (2^53)-1