LWN.net Logo

LCA: Lessons from 30 years of Sendmail

LCA: Lessons from 30 years of Sendmail

Posted Feb 12, 2011 23:07 UTC (Sat) by ofranja (subscriber, #11084)
In reply to: LCA: Lessons from 30 years of Sendmail by wahern
Parent article: LCA: Lessons from 30 years of Sendmail

"Type abstraction is often the root cause of security bugs. For example, you could treat a password as a sub-type of string. But strings as commonly understood almost universally support the concept of truncation. But if you truncate a password [...]"

I think you wanted to say LACK of abstraction.

If password is not exactly a string, you should have created a "password" type with proper operations and associated semantics.

Do not ever consider "C" as an example of "complete type system", unless you also consider a Ford T an modern vehicle.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds