From 0be7762369250d46c2646a09419115fe4bf9ca80 Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 17 Jul 2007 20:48:21 +0000 Subject: Merged revisions 75444 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75444 | russell | 2007-07-17 15:45:27 -0500 (Tue, 17 Jul 2007) | 5 lines Ensure that when encoding the contents of an ast_frame into an iax_frame, that the size of the destination buffer is known in the iax_frame so that code won't write past the end of the allocated buffer when sending outgoing frames. (ASA-2007-014) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75445 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/iax2-parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels/iax2-parser.h') diff --git a/channels/iax2-parser.h b/channels/iax2-parser.h index 1b95d099f..0f3e18c00 100644 --- a/channels/iax2-parser.h +++ b/channels/iax2-parser.h @@ -123,7 +123,7 @@ struct iax_frame { /* Actual, isolated frame header */ struct ast_frame af; /*! Amount of space _allocated_ for data */ - size_t mallocd_datalen; + size_t afdatalen; unsigned char unused[AST_FRIENDLY_OFFSET]; unsigned char afdata[0]; /* Data for frame */ }; -- cgit v1.2.3