Skip to content

Commit

Permalink
Use findRangeByAddress instead of findModuleByAddress when checking i…
Browse files Browse the repository at this point in the history
…f the stack pointer is valid
  • Loading branch information
chame1eon committed Jul 29, 2019
1 parent 5944397 commit a3adab3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# jnitrace Change Log

## 1.3.2
- Bug fix - Use Process.findRangeByAddress instead of Process.findModuleByAddress for checking the validity of the stack pointer

## 1.3.1
- Travis integration

## 1.3.0
- Added a command argument to get the version of jnitrace
- jnitrace now intercepts calls to GetJavaVM, returning a shadowJavaVM
Expand Down
2 changes: 1 addition & 1 deletion jnitrace/src/transport/trace_transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ TraceTransport.prototype.trace = function(method, args, ret, context, add) {
// verify that a backtrace is possible.
// sometimes the NativeCallback provides erroneous CpuContexts
if (Process.findModuleByAddress(context.pc) &&
Process.findModuleByAddress(context.sp)) {
Process.findRangeByAddress(context.sp)) {
var bt = Thread.backtrace(context, Backtracer.FUZZY);

for (var i = 0; i < bt.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='jnitrace',
version='1.3.1',
version='1.3.2',
description='A tool for tracing use of the JNI in Android apps',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit a3adab3

Please sign in to comment.