1 Star 0 Fork 7

zhangxingrong/zopfli

forked from src-openEuler/zopfli 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Multiplication-result-converted-to-larger-type.patch 913 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangxingrong 提交于 2024-07-12 15:37 . add upstream patch
From 55bdd963ee5c209374140219c275497fddd84bd5 Mon Sep 17 00:00:00 2001
From: Shivam7-1 <[email protected]>
Date: Wed, 28 Feb 2024 18:29:24 +0530
Subject: [PATCH] Update lodepng_util.cpp
---
src/zopflipng/lodepng/lodepng_util.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/zopflipng/lodepng/lodepng_util.cpp b/src/zopflipng/lodepng/lodepng_util.cpp
index 574138a1..11a6c0f3 100644
--- a/src/zopflipng/lodepng/lodepng_util.cpp
+++ b/src/zopflipng/lodepng/lodepng_util.cpp
@@ -1151,7 +1151,7 @@ unsigned convertToXYZ(float* out, float whitepoint[3], const unsigned char* in,
use_icc = validateICC(&icc);
}
- data = (unsigned char*)lodepng_malloc(w * h * (bit16 ? 8 : 4));
+ data = (unsigned char*)lodepng_malloc((size_t)w * (size_t)h * (bit16 ? 8 : 4));
error = lodepng_convert(data, in, &tempmode, mode_in, w, h);
if(error) goto cleanup;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangxingrong/zopfli.git
[email protected]:zhangxingrong/zopfli.git
zhangxingrong
zopfli
zopfli
master

搜索帮助