datapath: Fix buffer overrun in mask array realloc.
authorPravin B Shelar <pshelar@nicira.com>
Fri, 25 Jul 2014 23:22:46 +0000 (16:22 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 25 Jul 2014 23:40:20 +0000 (16:40 -0700)
commit4e5135424a72516312dfb2cd358d370e5c505ad9
treeea33e9133bdd268dc0360e58cb82affd62ee52b7
parentcffabec1bb6fb60dcf3d34c8606dfcfa1fb68f74
datapath: Fix buffer overrun in mask array realloc.

mask realloc copies elements from old array to new array. When
shrinking array it can go beyond allocated memory.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
datapath/flow_table.c