Bug 13292

Summary: Size of FuncPtg
Product: POI Reporter: Paul Krause <pkrause>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal CC: dmui
Priority: P3    
Version: 2.0-dev   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Paul Krause 2002-10-04 14:10:20 UTC
FuncPtg contains three bytes of data (sid and one short), but getSize() returns 
4.
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 :)