Aaron Rainbolt on Nostr: Today's adventures in C++ culminate in a failure to initialize variables leading to a ...
Today's adventures in C++ culminate in a failure to initialize variables leading to a bool having a value of 193 (?!), which somehow lead to a return statement going down an utterly insane path that resulted in an illegal instruction crash.
#c++ #programming #bugs #undefinedbehavior #uninitializedmemory
Published at
2024-08-02 07:29:37Event JSON
{
"id": "2f1ca7df7dfc700eaffb8e44b025b6a4224dafb8e6e8898246c7d028b055520e",
"pubkey": "b764dfce4744790ecaba851b29af6750c60a24d3792a14a8912039f0fb5becf1",
"created_at": 1722583777,
"kind": 1,
"tags": [
[
"t",
"c"
],
[
"t",
"programming"
],
[
"t",
"bugs"
],
[
"t",
"undefinedbehavior"
],
[
"t",
"uninitializedmemory"
],
[
"proxy",
"https://theres.life/users/arraybolt3/statuses/112891250466946858",
"activitypub"
]
],
"content": "Today's adventures in C++ culminate in a failure to initialize variables leading to a bool having a value of 193 (?!), which somehow lead to a return statement going down an utterly insane path that resulted in an illegal instruction crash.\n\n#c++ #programming #bugs #undefinedbehavior #uninitializedmemory",
"sig": "a763a4dbb684906df44a6fa74337a6932bc10a31a9828b24d9ac9555f7655477be72402e5ce17cd7548a2637d82cc7001b123ad5963843235fae1eb53a123aae"
}