]> granicus.if.org Git - libvpx/commit
Fix out of bounds read in update_mbgraph_frame_stats
authorAdrian Grange <agrange@google.com>
Fri, 9 Dec 2011 20:47:57 +0000 (12:47 -0800)
committerAdrian Grange <agrange@google.com>
Fri, 9 Dec 2011 20:47:57 +0000 (12:47 -0800)
commit95b4cf059cc2cb71ff49b818df4d285ced299cfc
treee2e051cb7502d88a3c150e6534adb16cd57ec970
parent7748d833e8dc61c6169529dc105aacea006ee455
Fix out of bounds read in update_mbgraph_frame_stats

update_mbgraph_frame_stats used xd->mode_info_context
before it had been setup, resulting in potentially
random accesses of uninitialized memory.

This fix allocates a local MODE_INFO structure to hold
the data generated in the function.

Change-Id: Ic9e75610008ce0e2d690e8e583c21582fee6fc45
vp8/encoder/mbgraph.c