2 ms·
There is a solution to Hyrum's Law: Change undocumented details on every release. If you have hash tables, change the hash function. Change offsets and placemen
by ncmncm 7y ago
There is a solution to Hyrum's Law: Change undocumented details on every release. If you have hash tables, change the hash function. Change offsets and placement of struct members. You can't change everything somebody might accidentally or foolishly depend on, and yes, some users' code will break, but the sooner it breaks, the less disruptive the bug revealed is.
For many years, the maintainer of GNU libc refused to accept bug reports for behavior that wasn't documented, and gleefully broke undocumented behaviors that users had been so foolish as to rely on. As people were accustomed to this, it caused little actual difficulty, and gave enormous freedom to make improvements throughout the system, so the library continued to improve.
Some people responded by copying the code they depended on into their own programs. OpenSSL was one such project, and the code they copied in, and the code that depended on incidental details of it, was a very fertile source of gaping security holes.