[Bug python/31631] just run gdb and source the poc can make the memory corrupt/exhausted

N1nEmAn at proton dot me sourceware-bugzilla@sourceware.org
Thu Apr 11 01:48:24 GMT 2024


https://sourceware.org/bugzilla/show_bug.cgi?id=31631

--- Comment #3 from N1nEmAn <N1nEmAn at proton dot me> ---
(In reply to Tom de Vries from comment #1)
> So, we do:
> ...
> import gdb
> gdb.selected_inferior().read_memory(0, 18446744073709551615)
> ...
> and get a virtual memory exhausted error.

i think we can fix the python code of gdb, and add a check for the number if
valid.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list