On 2005-06-30 08:02:40 +0100 Roland Schwingel <[EMAIL PROTECTED]> wrote:

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

I applied a slightly different (more general purpose I hope) fix, intended to catch all cases of bad cross references.
It's in CVS ... I'd appreciate feedback on how it works for you.



_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to