1 Star 0 Fork 34

zhanghua/ImageMagick

forked from src-openEuler/ImageMagick 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CVE-2020-29599-10.patch 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
wangxiao65 提交于 2021-01-12 15:31 +08:00 . fix CVE-2020-29599
From 83ec5b5b8ee7cae891fff59340be207b513a030d Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Sat, 21 Nov 2020 13:26:16 +0000
Subject: [PATCH] restore passphrase support when rendering PDF's
---
coders/pdf.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/coders/pdf.c b/coders/pdf.c
index 31efd06e5..ce4f7a5f1 100644
--- a/coders/pdf.c
+++ b/coders/pdf.c
@@ -611,14 +611,13 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception)
(void) ConcatenateMagickString(options,"-dUseTrimBox ",MaxTextExtent);
if (stop_on_error != MagickFalse)
(void) ConcatenateMagickString(options,"-dPDFSTOPONERROR ",MaxTextExtent);
- option=GetImageOption(image_info,"authenticate");
- if (option != (char *) NULL)
+ if (image_info->authenticate != (char *) NULL)
{
char
passphrase[MagickPathExtent],
*sanitize_passphrase;
- sanitize_passphrase=SanitizeDelegateString(option);
+ sanitize_passphrase=SanitizeDelegateString(image_info->authenticate);
(void) FormatLocaleString(passphrase,MagickPathExtent,
"'-sPDFPassword=%s' ",sanitize_passphrase);
sanitize_passphrase=DestroyString(sanitize_passphrase);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhanghua1831/ImageMagick.git
git@gitee.com:zhanghua1831/ImageMagick.git
zhanghua1831
ImageMagick
ImageMagick
master

搜索帮助