Setting new buffer does not reduce current buffer to cap
The setBufferCap function updates the buffer before changing the cap, so the buffer can remain above the new cap. An attacker could then perform actions that consume more than the intended buffer cap.
Volt Protocol contest
Medium