You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2024/01/11 14:46:00 UTC
[jira] [Updated] (BCEL-238) Getters/setters for array should use clone
[ https://issues.apache.org/jira/browse/BCEL-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory updated BCEL-238:
---------------------------------
Fix Version/s: 6.8.2
(was: 6.8.1)
> Getters/setters for array should use clone
> ------------------------------------------
>
> Key: BCEL-238
> URL: https://issues.apache.org/jira/browse/BCEL-238
> Project: Commons BCEL
> Issue Type: Bug
> Reporter: Sebb
> Priority: Major
> Fix For: 6.8.2
>
>
> Further to BCEL-237, if a getter returns a reference to a private final array, then the array contents can be corrupted.
> Similarly if a setter stores an array reference without cloning it, then any holders of the original reference can subsequently change the array entries.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)