What causes this bug to be non-deterministic
Recently, I wrote the following, buggy, c code: #include <stdio.h> struct IpAddr { unsigned char a, b, c, d; }; struct IpAddr ipv4_from_str (const char * str) { struct IpAddr res = {0}; sscanf(str, "%d.%d.%d.%d", &res.a, &res.b, &res.c, &res.d); return res; } int main (int argc, char ** argv) { struct IpAddr ip = ipv4_from_str("192.168.1.1");… Read More What causes this bug to be non-deterministic