RT @[email protected]

Can you spot the undefined behavior?

Back to doing some C++ with Eigen. Just wanted to transform some points, and this one had me scratching my head for a while. Solution in next tweet (thanks to my colleague @[email protected] for pointing out the problem!)

🧡
1/4

πŸ¦πŸ”—: https://twitter.com/andreas_longva/status/1616368924714741761

Andreas Longva on Twitter

β€œCan you spot the undefined behavior? Back to doing some C++ with Eigen. Just wanted to transform some points, and this one had me scratching my head for a while. Solution in next tweet (thanks to my colleague @w1th0utnam3 for pointing out the problem!) 🧡 1/4”

Twitter
An issue that can easily hide in "modern C++", but which would have been trivially detected with even basic lifetime analysis. But please, Bjarne, tell us about other Rust CVEs and issues that C++ conveniently just defines away as UB.