You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vladimir Strigun (JIRA)" <ji...@apache.org> on 2006/03/31 17:45:26 UTC

[jira] Created: (HARMONY-285) methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array

methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array
------------------------------------------------------------------------------------------------

         Key: HARMONY-285
         URL: http://issues.apache.org/jira/browse/HARMONY-285
     Project: Harmony
        Type: Bug
  Components: Classlib  
    Reporter: Vladimir Strigun
    Priority: Minor


VM crash if I use null as parameter for byte array in write(null, 0, 0) method in FileOutputStream and read(null, 0, 0) in FileInputStream, but NullPointerException should occur.
I'll attach testcases soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (HARMONY-285) methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-285?page=all ]

George Harley reassigned HARMONY-285:
-------------------------------------

    Assign To: George Harley

> methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array
> ------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-285
>          URL: http://issues.apache.org/jira/browse/HARMONY-285
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Vladimir Strigun
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: FileInputStreamTest.java, FileOutputStreamTest.java, Harmony-285.txt
>
> VM crash if I use null as parameter for byte array in write(null, 0, 0) method in FileOutputStream and read(null, 0, 0) in FileInputStream, but NullPointerException should occur.
> I'll attach testcases soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-285) methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array

Posted by "George Harley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-285?page=comments#action_12373923 ] 

George Harley commented on HARMONY-285:
---------------------------------------

Hi Vladimir, 

It was probably my mistake. Added newline characters, as requested,  in revision 393044. 

Best regards, 
George


> methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array
> ------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-285
>          URL: http://issues.apache.org/jira/browse/HARMONY-285
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Vladimir Strigun
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: FileInputStreamTest.java, FileOutputStreamTest.java, Harmony-285.txt
>
> VM crash if I use null as parameter for byte array in write(null, 0, 0) method in FileOutputStream and read(null, 0, 0) in FileInputStream, but NullPointerException should occur.
> I'll attach testcases soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-285) methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array

Posted by "Vladimir Strigun (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-285?page=comments#action_12374005 ] 

Vladimir Strigun commented on HARMONY-285:
------------------------------------------

George, now everything is fine. Please close the issue.

> methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array
> ------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-285
>          URL: http://issues.apache.org/jira/browse/HARMONY-285
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Vladimir Strigun
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: FileInputStreamTest.java, FileOutputStreamTest.java, Harmony-285.txt
>
> VM crash if I use null as parameter for byte array in write(null, 0, 0) method in FileOutputStream and read(null, 0, 0) in FileInputStream, but NullPointerException should occur.
> I'll attach testcases soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-285) methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array

Posted by "Vladimir Strigun (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-285?page=all ]

Vladimir Strigun updated HARMONY-285:
-------------------------------------

    Attachment: FileOutputStreamTest.java

FileOutputStreamTest.java

> methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array
> ------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-285
>          URL: http://issues.apache.org/jira/browse/HARMONY-285
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Vladimir Strigun
>     Priority: Minor
>  Attachments: FileInputStreamTest.java, FileOutputStreamTest.java
>
> VM crash if I use null as parameter for byte array in write(null, 0, 0) method in FileOutputStream and read(null, 0, 0) in FileInputStream, but NullPointerException should occur.
> I'll attach testcases soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (HARMONY-285) methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-285?page=all ]
     
George Harley closed HARMONY-285:
---------------------------------


Verified by Vladimir. 

> methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array
> ------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-285
>          URL: http://issues.apache.org/jira/browse/HARMONY-285
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Vladimir Strigun
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: FileInputStreamTest.java, FileOutputStreamTest.java, Harmony-285.txt
>
> VM crash if I use null as parameter for byte array in write(null, 0, 0) method in FileOutputStream and read(null, 0, 0) in FileInputStream, but NullPointerException should occur.
> I'll attach testcases soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (HARMONY-285) methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-285?page=all ]
     
George Harley resolved HARMONY-285:
-----------------------------------

    Resolution: Fixed

Hi Vladimir, 

Changes committed in revision 393019. Thank you for finding these problems and for supplying the fix.

Please could you check that your changes have been applied as expected. 

Best regards, 
George

> methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array
> ------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-285
>          URL: http://issues.apache.org/jira/browse/HARMONY-285
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Vladimir Strigun
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: FileInputStreamTest.java, FileOutputStreamTest.java, Harmony-285.txt
>
> VM crash if I use null as parameter for byte array in write(null, 0, 0) method in FileOutputStream and read(null, 0, 0) in FileInputStream, but NullPointerException should occur.
> I'll attach testcases soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-285) methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array

Posted by "Vladimir Strigun (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-285?page=all ]

Vladimir Strigun updated HARMONY-285:
-------------------------------------

    Attachment: Harmony-285.txt

Please try my patch.

> methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array
> ------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-285
>          URL: http://issues.apache.org/jira/browse/HARMONY-285
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Vladimir Strigun
>     Priority: Minor
>  Attachments: FileInputStreamTest.java, FileOutputStreamTest.java, Harmony-285.txt
>
> VM crash if I use null as parameter for byte array in write(null, 0, 0) method in FileOutputStream and read(null, 0, 0) in FileInputStream, but NullPointerException should occur.
> I'll attach testcases soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-285) methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array

Posted by "Vladimir Strigun (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-285?page=all ]

Vladimir Strigun updated HARMONY-285:
-------------------------------------

    Attachment: FileInputStreamTest.java

FileInputStreamTest.java

> methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array
> ------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-285
>          URL: http://issues.apache.org/jira/browse/HARMONY-285
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Vladimir Strigun
>     Priority: Minor
>  Attachments: FileInputStreamTest.java
>
> VM crash if I use null as parameter for byte array in write(null, 0, 0) method in FileOutputStream and read(null, 0, 0) in FileInputStream, but NullPointerException should occur.
> I'll attach testcases soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-285) methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array

Posted by "Vladimir Strigun (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-285?page=comments#action_12373919 ] 

Vladimir Strigun commented on HARMONY-285:
------------------------------------------

Thanks George,

Fix applied as expected, but unfortunately there are no new lines at the end of test files. Looks like I've missed it when attached files to JIRA. Could you please add it? 

Thanks!

> methods in FileOutputStream and FileInputStream crash VM if use null as parameter for byte array
> ------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-285
>          URL: http://issues.apache.org/jira/browse/HARMONY-285
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Vladimir Strigun
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: FileInputStreamTest.java, FileOutputStreamTest.java, Harmony-285.txt
>
> VM crash if I use null as parameter for byte array in write(null, 0, 0) method in FileOutputStream and read(null, 0, 0) in FileInputStream, but NullPointerException should occur.
> I'll attach testcases soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira