News for hackers. Stuff that matters.
Re:Asking ChatGPT to write my security-sensitive code for me by speedgoose on Saturday January 07, 2023 @07:24AM (#34287421)
Yes we have seen a case of an old common and popular square root function that are returned verbatim by GitHub Copilot. Perhaps a case of overfitting since the code was present many many times in the training dataset, and even has a Wikipedia page.

I haven’t seen more obvious examples since GitHub implemented a feature to prevent this from happening. I probably miss some tweets, but I assume it’s rare.

Re:Asking ChatGPT to write my security-sensitive code for me by williamcotton on Saturday January 07, 2023 @07:29AM (#34287451)
Carmack’s fast inverse square is not subject to copyright in the first place.
Re:Asking ChatGPT to write my security-sensitive code for me by speedgoose on Saturday January 07, 2023 @07:32AM (#34287464)
True. I think the comments and the coding style were from famous implementation from the 90s, which could be a copyright issue. The algorithm itself can by copied.