We can't say for sure, but it's quite likely. This is another textbook case of #UndefinedBehavior in C++ code. Dereferencing `std::map::end()` causes this, as this iterator points past the last element in a `std::map`.
We know, #undefinedbehavior is out of compilers' scope, but it doesn't mean that the codebase has immunity. Here's a classic UB scenario, triggered only if 'regIdx == 31'. Probably, it seems impossible or very unlikely, so the error has been unnoticed. But who knows what tomorrow will bring?
Today is the perfect day to listen to some #undefinedbehavior #psytrance #music
ht @buherator
soundcloud.com/burninnoise/undefined-be...
Nice 👌🏽👇🏽:
“Undefined Behavior In C And C++” [2024], Russell Wallace (russellw.github.io/undefined-be...).
Via HN: news.ycombinator.com/item?id=4484...
#UndefinedBehavior #Programming #C #CPP #Compilers #Optimization #Standards #UB
“[…] But they also made some mistakes… which is not too surprising when you are doing this kind of work. And I would like rust ideally not to repeat these mistakes. I think we can make our own new and fun unique mistakes” Ralf Jung on the MiniRust language specification proposal
#rustlang […]
Programmer Definition: Someone Who Solves a Problem You Didn’t Know You Had in a Way You Don’t Understand.
🔗 techgeeksapparel.com/programmer-d...
#ProgrammerLife #CodeMystery #UndefinedBehavior
Bad Computing
Bad Computing
#programming #computerscience #Programminghumor #Techjokes #Undefinedbehavior
programmerhumor.io/programming-memes/bad-co...
“C++ Standards Contributor Expelled For 'The Undefined Behavior Question'”, Slashdot (m.slashdot.org/submission/1...).
On HN: news.ycombinator.com/item?id=4222...
On /r/cpp: old.reddit.com/r/cpp/commen...
#CPP #CPlusPlus #Standards #ChatGPT #UndefinedBehavior #WTF #AntiSemitism
Neither #C nor a modern #CPU give timing guarantees, so this is weird:
“Clang Vs Clang”, Daniel Bernstein (blog.cr.yp.to/20240803-cla...).
On HN: news.ycombinator.com/item?id=4114...
On Lobsters: lobste.rs/s/kumzku/cla...
#Cryptography #Optimization #GCC #Clang #Compilers #UndefinedBehavior
“Why Do We Need A [sic] Undefined Behavior Annex For The C++ Standard?”, Intel (community.intel.com/t5/Blogs/Tec...).
“P1705R1: Enumerating Core Undefined Behavior” (wg21.link/P1705).
On HN: news.ycombinator.com/item?id=3954...
#C #CPlusPlus #UndefinedBehavior #PLDI #Optimization