Re: [PATCH v5 08/10] media: Quit parsing stream if doesn't start with SOI

2020-12-02 Thread Philipp Zabel
On Thu, 2020-11-12 at 05:05 +0200, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > 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 star

[PATCH v5 08/10] media: Quit parsing stream if doesn't start with SOI

2020-11-11 Thread Mirela Rabulea (OSS)
From: Mirela Rabulea 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 a