Summary: | ASTERISK-04283: [patch] If Curl() fails to fetch the URL it crashes asterisk | ||
Reporter: | Tony Mountifield (softins) | Labels: | |
Date Opened: | 2005-05-26 05:17:10 | Date Closed: | 2008-01-15 15:36:11.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Applications/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) app_curl.diff.txt | |
Description: | Using Curl() to fetch a non-existent URL causes asterisk to crash. This is because chunk.memory still contains NULL and this is not checked for before dereferencing it. The attached patch corrects the problem. ****** ADDITIONAL INFORMATION ****** Disclaimer on file. (hey, I see there's a new field for this now - cool!) | ||
Comments: | By: Russell Bryant (russell) 2005-05-26 12:14:16 fixed in CVS HEAD, thanks! By: Digium Subversion (svnbot) 2008-01-15 15:36:11.000-0600 Repository: asterisk Revision: 5775 U trunk/apps/app_curl.c ------------------------------------------------------------------------ r5775 | russell | 2008-01-15 15:36:10 -0600 (Tue, 15 Jan 2008) | 2 lines fix seg fault when the app is called on an invalid url (bug ASTERISK-4283) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=5775 |