0

Buffer overflow is causing gdb to behave in a erratic way and proper logs are not being printed. How to enable gdb to print logs in a proper way?

Also, is there a way to detect runtime stack smashing in a multithreaded environment?

Searched about -lmcheck but it is not thread safe.

valiano
  • 16,433
  • 7
  • 64
  • 79

1 Answers1

0

If you use gcc you may try option -fstack-overflow combined with the valgrind tools.

Jean-Baptiste Yunès
  • 34,548
  • 4
  • 48
  • 69