5
votes
2answers
1k views

strlen returns incorrect value when called in gdb

So I'm noticing some severely incorrect behavior from calls to standard library functions inside GDB. I have the following program to illustrate: #include <stdio.h> #include <stdlib.h> ...