parameter passing by reference is performant bug might be insecure. #5176
Labels
Status: Needs Discussion
Requires help discussing a reported issue or provided PR
Type: Improvement
Request for or addition/enhancement of a feature
parameter passing by reference
on a number of locations in the code static code analysis tools like pmd warn that data structures passed are stored and returned directly. while java has no pointers, this behaviour is similar, passing by reference. so an outside actor can change the contents of the structure. such a parameter passing may be a security leak especially in public APIs. see for example here for an explanation
for games, this is more a performance feature than a security leak.
keywords:
MethodReturnsInternalArray, ArrayIsStoredDirectly,
Proposal
@jdrueckert wishes a more thorough discussion about the issue, and suggested to suppress the warning at the moment and link to this ticket, in a TODO.
The text was updated successfully, but these errors were encountered: