A PVS-Studio engineer analyzes Vib-OS, an AI-generated operating system written entirely via vibe coding. The code review reveals significant quality issues: extreme verbosity (character-by-character string building instead of sprintf), four near-identical string copy functions, manual byte-copy loops instead of memcpy, duplicate code blocks, unreachable code due to repeated if-else conditions, and dangerous pointer alignment casts that risk undefined behavior. Static analysis with PVS-Studio surfaces several concrete bugs including duplicate conditional checks (V517), redundant variable assignments (V519), always-false conditions (V560), and unsafe pointer casts to more strictly aligned types (V1032). The post concludes that AI-generated code still requires code review and static analysis to achieve reliability.

Sort: