Google Rewrites Critical C Dependencies to Rust Using AI and Differential Fuzzing Google security engineers Bastian Kersting and Max Hils used Gemini to translate giflib, a roughly 3,000-line C image-processing library, into an ABI-compatible Rust drop-in replacement, validating it with 200 million differential fuzzing iterations over six days and regression decoding of more than 30 million real-world GIF assets. The Rust build proved immune to CVE-2026-26740, an unpatched out-of-bounds heap write in upstream giflib found by an external researcher, before public disclosure, and let Google decommission process isolation sandboxes while preserving latency. Memory corruption bugs account for roughly 70 per cent of severe security vulnerabilities in mature C and C++ stacks, the team said. Security teams at Google have validated a novel pathway for eliminating legacy memory vulnerabilities across legacy infrastructure by leveraging Gemini to translate C codebases into memory-safe Rust equivalents https://bughunters.google.com/blog/scaling-memory-safety . The initiative focused on giflib, an image-processing library with about 3,000 lines of code that often decodes untrusted user input without sandboxing. By delivering an ABI-compatible drop-in library written in Rust, the team was able to decommission process isolation sandboxes, preserve latency neutrality, and neutralise an unpatched heap write zero-day prior to its public cataloguing as CVE-2026-26740. Memory corruption bugs represent roughly 70 per cent of severe security vulnerabilities in mature C and C++ stacks. Rather than undertaking multi-year manual conversions or relying entirely on runtime bounds checking, software engineers Bastian Kersting