Skip to content

Commit

Permalink
Fix kernel addresses messed up in :dm
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Dec 4, 2023
1 parent 7962c19 commit ce81e8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agent/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ export function padString(text: string, length: number) {

export function padPointer(value: string | NativePointer) {
if (value.toString().indexOf('ArrayBuffer') !== -1) {
value = arrayBufferToHex(value);
value = arrayBufferToHex(value).toString();
}
let result = (+value).toString(16);
let result = (new NativePointer(value)).toString(16);
const paddedLength = 2 * Process.pointerSize;
while (result.length < paddedLength) {
result = '0' + result;
Expand Down

0 comments on commit ce81e8f

Please sign in to comment.