[asterisk-commits] russell: branch 1.4 r99079 - /branches/1.4/include/asterisk/translate.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 18 15:22:21 CST 2008


Author: russell
Date: Fri Jan 18 15:22:21 2008
New Revision: 99079

URL: http://svn.digium.com/view/asterisk?view=rev&rev=99079
Log:
Since we're relying on the offset between the frame and the beginning of the translator
pvt struct, set the packed attribute to make sure we get to the right place.
(potential fix for issue #11792)

Modified:
    branches/1.4/include/asterisk/translate.h

Modified: branches/1.4/include/asterisk/translate.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/translate.h?view=diff&rev=99079&r1=99078&r2=99079
==============================================================================
--- branches/1.4/include/asterisk/translate.h (original)
+++ branches/1.4/include/asterisk/translate.h Fri Jan 18 15:22:21 2008
@@ -149,7 +149,7 @@
 	struct ast_trans_pvt *next;	/*!< next in translator chain */
 	struct timeval nextin;
 	struct timeval nextout;
-};
+} attribute_packed;
 
 /*! \brief generic frameout function */
 struct ast_frame *ast_trans_frameout(struct ast_trans_pvt *pvt,




More information about the asterisk-commits mailing list