i had this really weird bug in a C program i wrote once where for some reason running this random function would cause my program to make argv point to garbage data. spent days debuging it. turns out it was because i forgot to allocate memory to an array and it was overwriting the pointer.
View all comments
Show parent comment
28
u/Oblivious_catalyst 20d ago
i had this really weird bug in a C program i wrote once where for some reason running this random function would cause my program to make argv point to garbage data. spent days debuging it. turns out it was because i forgot to allocate memory to an array and it was overwriting the pointer.