summaryrefslogtreecommitdiff
path: root/drivers/staging/most/aim-v4l2/video.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-05-09 22:22:14 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 17:14:54 (GMT)
commit99a9ffacc1d390e9548b2370beb816c6739b84b2 (patch)
tree6d3c80b5a05d986e90d9804babe1b15fdfae075b /drivers/staging/most/aim-v4l2/video.c
parentb6ed5a233aea3bd44243bb18d396941c4076e3dc (diff)
downloadlinux-99a9ffacc1d390e9548b2370beb816c6739b84b2.tar.xz
staging: speakup: ensure we do not overrun synths array
synth_add allows one to add MAXSYNTHS synths to the synths array; however it always NULLifies the next synth in the array which means that on the MAXSYNTHS synth we get an out-of-bounds write of the NULL to the synths array. Make the synths array MAXSYNTHS + 1 elements in size to allow for the final NULL sentinal to avoid the out-of-bounds write. Issue found wit CoverityScan, CID#744671 Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/aim-v4l2/video.c')
0 files changed, 0 insertions, 0 deletions