summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMirela Rabulea <mirela.rabulea@nxp.com>2021-03-11 01:28:50 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-03-22 10:39:30 +0100
commitccbea178db47bf4a111ee97c0d77678818563a93 (patch)
treed6862edb6878e7a9e7470d95dfe5be844d6b9c38 /tools/perf/scripts/python/export-to-sqlite.py
parentb8035f7988a82cbbabf1009b9f3234ff2431f8a4 (diff)
downloadlinux-ccbea178db47bf4a111ee97c0d77678818563a93.tar.gz
linux-ccbea178db47bf4a111ee97c0d77678818563a93.zip
media: Quit parsing stream if doesn't start with SOI
In the case we get an invalid stream, such as from v4l2-compliance streaming test, jpeg_next_marker will end up parsing the entire stream. The standard describes the high level syntax of a jpeg as starting with SOI, ending with EOI, so return error if the very first 2 bytes are not SOI. Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions