Bug 52258

Summary: CodePageString null check triggering for non codepage data
Product: POI Reporter: Nick Burch <apache>
Component: HPSFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Nick Burch 2011-11-28 17:36:01 UTC
There seems to be something up with the new HPSF properties parsing and CodePageString. 

The result is that for files such as "TestVisioWithCodepage.vsd" (taken from the Tika test suite, and created with Visio), HPSF is deciding that at least one apparently non codepage property is one

What then happens is that the string "Page-1\0c" is parsed through the null termination check in CodePageString, and blows up
Comment 1 Dominik Stadler 2016-01-03 21:23:49 UTC
Added a unit test in r1722755 which tries to reproduce this, it seems to work now, thus closing this old bug as WORKSFORME for now.