MEMSTOMP(1)

πŸ“¦ version 0.1.4, in fedora 43, fedora 44

πŸ’… 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 πŸ¦‹


πŸ‘‘ 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