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

CMake Support && FPE on unknown address #6

Closed
frokaikan opened this issue Aug 21, 2018 · 2 comments
Closed

CMake Support && FPE on unknown address #6

frokaikan opened this issue Aug 21, 2018 · 2 comments

Comments

@frokaikan
Copy link

Now this project can only build on MS Windows
with gcc/clang, I can't build it.
So I write a CMakeLists.txt
CMakeLists.txt
to compile it on Linux.
But when I run the binary I got this:

./ffjpeg -d input/lena.jpg 
AddressSanitizer:DEADLYSIGNAL
=================================================================
==9464==ERROR: AddressSanitizer: FPE on unknown address 0x00000051c261 (pc 0x00000051c261 bp 0x7fff168c26f0 sp 0x7fff168c2020 T0)
    #0 0x51c260  (/my/ffjpeg/ffjpeg+0x51c260)
    #1 0x51302e  (/my/ffjpeg/ffjpeg+0x51302e)
    #2 0x7f27da09eb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x41a9f9  (/my/ffjpeg/ffjpeg+0x41a9f9)
@frokaikan
Copy link
Author

Sorry but I just forgot to upload my lena.jpg
lena.zip

@rockcarry
Copy link
Owner

I've debugged and analysed the lena.jpg you provided.

I found out:

  1. the lena.jpg is a progressive jpeg file
  2. the file does not contain the AC huffman table.

so my code can not decode it correctly.

but this file can be open on windows Image viewer.

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