Skip to content

Commit 22dbbf5

Browse files
committed
增加参数过大校验
1 parent 360a570 commit 22dbbf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ijkmedia/ijkplayer/ff_ffmsg_queue.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ inline static void msg_queue_put_simple4(MessageQueue *q, int what, int arg1, in
156156
return;
157157
}
158158

159+
if (obj_len > 2688) {
160+
av_log(NULL, AV_LOG_ERROR, "msg_queue_put_simple4: 过大的参数 - obj: %p, obj_len: %d\n",
161+
obj, obj_len);
162+
return;
163+
}
164+
159165
AVMessage msg;
160166
msg_init_msg(&msg);
161167
msg.what = what;

0 commit comments

Comments
 (0)