当前位置:网站首页>libpng error: iTXt: chunk data is too large error: PNG unsigned integer out of range
libpng error: iTXt: chunk data is too large error: PNG unsigned integer out of range
2022-07-22 04:05:00 【aerror】
Use png Read some png when , appear libpng error: iTXt: chunk data is too large error: PNG unsigned integer out of range Such a mistake , Found to be adobe Of XMP Very big :
$ xxd test.png
00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452 .PNG........IHDR
00000010: 0000 0400 0000 0400 0806 0000 007f 1d2b ...............+
00000020: 8300 0000 0970 4859 7300 000b 1300 000b .....pHYs.......
00000030: 1301 009a 9c18 008b 1b94 6954 5874 584d ..........iTXtXM
00000040: 4c3a 636f 6d2e 6164 6f62 652e 786d 7000 L:com.adobe.xmp.
00000050: 0000 0000 3c3f 7870 6163 6b65 7420 6265 ....<?xpacket be
00000060: 6769 6e3d 22ef bbbf 2220 6964 3d22 5735 gin="..." id="W5
00000070: 4d30 4d70 4365 6869 487a 7265 537a 4e54 M0MpCehiHzreSzNT
00000080: 637a 6b63 3964 223f 3e0a 3c78 3a78 6d70 czkc9d"?>.<x:xmp
00000090: 6d65 7461 2078 6d6c 6e73 3a78 3d22 6164 meta xmlns:x="ad
000000a0: 6f62 653a 6e73 3a6d 6574 612f 2220 783a obe:ns:meta/" x:
000000b0: 786d 7074 6b3d 2241 646f 6265 2058 4d50 xmptk="Adobe XMP
000000c0: 2043 6f72 6520 352e 352d 6330 3134 2037 Core 5.5-c014 7
000000d0: 392e 3135 3134 3831 2c20 3230 3133 2f30 9.151481, 2013/0
000000e0: 332f 3133 2d31 323a 3039 3a31 3520 2020 3/13-12:09:15
000000f0: 2020 2020 2022 3e0a 2020 203c 7264 663a ">. <rdf:
00000100: 5244 4620 786d 6c6e 733a 7264 663d 2268 RDF xmlns:rdf="h
00000110: 7474 703a 2f2f 7777 772e 7733 2e6f 7267 ttp://www.w3.org
00000120: 2f31 3939 392f 3032 2f32 322d 7264 662d /1999/02/22-rdf-
00000130: 7379 6e74 6178 2d6e 7323 223e 0a20 2020 syntax-ns#">.
00000140: 2020 203c 7264 663a 4465 7363 7269 7074 <rdf:Descript
00000150: 696f 6e20 7264 663a 6162 6f75 743d 2222 ion rdf:about=""
This is because of these chunk The default size limit is .
Solution , Use png_set_chunk_malloc_max Set to unlimited .
png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
info_ptr = png_create_info_struct(png_ptr);
png_set_chunk_malloc_max(png_ptr,0);
边栏推荐
猜你喜欢
3.2 queue
10 papers of ant security laboratory were included by ccf-a top meeting to explore the realization of AI credibility from the perspective of algorithm
Monai label installation process and use strategy
极简投资笔记-做一个富有的你自己
严蔚敏第二章课后习题(2.29-2.38)
XLNet学习:究极总结
[CCF CSP] 201903-1 small, medium and large
树模型总结
12306 ticket grabbing artifact
Lorsque idea crée un dossier, le dossier vide du dossier s'agrandit et se chevauche
随机推荐
About thread Sleep() method
数据库原理及应用
word2vec(二)_基于负采样方法实现
蚂蚁安全实验室10篇论文被CCF-A类顶会收录,探索从算法角度实现AI可信
Serial Vector Format(SVF)文件格式
Hutool工具类和工具方法
Minimalist investment notes - be a rich yourself
一款免费听音乐和下载的播放器
32位栈溢出进阶
【CCF CSP】201803-1跳一跳
判断是否平衡二叉树
如何在gdb里打印unicode 16(utf-16) C#的字符串
马斯克自称大脑上云,是科学还是骗术?
guava常用的工具类方法整理
判断是否完全二叉树
静态方法与实例方法的区别
明星餐饮:一场围猎粉丝的杀猪盘
XLNet学习:究极总结
论文阅读:CTRL: A CONDITIONAL TRANSFORMER LANGUAGE MODEL FOR CONTROLLABLE GENERATION
声学术语记录