Hi...
Recently I discovered a crash when trying to read a file which should
contain
a NSDictionary (using
-[NSDictionary initWithContentsOfFile:]) but instead contained 1736 binary
zero bytes (hex 0x00).
GNUstep crashed badly when doing this instead of discovering that it
contains
nothing parseable.
Attached you will find my small patch to fix this. When deserializing it is
always checked whether the
GSIArray is used or not but not in one case. Added an if to solve this. Now
when trying to read this
corrupt file I get a correct NSWarnLog() that it does not contain a valid
dictionary.
Hope this patch can be applied