C strcat buffer overflow after hundreds of iterations
I have written a status bar utility in C for DWM to display the time, date, CPU temp, and battery level. I recently noticed the program had crashed and found that it had a coredump. I recompiled the utility to include debugging symbols to debug with gdb
and it crashed about 10 minutes after starting. While analyzing the coredump with coredumpctl debug
I found the following line in the backtrace.