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

Crash in FatExtract::onEntrywhen directory doesn't exist #35

Open
davispuh opened this issue Dec 31, 2022 · 2 comments
Open

Crash in FatExtract::onEntrywhen directory doesn't exist #35

davispuh opened this issue Dec 31, 2022 · 2 comments

Comments

@davispuh
Copy link

$ fatcat fat.img -d -c 47 -x ./out/
Extracting /EVT.IDX to ./out/EVT.IDX
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7a8b9f8 in fclose () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff7a8b9f8 in fclose () from /usr/lib/libc.so.6
#1  0x00005555555887f0 in FatExtract::onEntry(FatEntry&, FatEntry&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
()
#2  0x0000555555592bb3 in FatWalk::doWalk(std::set<int, std::less<int>, std::allocator<int> >&, FatEntry&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()
#3  0x0000555555592745 in FatWalk::walk(int) ()
#4  0x00005555555889af in FatExtract::extract(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)
()
#5  0x0000555555578b59 in main ()
@davispuh davispuh changed the title Crash in FatExtract::onEntrywhen directory doesn't exsit Crash in FatExtract::onEntrywhen directory doesn't exist Dec 31, 2022
@Gregwar
Copy link
Owner

Gregwar commented Jan 2, 2023

Hello,
Thanks for reporting

Is your image shareable for investigation purpose or is it not?
It will be hard to investigate without more details

@davispuh
Copy link
Author

davispuh commented Jan 2, 2023

I don't think it's related with image at all but just with ./out/ folder not existing (no crash after creating).

Also had similar crash when it tried to extract from corrupted cluster where was binary folder name.

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