bugGnash - The GNU Flash player - Bugs: bug #23276, mismatched free/delete in...

 
 

bug #23276: mismatched free/delete in extractAMF

Submitted by:  Benjamin Wolsey <bwy>
Submitted on:  Sat 17 May 2008 12:26:32 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 19 May 2008 05:23:37 PM UTC, comment #2:

As it's fixed in head, I'll close this...

Sandro Santilli <strk>
Project MemberIn charge of this item.
Sat 17 May 2008 12:37:20 PM UTC, comment #1:

I confirm, here's with debugging syms:

==14006== Mismatched free() / delete / delete []
==14006== at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==14006== by 0x49572F7: amf::AMF::extractProperty(unsigned char, unsigned char) (amf.cpp:841)
==14006== by 0x4977404: amf::SOL::readFile(std::string&) (sol.cpp:400)
...
==14006== Address 0x54fd428 is 0 bytes inside a block of size 5 alloc'd
==14006== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==14006== by 0x4860038: strndup (in /lib/tls/i686/cmov/libc-2.7.so)
==14006== by 0x495727B: amf::AMF::extractProperty(unsigned char, unsigned char) (amf.cpp:817)
==14006== by 0x4977404: amf::SOL::readFile(std::string&) (sol.cpp:400)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Sat 17 May 2008 12:26:32 PM UTC, original submission:

From running SharedObject-v7.swf with current head

3930:67445776] 14:24:50 DEBUG: amf::Element* amf::AMF::extractAMF(uint8_t, uint8_t) enter
==3930==
==3930== Mismatched free() / delete / delete []
==3930== at 0x4C1E52C: operator delete(void*) (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==3930== by 0x806E251: amf::AMF::extractProperty(unsigned char, unsigned char) (in /home/benjamin/Downloads/gnash/libamf/.libs/libgnashamf-cvs.so)
==3930== by 0x807EE99: amf::SOL::readFile(std::string&) (in /home/benjamin/Downloads/gnash/libamf/.libs/libgnashamf-cvs.so)
==3930== by 0x5637C58: gnash::sharedobject_getlocal(gnash::fn_call const&) (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x50DEE23: gnash::builtin_function::operator()(gnash::fn_call const&) (in /home/benjamin/Downloads/gnash/libmedia/.libs/libgnashmedia-cvs.so)
==3930== by 0x5734888: gnash::call_method(gnash::as_value const&, gnash::as_environment, gnash::as_object, int, int, gnash::as_object*) (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x56E8726: gnash::SWF::SWFHandlers::ActionCallMethod(gnash::ActionExec&) (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x56E45C9: gnash::SWF::ActionHandler::execute(gnash::ActionExec&) const (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x56F354B: gnash::SWF::SWFHandlers::execute(gnash::SWF::action_type, gnash::ActionExec&) const (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x572A044: gnash::ActionExec::operator()() (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x554C3AB: gnash::GlobalCode::execute() (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x553F46B: gnash::movie_root::processActionQueue(int) (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== Address 0xf051550 is 0 bytes inside a block of size 5 alloc'd
==3930== at 0x4C1ED1B: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==3930== by 0x7B73351: strndup (in /lib64/libc-2.7.so)
==3930== by 0x806E139: amf::AMF::extractProperty(unsigned char, unsigned char) (in /home/benjamin/Downloads/gnash/libamf/.libs/libgnashamf-cvs.so)
==3930== by 0x807EE99: amf::SOL::readFile(std::string&) (in /home/benjamin/Downloads/gnash/libamf/.libs/libgnashamf-cvs.so)
==3930== by 0x5637C58: gnash::sharedobject_getlocal(gnash::fn_call const&) (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x50DEE23: gnash::builtin_function::operator()(gnash::fn_call const&) (in /home/benjamin/Downloads/gnash/libmedia/.libs/libgnashmedia-cvs.so)
==3930== by 0x5734888: gnash::call_method(gnash::as_value const&, gnash::as_environment, gnash::as_object, int, int, gnash::as_object*) (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x56E8726: gnash::SWF::SWFHandlers::ActionCallMethod(gnash::ActionExec&) (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x56E45C9: gnash::SWF::ActionHandler::execute(gnash::ActionExec&) const (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x56F354B: gnash::SWF::SWFHandlers::execute(gnash::SWF::action_type, gnash::ActionExec&) const (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x572A044: gnash::ActionExec::operator()() (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)
==3930== by 0x554C3AB: gnash::GlobalCode::execute() (in /home/benjamin/Downloads/gnash/server/.libs/libgnashserver-cvs.so)

Benjamin Wolsey <bwy>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by bwy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 19 May 2008 05:23:37 PM UTCstrkStatusConfirmed=>Fixed
      Assigned torsavoye=>strk
      Open/ClosedOpen=>Closed
    Sat 17 May 2008 12:37:20 PM UTCstrkStatusNone=>Confirmed
      Assigned toNone=>rsavoye

    Back to the top


    Powered by Savane 3.1-cleanup1