https://bugs.kde.org/show_bug.cgi?id=491130
--- Comment #10 from Matt Whitlock <k...@mattwhitlock.name> --- (In reply to David Edmundson from comment #9) > char *IceGenerateMagicCookie(int length); > "The magic cookie returned will be null-terminated." That would explain why it never crashes. No out-of-bounds access after all. Seems bizarre and pointless to NUL-terminate a character sequence that may contain NUL characters since such a sequence could never correctly be treated as a NUL-terminated string. Presumably this all may also explain why the problem is intermittent. You have a ~11.8% chance of randomly choosing at least one NUL byte among the 32 bytes chosen for the two 16-byte magic cookies. Not quite the "1 out of 5" estimated in Comment #0 but around the right order of magnitude. -- You are receiving this mail because: You are watching all bug changes.