Giter Site home page Giter Site logo

mvanderkolff / jbigkit-packaging Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 580 KB

JBIGKit packaging for Debian - this is purely for debian, and not done by the author (he's Markus Kuhn, I'm Michael van der Kolff)

Home Page: http://www.cl.cam.ac.uk/~mgk25/jbigkit/

License: GNU General Public License v2.0

C 88.65% Perl 1.09% Makefile 3.05% Roff 7.21%

jbigkit-packaging's People

Contributors

cgzones avatar jelmer avatar malaterre avatar mvanderkolff avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jelmer cgzones

jbigkit-packaging's Issues

Undefined behavior in testsuite

Running the testsuite reveals some undefined behavior:

# apply Debian patches ...
make clean
make CC=clang-15 CFLAGS='-O1 -g -ftrivial-auto-var-init=pattern -fsanitize=address -fsanitize-address-use-after-scope -fsanitize-address-use-after-return=always -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=nullability -fsanitize=float-divide-by-zero -fsanitize=local-bounds -fPIC' LDFLAGS='-ftrivial-auto-var-init=pattern -fsanitize=address -fsanitize-address-use-after-scope -fsanitize-address-use-after-return=always -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=nullability -fsanitize=float-divide-by-zero -fsanitize=local-bounds'
UBSAN_OPTIONS=print_stacktrace=1:print_summary=1:halt_on_error=0 make test
3) Parametric algorithm test sequence from ITU-T T.82, clause 7.2
-----------------------------------------------------------------

Generating test image ...

Test-85 3.1: TPBON=0, Mx=0, LRLTWO=0, L0=1951, 0 layers

Test-85 3.1.1: Encoding ...
tstcodec85.c:168:15: runtime error: addition of unsigned offset to 0x7fc81e613800 overflowed to 0x7fc81e61370b
    #0 0x564b6898b1b3 in test_cycle /home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85.c:168:15
    #1 0x564b68989db6 in main /home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85.c:413:15
    #2 0x7fc81ec29209 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #3 0x7fc81ec292bb in __libc_start_main csu/../csu/libc-start.c:389:3
    #4 0x564b688c9310 in _start (/home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85+0x33310) (BuildId: 7b5b1a9cf66f1ee5ea3278e17cabbc1d883c266c)

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior tstcodec85.c:168:15 in 
tstcodec85.c:169:15: runtime error: addition of unsigned offset to 0x7fc81e613800 overflowed to 0x7fc81e613616
    #0 0x564b6898b1cc in test_cycle /home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85.c:169:15
    #1 0x564b68989db6 in main /home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85.c:413:15
    #2 0x7fc81ec29209 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #3 0x7fc81ec292bb in __libc_start_main csu/../csu/libc-start.c:389:3
    #4 0x564b688c9310 in _start (/home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85+0x33310) (BuildId: 7b5b1a9cf66f1ee5ea3278e17cabbc1d883c266c)

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior tstcodec85.c:169:15 in 
Encoded BIE has 317384 bytes: PASSED
Test-85 3.1.2: Decoding whole chunk ...
jbig85.c:630:23: runtime error: addition of unsigned offset to 0x617000000080 overflowed to 0x616fffffff8b
    #0 0x564b6899fd43 in decode_pscd /home/christian/Downloads/jbigkit/jbigkit/libjbig/jbig85.c:630:23
    #1 0x564b689973d8 in jbg85_dec_in /home/christian/Downloads/jbigkit/jbigkit/libjbig/jbig85.c:1055:15
    #2 0x564b6898b2a6 in test_cycle /home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85.c:188:12
    #3 0x564b68989db6 in main /home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85.c:413:15
    #4 0x7fc81ec29209 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #5 0x7fc81ec292bb in __libc_start_main csu/../csu/libc-start.c:389:3
    #6 0x564b688c9310 in _start (/home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85+0x33310) (BuildId: 7b5b1a9cf66f1ee5ea3278e17cabbc1d883c266c)

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior jbig85.c:630:23 in 
jbig85.c:631:23: runtime error: addition of unsigned offset to 0x617000000080 overflowed to 0x616fffffff8b
    #0 0x564b6899fe1c in decode_pscd /home/christian/Downloads/jbigkit/jbigkit/libjbig/jbig85.c:631:23
    #1 0x564b689973d8 in jbg85_dec_in /home/christian/Downloads/jbigkit/jbigkit/libjbig/jbig85.c:1055:15
    #2 0x564b6898b2a6 in test_cycle /home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85.c:188:12
    #3 0x564b68989db6 in main /home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85.c:413:15
    #4 0x7fc81ec29209 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #5 0x7fc81ec292bb in __libc_start_main csu/../csu/libc-start.c:389:3
    #6 0x564b688c9310 in _start (/home/christian/Downloads/jbigkit/jbigkit/libjbig/tstcodec85+0x33310) (BuildId: 7b5b1a9cf66f1ee5ea3278e17cabbc1d883c266c)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.