Bug in unserrialise in AS3
Brought to you by:
sephiroth_tmm
Wrong unserrialization of this string:
"a:3:{i:0;s:7:"TestApp";i:1;s:12:"room_changed";i:2;a:1:{i:0;a:4:{i:0;O:10:"MyCareUser":3:{s:2:"id";i:1;s:4:"name";s:13:"John Coltrane";s:6:"handle";i:1;}i:1;O:10:"MyCareUser":3:{s:2:"id";i:2;s:4:"name";s:11:"Miles Davis";s:6:"handle";i:2;}i:2;O:10:"MyCareUser":3:{s:2:"id";i:3;s:4:"name";s:13:"Marcus Miller";s:6:"handle";i:3;}i:3;O:10:"MyCareUser":3:{s:2:"id";i:4;s:4:"name";s:11:"Chick Corea";s:6:"handle";i:4;}}}}"
This can be resolved via adding a default case to the de-serializer as it is landing on type "}" not a valid one due to the location of the semi-colon being placed right before the }.
You would add the case such as:
default:
//Attempt to move the pointer again.
Serializer.c ++;
return Serializer.unserialize_internal(data);