by traes · 3mo ago · 0 comments
That's not my experience: I've seen an LLM generate a C++ use-after-free (1.5 month ago).
Now human programmers might find it more difficult to get certain things right than others, but to a LLM only quantity of examples matters, no?
*(Memory leaks can probably be found by just having the LLM run valgrind itself and chase them down, but this gives you a good feel for the difficulties of writing safe C. Again, never tried any of this with LLMs myself, and I haven't written a nontrivial C program in years.)