Menu

#310 DJVU::IWBitmap::Encode::init@IW44EncodeCodec.cpp:1431-35___FPE

djvulibre
open
nobody
None
5
2019-10-09
2019-10-09
pwd
No

djvu

version

djvu Commit-6630c7

description

DjVu is a web-centric format for distributing documents and images. DjVu was created at AT&T Labs-Research and later sold to LizardTech Inc. DjVuLibre is a GPL implementation of DjVu maintained by the original inventors of DjVu.
https://sourceforge.net/p/djvu/djvulibre-git/ci/master/tree/

others

please send email to  teamseri0us360@gmail.com if you have any questions.

DJVU::IWBitmap::Encode::init@IW44EncodeCodec.cpp:1431-35___FPE

description

An issue was discovered in djvu Commit-6630c7, There is a/an FPE in function DJVU::IWBitmap::Encode::init at IW44EncodeCodec.cpp:1431-35

commandline

c44 @@ /dev/null

source

1427   GPBuffer<signed char> gbuffer(buffer,w*h);
1428   // Prepare gray level conversion table
1429   signed char  bconv[256];
1430   for (i=0; i<256; i++)
>1431     bconv[i] = max(0,min(255,i*255/g \*bug=>*\ )) - 128;
1432   // Perform decomposition
1433   // Prepare mask information
1434   const signed char *msk8 = 0;
1435   int mskrowsize = 0;
1436   GBitmap *mask=gmask;

bug report

ASAN:DEADLYSIGNAL
=================================================================
==21807==ERROR: AddressSanitizer: FPE on unknown address 0x7f626366c361 (pc 0x7f626366c361 bp 0x7ffc15f33810 sp 0x7ffc15f33540 T0)
    #0 0x7f626366c360 in DJVU::IWBitmap::Encode::init(DJVU::GBitmap const&, DJVU::GP<DJVU::GBitmap>) /src/djvu/libdjvu/IW44EncodeCodec.cpp:1431:35
    #1 0x7f626366bc87 in DJVU::IW44Image::create_encode(DJVU::GBitmap const&, DJVU::GP<DJVU::GBitmap>) /src/djvu/libdjvu/IW44EncodeCodec.cpp:1400:3
    #2 0x4f9cc1 in main /src/djvu/tools/c44.cpp:732:16
    #3 0x7f6261ff582f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291
    #4 0x41a778 in _start (/src/aflbuild/installed/bin/c44+0x41a778)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE /src/djvu/libdjvu/IW44EncodeCodec.cpp:1431:35 in DJVU::IWBitmap::Encode::init(DJVU::GBitmap const&, DJVU::GP<DJVU::GBitmap>)
==21807==ABORTING

others

from fuzz project pwd-djvu-c44-00
crash name pwd-djvu-c44-00-00000003-20190929.pnm
Auto-generated by pyspider at 2019-09-29 01:46:01

please send email to  teamseri0us360@gmail.com if you have any questions.
1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB