allen58992008 / touchcode

Automatically exported from code.google.com/p/touchcode
0 stars 0 forks source link

TouchJSON: Using nil for &error param causes sigbus when empty data passed #56

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

NSDictionary *crash = [[CJSONDeserializer deserializer]
deserializeAsDictionary:[NSData data] error:nil];

What is the expected output? What do you see instead?

No crash. :) The documentation suggests that it is ok to pass nil as the
error pointer.

What version of the product are you using? On what operating system?

r301, iPhone Simulator 3.0 beta 3.

Original issue reported on code.google.com by joshar...@gmail.com on 28 Apr 2009 at 11:59

GoogleCodeExporter commented 8 years ago
Unable to reproduce here.

Xcode
Version 3.1.3 (Pre-release)
Component versions
Xcode IDE: 1176.0
Xcode Core: 1176.0
ToolSupport: 1171.0

Crash persists in latest beta?

Original comment by jpedroso@gmail.com on 16 May 2009 at 10:16

GoogleCodeExporter commented 8 years ago
Yeah I believe this was fixed a while ago. Closing.

Original comment by jwight on 17 May 2009 at 1:54

GoogleCodeExporter commented 8 years ago
Yep, confirmed. This appears to have been fixed in r118/r119. Sorry about that.

Original comment by joshar...@gmail.com on 20 May 2009 at 7:23