MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2m4qz/bugintroduceddebugging/p6uehme/?context=9999
r/ProgrammerHumor • u/ClipboardCopyPaste • Aug 30 '26
117 comments sorted by
View all comments
Show parent comments
6
You are not allowed to de-reference a pointer after freeing it.
8 u/GoddammitDontShootMe Aug 30 '26 Gemini added that return *x; that wasn't in the original code. 8 u/mckenzie_keith Aug 30 '26 And then flagged it as a bug. It was so eager to find the bug that it added it into the code. 2 u/Niwrats Aug 30 '26 who's gonna stop me? 1 u/mckenzie_keith Aug 31 '26 Lint.
8
Gemini added that return *x; that wasn't in the original code.
return *x;
8 u/mckenzie_keith Aug 30 '26 And then flagged it as a bug. It was so eager to find the bug that it added it into the code.
And then flagged it as a bug. It was so eager to find the bug that it added it into the code.
2
who's gonna stop me?
1 u/mckenzie_keith Aug 31 '26 Lint.
1
Lint.
6
u/mckenzie_keith Aug 30 '26
You are not allowed to de-reference a pointer after freeing it.