Bug 51566

Summary: [PATCH] treat invalid picture types as loop terminator for Pictures stream
Product: POI Reporter: Gary King <gking>
Component: HSLFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: git format-patch at git-svn-id 1150673

Description Gary King 2011-07-27 17:18:57 UTC
Created attachment 27325 [details]
git format-patch at git-svn-id 1150673

[MS-ODRAW] states that parsing BStoreDelay streams should be terminated when a record is read with a type that is not either 0xf007 or between 0xf018 and 0xf117.

POI was not detecting this, and frequently would throw an exception due to a negative picture length when these non-records were encountered.
Comment 1 Nick Burch 2011-10-15 14:43:18 UTC
Thanks, applied in r1183654.