harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Wilson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6210) Inflater.setInput crashes when input is read 1 byte at a time
Date Sat, 23 May 2009 00:14:45 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712319#action_12712319
] 

Jesse Wilson commented on HARMONY-6210:
---------------------------------------

Attached the fix. I've fixed the error detection to be more strict. The previous check wouldn't
have caught any corrupt data other than the single-byte test case.

> Inflater.setInput crashes when input is read  1 byte at a time
> --------------------------------------------------------------
>
>                 Key: HARMONY-6210
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6210
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M9
>         Environment: SVN Revision: 777222
>            Reporter: Jesse Wilson
>            Priority: Minor
>         Attachments: Android_2729_ZipInputStream.patch, HARMONY-6210_fix.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Inflater.setInput() breaks when it doesn't have a big enough buffer to read the magic
number into. Originally reported downstream in Android:
>   http://code.google.com/p/android/issues/detail?id=2729
> Harmony test case attached. I'll submit a fix in a follow-up patch.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message