From 59e759e0363cd474e662f28503f8de726baf7d20 Mon Sep 17 00:00:00 2001 From: Xeonacid Date: Wed, 22 Mar 2023 14:28:09 +0800 Subject: [PATCH] Fix missing length in mprotect doc example (#1641) --- pwndbg/commands/mprotect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwndbg/commands/mprotect.py b/pwndbg/commands/mprotect.py index b11324d1b..5b8e6acf3 100644 --- a/pwndbg/commands/mprotect.py +++ b/pwndbg/commands/mprotect.py @@ -23,8 +23,8 @@ Note that the mprotect syscall may fail for various reasons can be decoded with the `errno ` command. Examples: - mprotect $rsp PROT_READ|PROT_WRITE|PROT_EXEC - mprotect some_symbol PROT_NONE + mprotect $rsp 4096 PROT_READ|PROT_WRITE|PROT_EXEC + mprotect some_symbol 0x1000 PROT_NONE """, ) parser.add_argument(