Posts

Showing posts with the label Ruby
📡 Breaking news
0/0
Analyzing latest trends...

Ruby Releases Security Patches for Six Memory Corruption Flaws and Crash Bug.

Image
Ruby Releases Security Updates Fixing Six Memory Corruption Flaws and Denial-of-Service Crash Bug The Ruby core development team has released urgent security patches addressing six memory corruption vulnerabilities and one denial-of-service crash bug primarily affecting regular expression processing and string case-conversion routines. Administrators and developers running Ruby web applications such as Ruby on Rails , Sinatra , or background API services are urged to upgrade immediately to Ruby 4.0.10, 3.4.13, or 3.3.14 , as applications that accept untrusted user input into regular expressions or string transformation functions face risks ranging from process crashes to sensitive memory disclosure. Breakdown of Patched Security Advisories and Supported Versions Six Memory Safety and Crash Advisories in Regex and String Handling: GHSA-7x2q-68qv-6p8x (Double-Free Vulnerability) : Occurs when an attacker supplies a specially crafted regular expression that the application dynamica...

Standardizing 25 Million Lines How Stripe Unified the World Largest Ruby Codebase.

Image
Inside Stripe Massive Ruby Migration: Formatting 25 Million Lines of Code with Rust In 2024, engineers Fable Tales and Anna Mason from Stripe embarked on a monumental task: standardizing the formatting of what is likely the world's largest Ruby codebase. Spanning over 62,213 files and 25 million lines of code , the repository lacked a unified style, leading to inconsistent "handwriting" across their global engineering team. The Failure of Traditional Tools Stripe’s journey toward a unified format was riddled with obstacles. Their previous attempt using prettier-ruby failed due to performance bottlenecks; the tool was too slow for a codebase of this magnitude, and extra-large files often caused it to crash. Meanwhile, RuboCop , while excellent for linting, proved insufficient as a primary formatter due to its complex configuration, which often led to inconsistent setups among different developers. The Solution: rubyfmt and the Power of Rust The team pivoted to rubyfm...