nesium/cocoa-amf — Issue #10: Issue deserializing NSData
Author: cedricboidin
Created: 2011-11-24 14:23:12+00:00
State: open

NSData objects are not added in the objectTable, causing errors when deserializing NSData. Here is a patch :

--- nesium-cocoa-amf-ef2ab9e/CocoaAMF/AMFUnarchiver.m	2011-10-31 02:58:42.000000000 +0100
+++ nesium-cocoa-amf-ef2ab9e-fixbug/CocoaAMF/AMFUnarchiver.m	2011-11-24 15:15:08.000000000 +0100
@@ -958,6 +958,7 @@
}
uint32_t length = (ref >> 1);
NSData *data = [self decodeBytes:length];
+	[m_objectTable addObject:data];
return data;
}