[shrinkwrap-issues] [JBoss JIRA] Resolved: (SHRINKWRAP-38) ByteArrayAsset may export internal state

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Fri Sep 18 12:01:49 EDT 2009


     [ https://jira.jboss.org/jira/browse/SHRINKWRAP-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Lee Rubinger resolved SHRINKWRAP-38.
-------------------------------------------

    Fix Version/s: 0.1.0
       Resolution: Done


> ByteArrayAsset may export internal state
> ----------------------------------------
>
>                 Key: SHRINKWRAP-38
>                 URL: https://jira.jboss.org/jira/browse/SHRINKWRAP-38
>             Project: ShrinkWrap
>          Issue Type: Bug
>          Components: impl-base
>            Reporter: Andrew Lee Rubinger
>            Assignee: Andrew Lee Rubinger
>             Fix For: 0.1.0
>
>
> Must copy the byte array passed into the ctor, else clients may mutate the state.  Found by FindBugs:
> new org.jboss.shrinkwrap.impl.base.asset.ByteArrayAsset(byte[]) may expose internal representation by storing an externally mutable object into ByteArrayAsset.content

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

        


More information about the shrinkwrap-issues mailing list