https://issues.apache.org/bugzilla/show_bug.cgi?id=50056
--- Comment #1 from Helder Magalhães <[email protected]> 2010-10-07 07:54:31 EDT --- Thanks for reporting! :-) (In reply to comment #0) > Created an attachment (id=26136) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26136) [details] > The WMF file that failed It's good to have the causer attached. ;-) > I use WMFTranscoder to convert WMF files to SVG. Could you provide the command-line used, if any? (If the conversion is triggered by Java source, I was mostly interested of any hints/parameters were passed to the transcoder). > The length of the array that caused the exception was 108248, so 1 byte after > the end was attempted to read. > > The problem was on line 194 in AbstractWMFPainter, where next byte for the > next > iteration, which could be after the end, if there is no padding. > > Here is fixed code for the getImage(byte[]) method: I haven't yet checked for the solution, but the problem seems well evaluated. Could you turn your fix proposal into a patch? It's far better for reviewing and for allowing local testing (among other reasons). If you are unable to do that, please just state so. ;-) Finally, please provide some details on your current environment: at a minimum, I'd say operating system, Java version and Batik version/SVN source code revision. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
