Skip to content

Commit 139799f

Browse files
author
eagleychen
committed
添加包大小判断,防止异常数据
1 parent a485fac commit 139799f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ijkmedia/ijkplayer/ff_ffplay.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5487,6 +5487,10 @@ uint32_t convert_hex_to_decimal(uint8_t *hex_data) {
54875487
int parse_sei(AVPacket *pkt, uint8_t *uuid, uint8_t **content, int *size)
54885488
{
54895489
// printf("\n SEI===LENT===%d \n",pkt->size);
5490+
MPTRACE("\n SEI===LENT===%d \n",pkt->size);
5491+
if (pkt->size < 6) {
5492+
return -1;
5493+
}
54905494

54915495
uint8_t *p = pkt->data;
54925496
uint8_t *p_end = p + pkt->size;

0 commit comments

Comments
 (0)