Re: To Professor Daniel Bernstein: thanks for stralloc / array
Alejandro Mery <[email protected]>
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
Hi, [email protected] wrote: > Hi, > > I would like to say thank you for the stralloc string library, now > being replaced by the array library. > > I think this library is a key to security and great performance of > your software. I adapted this concept in some of my C projects and I > think it was good move. I would suggest anyone to replace rubbish old > string.h string functions with this library. I'd like to highlight > main features, maybe someone will benefit from that. > > - programs using stralloc are immune to buffer overflows or reading > beyond the end of string, see qmail or other DJB software, > - great performance -- it doesn't have to traverse the whole string > when appending to it, because it maintains current length, > - it's binary safe, it can't be fooled by strings containing '\0's or > other garbage in the middle, > - the API is very simple yet powerful. > > Take a look at the docs here > http://cr.yp.to/lib/stralloc.html > > Mr Bernstein please also consider adding stralloc_contains() and > stralloc_endswith() to your implementation. These are useful functions > which are trivial to implement. to continue the off-topic, where does one download these libraries as such? or they are "only" API proposals? Alejandro Mery
smime.p7s
(application/x-pkcs7-signature, 5.1 KB) - not displayed