From 2df6c70b076979effe6d70bd65f4eca0fa97d112 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 2 Jun 2021 10:54:13 +0200 Subject: [PATCH] Utilities: Report correct memory addresses for pmap While I think negative memory might be an interesting concept to investigate I don't think we're quite ready for it yet: 7ca71000 8192 r-xs- libcrypt.so: .text 7ca73000 4096 r---- libcrypt.so: .relro 7ca74000 4096 rw--- libcrypt.so: .data -6d391000 45056 r-xs- libttf.so: .text -6d385000 4096 r---- libttf.so: .relro -6d384000 4096 rw--- libttf.so: .data --- Userland/Utilities/pmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/pmap.cpp b/Userland/Utilities/pmap.cpp index 862103560f..2673f0fa0d 100644 --- a/Userland/Utilities/pmap.cpp +++ b/Userland/Utilities/pmap.cpp @@ -60,7 +60,7 @@ int main(int argc, char** argv) for (auto& value : sorted_regions) { auto& map = value.as_object(); - auto address = map.get("address").to_int(); + auto address = map.get("address").to_uint(); auto size = map.get("size").to_string(); auto access = String::formatted("{}{}{}{}{}",