Skip to content

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

Description

@davispuh
$ 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 ()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions