GithubHelp home page GithubHelp logo

Abort in reconstruct.cpp:352 about libjpeg HOT 2 CLOSED

SEU-SSL avatar SEU-SSL commented on July 17, 2024
Abort in reconstruct.cpp:352

from libjpeg.

Comments (2)

bladchan avatar bladchan commented on July 17, 2024

Hi, SEU-SSL
I used your poc but didn't trigger any bug.
Here's my output:

./jpeg ./poc2 /dev/null
jpeg Copyright (C) 2012-2018 Thomas Richter, University of Stuttgart
and Accusoft

For license conditions, see README.license for details.

*** Warning -1038 in Tables::ParseTables, line 1399, file tables.cpp
*** Reason is: found invalid marker, probably a marker size is out of range

*** Warning -1038 in Frame::StartParseHiddenScan, line 875, file frame.cpp
*** Reason is: Start of Scan SOS marker missing

*** Warning -1038 in Frame::ParseTrailer, line 1091, file frame.cpp
*** Reason is: missing an EOI marker at the end of the stream

*** Warning -1038 in Image::ParseTrailer, line 1468, file image.cpp
*** Reason is: expecting an EOI marker at the end of the stream


0 bytes memory not yet released.

15337 bytes maximal required.

84 allocations performed.

BTW, I used clang 6.0 to compile this library. Maybe this error is related to compiler environment?

from libjpeg.

SEU-SSL avatar SEU-SSL commented on July 17, 2024

Hi, SEU-SSL I used your poc but didn't trigger any bug. Here's my output:

./jpeg ./poc2 /dev/null
jpeg Copyright (C) 2012-2018 Thomas Richter, University of Stuttgart
and Accusoft

For license conditions, see README.license for details.

*** Warning -1038 in Tables::ParseTables, line 1399, file tables.cpp
*** Reason is: found invalid marker, probably a marker size is out of range

*** Warning -1038 in Frame::StartParseHiddenScan, line 875, file frame.cpp
*** Reason is: Start of Scan SOS marker missing

*** Warning -1038 in Frame::ParseTrailer, line 1091, file frame.cpp
*** Reason is: missing an EOI marker at the end of the stream

*** Warning -1038 in Image::ParseTrailer, line 1468, file image.cpp
*** Reason is: expecting an EOI marker at the end of the stream


0 bytes memory not yet released.

15337 bytes maximal required.

84 allocations performed.

BTW, I used clang 6.0 to compile this library. Maybe this error is related to compiler environment?

Hello, I guess this issue is fixed by this commit db33a6e
Perhaps you can try to reproduce the vulnerability with an earlier version.

from libjpeg.

Related Issues (20)

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.