Dexter: Fix sigfault when target non-file

Problem: Dexter will crash if instructed to open a non-regular file
(e.g: directory).

Solution: Only allow ISREG files to be opened.

Bug: NA
Test: NA
Change-Id: I1de48c33c735babed08bd4b570e317fcbe54c299
1 file changed
tree: 4f805b1c65374d56a9ed087d12571dccd93994ae
  1. dexter/
  2. slicer/
  3. testdata/
  4. .clang-format
  5. Android.bp
  6. OWNERS
  7. README.md
  8. TEST_MAPPING
README.md

This is the home of the .dex manipulation library (slicer) and command line tool (dexter).

Both the command line tool and the library can be built for host and device targets.

To build dexter:

$ m dexter

To test dexter:

# in tools/dexter (and assuming a Linux host)
$ python dexter/dexter_tests.py -cmd ../../out/host/linux-x86/bin/dexter -root testdata