avcodec/ass_split: Don't presume strlen to be >= 2
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 1 Dec 2020 13:24:10 +0000 (14:24 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Fri, 2 Apr 2021 17:07:59 +0000 (19:07 +0200)
commitf38f791a23a8acade7ea6554c80455dce7543dbd
treeb516178b57e6e7cbc4b339fe565d396b5b4f7335
parent0062aca592868e9fd7b6fcb322747d42d71e7315
avcodec/ass_split: Don't presume strlen to be >= 2

Fixes potential heap-buffer-overflow.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/ass_split.c