undefined reference to `png_do_expand_palette_rgb8_neon

本文报道了libpng1.6.17版本存在的安全漏洞,涉及文本块处理和用户限制检查问题。同时提到了在Linux环境下编译1.6.40版本遇到的编译错误,以及解决方法——修改pngpriv.h文件中的特定宏定义。

libpng 1.6.17 存在安全漏洞

Description:

1. The png_set_text_2 function in libpng 0.71 before 1.0.67, 1.2.x before 1.2.57, 1.4.x before 1.4.20, 1.5.x before 1.5.28, and 1.6.x before 1.6.27 allows context-dependent attackers to cause a NULL pointer dereference vectors involving loading a text chunk into a png structure, removing the text, and then adding another text chunk to the structure.

2. libpng before 1.6.32 does not properly check the length of chunks against the user limit.

libpng Home Page下载最新版本1.6.40,libpng-1.6.40.tar.gz,在Linux环境,cmake make 成功编译,但运行时提示:

undefined reference to `png_do_expand_palette_rgb8_neon

解决方法:

修改pngpriv.h 130行:

#  if defined(PNG_ARM_NEON) && (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值