On a sun sparc sunos 5.7 built, xchm 0.9.1 crashes with:
Program received signal SIGSEGV, Segmentation fault.
CHMFile::InfoFromSystem (this=0xc0858) at chmfile.cpp:723
(tested with a number of different *.chm-files, for
example with windows-XP C:\windows\license.chm).
The reason for the crash seems to be odd values of the
variable index in
CHMFile::InfoFromSystem(). With the patch attached the
crash can be safely pre-recognized and avoided, however
processing of the /#SYSTEM file is simply aborted that way.
(BTW, thanks for this very nice tool!)