[osg-submissions] Data deleted before access in dae plugin

Parag Chaudhuri parag at miralab.unige.ch
Tue Jul 24 06:35:57 PDT 2007


Hi Robert,

I am attaching the modified daeRMaterials.cpp in a zip archive. I have put a comment on 
line 521 where I have moved the "delete []path" below.

Hope this helps,

best wishes,
Parag

Robert Osfield wrote:
> Hi Parag,
> 
> Could you post a whole modified file.
> 
> Cheers,
> Robert.
> 
> On 7/24/07, Parag Chaudhuri <parag at miralab.unige.ch> wrote:
>> Hi,
>>
>> I do not know if this is a previously reported bug or not. If it is 
>> then please excuse the
>> mail.
>>
>> I am using the OSG 2.0 stable release and not the nightly CVS version.
>>
>> In daeRMaterials.cpp in the COLLADA plugin, in the processTexture 
>> function, Lines 519-522
>> of the source file:
>>
>> The "delete [] path" appears before the "osg::notify", causing the 
>> data pointed to by
>> "filename" to be deleted before access causing an access violation.
>>
>> best wishes,
>> Parag
>>
>> _______________________________________________
>> osg-submissions mailing list
>> osg-submissions at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org 
>>
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: daeRMaterials.zip
Type: application/x-zip-compressed
Size: 5694 bytes
Desc: not available
Url : http://lists.openscenegraph.org/private.cgi/osg-submissions-openscenegraph.org/attachments/20070724/00a9ca59/attachment.bin 


More information about the Osg-Submissions mailing list