Fix security vulnerability: Effect command might allow negative indexes am: 500a9feaf8 am: 10428159a9 am: 4e9838e753 am: 1005f6ad72 am: a0a7214a5b am: e9544ba584 am: 12ae707c0b am: 45a20393fe am: 6ba74b8016 am: 04290dd042
am: c172b5dced

Change-Id: Ie0928df385ebb5da4d309d31563eb7142e000bcd