Submitted by JMukesh
Using memory array parameters (e.g.uint[] memory) as function parameters can be tricky in Solidity, because an attack is possible with a very large array which will overlap with other parts of the memory.
This an example to show the exploit based on Exploit.sol:
Recommend checking the array length before using it
asselstine (PoolTogether) confirmed:
