From fea3e5ea7659bcefb6715bd87affdece2b4407fb Mon Sep 17 00:00:00 2001 From: Callum Prentice Date: Wed, 3 Feb 2010 15:13:19 -0800 Subject: Fix for DEV-45609 "CID-47 and CID-154 - bogus allocation/memset in Quicktime plugin" Reviewed by Rick. --- indra/media_plugins/quicktime/media_plugin_quicktime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/media_plugins/quicktime') diff --git a/indra/media_plugins/quicktime/media_plugin_quicktime.cpp b/indra/media_plugins/quicktime/media_plugin_quicktime.cpp index dbc44c8334..26690f64a6 100644 --- a/indra/media_plugins/quicktime/media_plugin_quicktime.cpp +++ b/indra/media_plugins/quicktime/media_plugin_quicktime.cpp @@ -724,8 +724,8 @@ private: return false; // allocate some space and grab it - UInt8* item_data = new UInt8( size + 1 ); - memset( item_data, 0, ( size + 1 ) * sizeof( UInt8* ) ); + UInt8* item_data = new UInt8[ size + 1 ]; + memset( item_data, 0, ( size + 1 ) * sizeof( UInt8 ) ); result = QTMetaDataGetItemValue( media_data_ref, item, item_data, size, NULL ); if ( noErr != result ) { -- cgit v1.2.3