Joshua Rogers sent us a *massive* list of potential issues in #curl that he found using his set of AI assisted tools. Code analyzer style nits all over. Mostly smaller bugs, but still bugs and there could be one or two actual security flaws in there. Actually truly awesome findings.
I have already landed 22(!) bugfixes thanks to this, and I have over twice that amount of issues left to go through. Wade through perhaps.
Credited "Reported in Joshua's sarif data" if you want to look for yourself
Wolf480pl
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Wolf480pl • • •Brodie Robertson
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Brodie Robertson • • •daniel:// stenberg://
in reply to daniel:// stenberg:// • • •Christopher Snowhill
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Christopher Snowhill • • •Christopher Snowhill
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Christopher Snowhill • • •Christopher Snowhill
in reply to daniel:// stenberg:// • • •penguin42
in reply to daniel:// stenberg:// • • •Ondřej Kolín
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Ondřej Kolín • • •Stefan Eissing
in reply to daniel:// stenberg:// • • •well, if the socket read returns ok and 0 length, we received the first reply from the server, eg that it closed the connection on its end.
That is what the senantics of „first_byte“ is supposed to track. The var would have been better named „first_reply“.
tldr
The code was correct, the naming was wrong.🤷🏻♂️
daniel:// stenberg://
in reply to Stefan Eissing • • •Jeroen Massar
in reply to daniel:// stenberg:// • • •MrMagne
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to MrMagne • • •Hacking with AI SASTs: An overview of ‘AI Security Engineers’ / ‘LLM Security Scanners’ for Penetration Testers and Security Teams
Joshua Rogers (Joshua.Hu Joshua Rogers’ Scribbles)God is one
in reply to daniel:// stenberg:// • • •Ethan Black
in reply to daniel:// stenberg:// • • •Sorry you have to deal with all that, that has to be frustrating... glad you're encountering good use of AI too
literally the dumbest thing I've ever read
YouTubeglyn
in reply to daniel:// stenberg:// • • •gnirre
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to gnirre • • •daniel:// stenberg://
in reply to daniel:// stenberg:// • • •Jan Johannesson
in reply to daniel:// stenberg:// • • •Bjørn Göttler
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to daniel:// stenberg:// • • •gasrios
in reply to daniel:// stenberg:// • • •did this affect or forced you to adapt curl's release cycle in any way?
I'm a huge fan, BTW, I think you are one of the best examples of leadership in the open source community.
daniel:// stenberg://
in reply to gasrios • • •