yeolar / cjpeg Goto Github PK
View Code? Open in Web Editor NEWBMP to JPEG tool
License: GNU General Public License v2.0
BMP to JPEG tool
License: GNU General Public License v2.0
ubuntu18.04
compile with asan
./cjpeg poc tmp
https://drive.google.com/file/d/1k8lIpKbYxzWMqWrV8_w_an6e806Fa4lq/view?usp=sharing
=================================================================
==32780==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x617000000320 at pc 0x55b30073ede6 bp 0x7fff991680b0 sp 0x7fff991680a0
READ of size 1 at 0x617000000320 thread T0
#0 0x55b30073ede5 in rgb_to_ycbcr /home/fuzz/cjpeg/cjpeg.c:72
#1 0x55b300747242 in jpeg_encode /home/fuzz/cjpeg/cjpeg.c:292
#2 0x55b30072c7c6 in main /home/fuzz/cjpeg/cjpeg.c:378
#3 0x7f1f467a5bf6 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21bf6)
#4 0x55b30072ca19 in _start (/home/micro/all/found/cjpeg/cjpeg_asan+0x2a19)
0x617000000320 is located 0 bytes to the right of 672-byte region [0x617000000080,0x617000000320)
allocated by thread T0 here:
#0 0x7f1f46c53b40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x55b30072d034 in init_mem /home/fuzz/cjpeg/cio.c:76
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/fuzz/cjpeg/cjpeg.c:72 in rgb_to_ycbcr
Shadow bytes around the buggy address:
0x0c2e7fff8010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2e7fff8020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2e7fff8030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2e7fff8040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2e7fff8050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c2e7fff8060: 00 00 00 00[fa]fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fff8070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fff8080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fff8090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fff80a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fff80b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==32780==ABORTING
没事,找到了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.