Found a couple of bugs (or at least what I believe to be bugs) in the PSD
plugin's read/load code.
1) It assumes that all PSD files with layers will have layer mask data,
range data and name. it should verify that the extra data length is still
valid on those items
2) It doesn't handle padded (or blank) layer names correctly. Names are
padded to four bytes, but the plug will only include the actual data (or 1
for blank names) in the offset count. Though it skips them later, it still
should handle it better.
If I find anything else, I'll let you know...
Gimp-developer mailing list