Get the latest tech news

A library to assist writing memory-unsafe code in "pure" Python


A library to assist writing memory-unsafe code in "pure" python, without any imports (i.e. no ctypes etc.) - DavidBuchanan314/unsafe-python

A library to assist writing memory-unsafe code in "pure" python, without any imports (i.e. no ctypes etc.) This technique allows us to craft fake python objects on the heap, similar to the " fakeobj()" primitive you might see in exploits for JavaScript engines. For example, we can craft a bytearray with a base addresss of 0 and a length of SSIZE_MAX, giving us read and write access to raw memory.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Memory

Memory

Photo of python

python

Photo of library

library

Related news:

News photo

Art and Memory

News photo

Umbra: A Disk-Based System with In-Memory Performance [pdf]

News photo

Google lays off staff from Flutter, Dart and Python teams weeks before its developer conference