Skip to content

Commit

Permalink
small bugfix where bases was not declared
Browse files Browse the repository at this point in the history
  • Loading branch information
hexploitable authored and trufae committed Jul 3, 2024
1 parent 3c47f29 commit 3591dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent/lib/info/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export function listSegmentsJson(args: string[]) {
baseAddr = ptr(args[0]);
} else {
const here = ptr(r2frida.offset);
bases = Process.enumerateModules()
const bases = Process.enumerateModules()
.filter(m => here.compare(m.base) >= 0 && here.compare(m.base.add(m.size)) < 0)
.map(m => m.base);
if (bases.length > 0) {
Expand Down

1 comment on commit 3591dd1

@anggorodhanumurti
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have tested this fixes it worked!

Please sign in to comment.