Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Real-world C++ projects built with GenAI: do they exist?

DEV Community: cpp·Unicorn Developer·4 days ago
#AYaUox0k
#dev#vibe#projects#enhance#fullscreen#photo
Reading 0:00
15s threshold

To keep PVS-Studio sharp against whatever new patterns of bugs vibe coding introduces, I've been hunting for real open-source C++ projects built this way. Turns out finding them is the hard part. What I do keep finding is things like enhance-client generated for $15. Not even worth looking at seriously. You can tell from the .obj , .iobj , .ipdb files, and other junk sitting in the repo that whoever wrote this wasn't too familiar with the basics. The project won't compile for various reasons, one being a broken bytes.hpp that just cuts off in the middle of an array. Fix it up just enough to compile and you'll start finding gems like this: void enhance :: modules :: autototem :: run () { .... auto env = enhance :: instance -> get_env (); if ( ! env ) { env -> DeleteLocalRef ( player ); return ; } .... } Enter fullscreen mode Exit fullscreen mode The PVS-Studio warning: V522 [CWE-476, CERT-EXP34-C, SEC-NULL] Dereferencing of the null pointer 'env' might take place.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More