[asterisk-commits] eliel: branch group/data_api_gsoc2009 r206382 - /team/group/data_api_gsoc2009...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jul 14 09:02:24 CDT 2009
Author: eliel
Date: Tue Jul 14 09:02:21 2009
New Revision: 206382
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=206382
Log:
Avoid a crash in the filter mechanism.
Modified:
team/group/data_api_gsoc2009/main/data.c
Modified: team/group/data_api_gsoc2009/main/data.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/data_api_gsoc2009/main/data.c?view=diff&rev=206382&r1=206381&r2=206382
==============================================================================
--- team/group/data_api_gsoc2009/main/data.c (original)
+++ team/group/data_api_gsoc2009/main/data.c Tue Jul 14 09:02:21 2009
@@ -1297,7 +1297,7 @@
}
}
- node = ast_calloc(1, sizeof(*node));
+ node = ast_calloc(1, sizeof(*node) + strlen(token) + 2);
if (!node) {
/* XXX: release already allocated memory. */
return NULL;
More information about the asterisk-commits
mailing list