Re: two patches: avoid NULL-dereference
Juliusz Chroboczek <[email protected]>
| Newsgroups | gmane.comp.web.polipo.user |
|---|---|
| Message-ID | <[email protected]> |
> Subject: [PATCH 1/2] avoid NULL-dereference upon malloc failure Thanks, applied. > Subject: [PATCH 2/2] avoid another NULL-dereference upon malloc > failure That's incorrect. > + do_log_error(L_ERROR, saved_errno, "Couldn't allocate request\n"); > + polipoExit(); > + return; You're not supposed to exit -- you're supposed to recover. --Juliusz ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl