![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
sci.crypt archiveRe: What's wrong with this RC4?
From: Chris Barts <puonegf+hfrarg@tznvy.pbz>
Date: Wed Dec 28 2005 - 18:14:32 CET
Andrew Pogrebennyk <andrew86@voliacable.com> wrote on Wednesday 28 December
> int main()
int main(void)
>
What if calloc() fails? Always wrap these calls in if statements like so:
if ((cipher = calloc(sizeof(plain), sizeof(plain[0])) == NULL) {
Of course, you might have a more intelligent failure mode in mind than that.
>
You'd be surprised how often people fail to do this.
> return 0;
And this.
-- My address happens to be com (dot) gmail (at) usenet (plus) chbarts, wardsback and translated. It's in my header if you need a spoiler. ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption =----Received on Tue Jan 3 03:41:40 2006 |