Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault in LineMerger::GetNextLowpassLine #79

Closed
chluo1997 opened this issue Jul 28, 2022 · 3 comments
Closed

Segmentation fault in LineMerger::GetNextLowpassLine #79

chluo1997 opened this issue Jul 28, 2022 · 3 comments

Comments

@chluo1997
Copy link

chluo1997 commented Jul 28, 2022

Hi, there.

There is a segmentation fault in the newest master branch.

Here is the reproducing command:
jpeg poc /dev/null

(gdb) bt
#0  0x00007ffff7f31270 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x0000000000711b6f in LineMerger::GetNextLowpassLine (this=0x85ed20, comp=2 '\002')
    at linemerger.cpp:262
#2  0x00000000007127d2 in LineMerger::GetNextExpandedLowPassLine (this=0x85ed20,
    comp=<optimized out>) at linemerger.cpp:339
#3  0x0000000000713251 in LineMerger::GetNextLine (this=0x85ed20, comp=2 '\002')
    at linemerger.cpp:360
#4  0x000000000071c2dd in HierarchicalBitmapRequester::Pull8Lines (this=0x792720,
    c=<optimized out>) at hierarchicalbitmaprequester.cpp:447
#5  0x0000000000720156 in HierarchicalBitmapRequester::ReconstructRegion (this=0x792720,
    orgregion=..., rr=0x7fffffffdae8) at hierarchicalbitmaprequester.cpp:739
#6  0x000000000045c501 in Image::ReconstructRegion (this=0x7923b0, bmh=0x7fffffffd790,
    rr=0x7fffffffdae8) at image.cpp:1115
#7  0x000000000043e266 in JPEG::InternalDisplayRectangle (this=0x7904c8, tags=0x7fffffffde90)
    at jpeg.cpp:721
#8  0x000000000043e14b in JPEG::DisplayRectangle (this=0x7904c8, tags=0x7fffffffde90)
    at jpeg.cpp:699
#9  0x000000000041e336 in Reconstruct (infile=<optimized out>,
    outfile=0x7fffffffe704 "/dev/null", colortrafo=1,
    alpha=0x790280 "\230$\255", <incomplete sequence \373>, upsample=true)
    at reconstruct.cpp:331
#10 0x0000000000408b6a in main (argc=<optimized out>, argv=0x87a720) at main.cpp:747

poc.zip

@thorfdbg
Copy link
Owner

thorfdbg commented Aug 3, 2022

Unfortunately, I cannot reproduce this issue.

@chluo1997
Copy link
Author

chluo1997 commented Aug 3, 2022

Sorry, I found I attached the wrong file. I just updated the attached PoC file. Please check that.

@thorfdbg
Copy link
Owner

thorfdbg commented Aug 3, 2022

Thank you, this should be fixed in the latest trunk.

@thorfdbg thorfdbg closed this as completed Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants