panda2021 created CXF-8610:
------------------------------

             Summary: Some public methds in org.apache.cxf.helpers.IOUtils 
lacks parameter verification, which may cause Null pointer exceptions
                 Key: CXF-8610
                 URL: https://issues.apache.org/jira/browse/CXF-8610
             Project: CXF
          Issue Type: Improvement
          Components: Core
            Reporter: panda2021
         Attachments: image-2021-10-25-11-53-27-620.png

When I performed IO operations using the IOUtils toolkit provided by cxf, a 
null pointer exception occurred. Therefore, I read IOUtils code.  And I found 
that some pubilic methods in this class missed parameter verification which 
could be result of Null pointer exceptions.

For example,

!image-2021-10-25-11-53-27-620.png!

 

when the input was null,the code would throw an excetion when excuting 
input.available().

The same problem occurred with the methods copyAtLeast, loadIntoBAIS, 
transferTo, etc.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to