History log of /ndk/sources/host-tools/ndk-stack/ndk-stack-parser.c
Revision Date Author Comments
273fd4fcae7d1ee68ff3096108f623c6db6007a8 14-Aug-2012 Logan Chien <loganchien@google.com> Remove signed-unsigned comparison by casting.

Change-Id: I301b247ca95ab3392f1151ddc8f799844b0c4a47
27db2fc052a03217689a4be833ad79458742d7fa 14-Aug-2012 Logan Chien <loganchien@google.com> Remove unused variable in ndk-stack-parser.

Change-Id: Iedb0d9d11bb5f6f843ad66e5158d11984192620c
5079ebbb32c44bb3a4bc3602d696521eba6abfff 14-Aug-2012 Logan Chien <loganchien@google.com> Fix buffer overflow in ndk-stack-parser.

Cleanup the code, and remove a buffer overflow exploit.

NOTE: strncat(d, n, s) requires (strlen(d) + n + 1)
bytes.

Change-Id: Ib6e835d014d52e61e0448b4d62caee46c8ac4a2c
c0bf90ae0f4f84875d0af5d7166b57deb77e57a3 28-Jun-2011 David 'Digit' Turner <digit@android.com> ndk-stack: Fixes + Documentation

This patch fixes the ndk-stack tool to properly work as advertized, and
adds a new documentation file (docs/NDK-STACK.html) to illustrate its usage.

+ Add build/tools/build-ndk-stack.sh to automatically rebuild the
host tool from sources (and from scratch).

+ Ensure that rebuild-all-prebuilt.sh invokes build-ndk-stack.sh
and places the resulting binary at the top of target NDK directory.

+ Ensure that package-release.sh places the prebuilt binaries into
the final packages.

+ Add a --host-only option to rebuild-all-prebuilt.sh to indicate
that you only want to rebuilt the host binaries (and none of the
target ones). The --darwin-ssh and --mingw options also imply
--host-only.

Change-Id: I5f26e83378c02bfd3b62fa76a7c50c5755104fa9
b3682c489e0c54b1ab05f78e8f91d0642bf975e1 21-Jun-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Fix search for stack frames

The regex used to search for stack frames had a flaw that included heap
frames along with call stack frames. New regex should have fixed that.

Change-Id: I9f73adc3f3c762064a739ed887a6c6814dc3cb17
7ecfaaa424d561d670f643993bb9b373db85d832 21-Jun-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Better Makefile

Also replaced Window EOLs with Unix EOLs
Also made it accepting input from stdin.

Change-Id: I37d35641844d2bee50ecfedc74ea8e519d9dd654
f9e88edc21c894886747e899dc29c02a28728d65 14-Jun-2011 Vladimir Chtchetkine <vchtchetkine@google.com> Add regex library to the sources

This is needed to make sure that executable is independent from
intricacies of the configurations in which it runs.

Change-Id: Ia3bf9b598b4a61a566bf9307a708af5453c411b3
5e0720014efeafbf6228ae4cd93b3968c1de53fc 09-Jun-2011 Vladimir Chtchetkine <vchtchetkine@google.com> First cut of NDK "stack" utility

This utility is intended to parse crash dump file printing references to the
crash frames in <file>:<line> format.

All source files under elff folder are snatched "as is" from the elff library
under external/qemu/elff, so they don't really require any review.

Change-Id: Id4ca36e8f2798247482e1425ef3ec7cd0693067e