120 Star 0 Fork 8

src-openEuler/gstreamer-plugins-base

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-typefind-bounds-check-windows-ico-detection.patch 844 Bytes
一键复制 编辑 原始数据 按行查看 历史
AlexZ11 提交于 2019-11-28 20:36 +08:00 . gstreamer-plugins-base:initialize
From 566e3e60698be7ea414ae5a495f111c0e7008702 Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
Date: Tue, 6 Dec 2016 16:59:42 +0100
Subject: [PATCH] typefind: bounds check windows ico detection
Fixes out of bounds read
https://bugzilla.gnome.org/show_bug.cgi?id=774902
---
gst/typefind/gsttypefindfunctions.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c
index 27823b6..c8629b7 100644
--- a/gst/typefind/gsttypefindfunctions.c
+++ b/gst/typefind/gsttypefindfunctions.c
@@ -4149,6 +4149,8 @@ windows_icon_typefind (GstTypeFind * find, gpointer user_data)
gint32 size, offset;
datalen = gst_type_find_get_length (find);
+ if (datalen < 18)
+ return;
if ((data = gst_type_find_peek (find, 0, 6)) == NULL)
return;
--
2.9.3
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/gstreamer-plugins-base.git
git@gitee.com:src-openeuler/gstreamer-plugins-base.git
src-openeuler
gstreamer-plugins-base
gstreamer-plugins-base
master

搜索帮助

371d5123 14472233 46e8bd33 14472233