MEMSTOMP(1)
π MEMSTOMP β okay bestie, let's talk about your memcpy crimes
General Commands Manual energy, memstomp edition, and yes this is a real one, no cap.
β¨ NAME β¨
memstomp β detect function calls with overlapping memory regions π«Ά
πΈ SYNOPSIS πΈ
memstomp [-dk] application [argument...]
memstomp -h
π DESCRIPTION π
So like. The memstomp utility π§ identifies function calls that use overlapping memory regions in situations where that overlap is not allowed by various standards. It's giving "your string functions are fighting each other" and honestly? iconic of it to notice.
When a problem is detected, memstomp displays a backtrace to help you debug the problem, and if it's executed with the --debug-info command line option, it even uses the available debugging information. More detail, more slay. β¨
Since the backtrace code is not thread safe, memstomp also allows you to use the --kill option to immediately terminate the analyzed program when an invalid function call is detected. Like, rip to that process but at least it goes out with a clean exit. π
This version of memstomp inspects the following function calls:
memcpy()memccpy()mempcpy()strcpy()stpcpy()strncpy()stpncpy()strcat()strncat()wmemcpy()wmempcpy()wcscpy()wcsncpy()wcscat()wcsncat()
π OPTIONS π
-d,--debug-infoβ make use of debugging information to produce more detailed stack traces. Bestie, turn this on and your stack trace goes from "vague vibes" to "main character energy" π-k,--killβ kill the analyzed application when a problem is detected. Fr fr, it just ends it. (Remember: the backtrace code is not thread safe, so this is your escape hatch πͺ)-h,--helpβ display usage information and exit. The classic "what does anything do" button π«Ά-q,--quietβ be less verbose. Sometimes you just need the tea without the whole paragraph, iykyk π€«
π¦ SEE ALSO π¦
memcpy(3)memccpy(3)mempcpy(3)strcpy(3)stpcpy(3)strncpy(3)stpncpy(3)strcat(3)strncat(3)wmemcpy(3)wmempcpy(3)wcscpy(3)wcsncpy(3)wcscat(3)wcsncat(3)
π AUTHORS π
- Lennart Poettering
<lennart@poettering.net> - William Cohen
<wcohen@redhat.com>
Version 0.1.4 π, dated 09 April 2013 πΈ, living under General Commands Manual. That's the whole page, bestie β go forth and check your overlaps. periodt. π β¨
π¦ where this page comes from
- fedora 43: memstomp 0.1.4-44.fc43 Β· LGPL-3.0-or-later AND GPL-2.0-or-later
- fedora 44: memstomp 0.1.4-44.fc43 Β· LGPL-3.0-or-later AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms