Technology news and Jobs
Our Blogs
Core Dump
25 years to fix an open source bug
Our Blogs
Core Dump
25 years to fix an open source bug | 25 years to fix an open source bug |
|
| by Stephen Withers | |
| Tuesday, 13 May 2008 | |
The open source community often claims to be able to find and fix bugs more quickly than closed development teams can, partly due to the number of pairs of eyes that can scrutinise the code. But that doesn't mean every fault is fixed quickly: how does a quarter-century old bug grab you?Featured Whitepaper
5 Best Practices for Smartphone Support
As Balmer explains in his blog, the bug had been observed by the Samba development team, which had written its own code as an alternative to the faulty BSD routines. And I'm inclined to believe that other programmers must have encountered the problem as well. But it seems nobody thought to tell the BSD developers. BSD and its derivatives provide functions called telldir(), readdir(), seekdir() and readdir() for working with directories. Balmer established they do contain a bug, just as the Samba team suspected. In some circumstances, calling seekdir() does not return to the correct position in the directory stream. The good news is that he went the extra mile to find and fix the underlying issue. "The fix is surprisingly simple, not to say trivial", he wrote. Balmer says the fix has now been applied to FreeBSD, NetBSD and DragonflyBSD, and has been committed to the OpenBSD patch branches. "I don't know anyone in Apple, but they will eventually figure it out themselves", he wrote. Possibly: Apple does not have an exemplary record when it comes to promptly applying updates to open source software to the code that ships with Mac OS X. |
| < Next story in category | Previous story in the category > |
|---|







Tags





