From: Will Newton <will@mi...> - 2001-10-21 20:01:26
Diagnostic: (./wvparse.c:140) Theres a good chance that this is a word 2 doc
Diagnostic: (./clx.c:141) clxt is not 1 or 2, it is 188
Diagnostic: (./sed.c:46) NO MEM 1, failed to alloc 0 bytes
I get this when trying to convert a Word 2 file to HTML.
The file in question is here:
I've had a look at the code, and scientifically speaking, the wrong thing is
being read from the wrong place (or maybe the right thing?).
Unfortunately I couldn't figure it out, the Word format is pretty complicated
for a casual programmer like myself. It looks to me like there are two bugs
here, the first being that the wvGetCLX() function is being called at the
wrong offset and reading garbage, and then later there is an incorrect free
should probably be
Changing that line throws up another crash later, on, but by this time the
parser may be thoroughly confused.
I can find how the documents were made if that is of any use to you, they
were made with a later version of Word, but I'm not sure which.
BTW I am not subscribed so replies may be erratic/non-existant.