commit | 9729d6d282a6d7ce88e64c9119cecdf79edf4e88 | [log] [tgz] |
---|---|---|
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | Mon Oct 29 13:32:38 2018 -0400 |
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | Fri Nov 23 06:06:42 2018 -0500 |
tree | c97ee137362e2cd3a172f2f911c76bac60923e18 | |
parent | 701f49bc028edb19ffccd101997dd84f0d71e279 [diff] |
media: vivid: set min width/height to a value > 0 The capture DV timings capabilities allowed for a minimum width and height of 0. So passing a timings struct with 0 values is allowed and will later cause a division by zero. Ensure that the width and height must be >= 16 to avoid this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: syzbot+57c3d83d71187054d56f@syzkaller.appspotmail.com Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>