Bug 13292 - Size of FuncPtg
Summary: Size of FuncPtg
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.0-dev
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2002-10-04 14:10 UTC by Paul Krause
Modified: 2004-11-16 19:05 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Paul Krause 2002-10-04 14:10:20 UTC
FuncPtg contains three bytes of data (sid and one short), but getSize() returns 
Comment 1 Avik Sengupta 2002-12-12 13:12:31 UTC
I am surprised any serialisation works in the presence of such a serious bug.
Will check. I must have been particularly stupid when i wrote this :(
Comment 2 Avik Sengupta 2003-05-06 13:13:49 UTC
Ok, this is a REAL bug, but the reason why we havent seen this corrupt files is
that POI never writes FuncPtg, it instead writes FuncVarPtg. This error is
manifested in reading Excel files, where one gets WARNING:unknow Ptg 0 
Which should have told us a size was wrong, since there cant be a Ptg SID of 0!!

I have fixed it locally, waiting for some feedback from Danny, since he had
written a workaround on this, which i think i need to remove. 
Comment 3 Danny Mui 2003-05-06 15:04:17 UTC
Yes, this sounds better than my conservative approach.  I'll be testing template
read/serialization more extensively in the coming days.
Comment 4 Avik Sengupta 2003-05-06 15:36:12 UTC
Fixed. Shout if i have broken anything.. This should remove any 
WARNING: Unknown Ptg 0 (0)

Of course, other ptgs could still be unknown :)