I'm getting a bunch more ArrayIndexOutOfBoundsExceptions in the regression tests of emf/wmf with specifically wmf files. This line in HwmfHeader assumes that leis.readUShort()-1 assumes that the short-1 will be in the correct range. this.type = HwmfHeader.HwmfHeaderMetaType.values()[leis.readUShort() - 1]; We should add a bounds check and throw a more informative exception.
Created attachment 36850 [details] Example triggering file I need to do some more digging to figure out why this file is being identified as WMF from the parent parser.