Mantis - Squeak
Viewing Issue Advanced Details
2403 Kernel major always 12-22-05 23:40 04-08-10 15:23
tim  
 
normal  
acknowledged 3.8  
open  
none    
none  
0002403: Object>readDataFrom:size: fails if too many ivars in object being read
Found this when trying to read in my saved preferences that had been saved from a Sophie image, where we have a different TTCFont implementation.
In Object>readDataFrom:size: the code tests for the number of instvars in the class and does some fiddling for variable classes but for fixed classes we can end up with the varsOnDisk being larger than cntInstVars which causes an error when trying to set the excess ivars.
At least the code ought to check and provide a sensible error to ask for a convertxxx method rather than simply failing.

There are no notes attached to this issue.