bugCERTI - Bugs: bug #24403, RTI::Exception::displayMe()...

 
 

bug #24403: RTI::Exception::displayMe() returns temporary

Submitted by:  Christian Ehrlicher <chehrlic>
Submitted on:  Mon 29 Sep 2008 11:48:28 AM UTC  
 
Category: CERTISeverity: 3 - Normal
Item Group: Software errorStatus: Ready For Test
Privacy: PublicAssigned to: Eric NOULARD <erk>
Open/Closed: ClosedRelease: 3.3.1
Reproducibility: Every TimeFixed Release: 3.3.2

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 29 Sep 2008 12:34:59 PM UTC, comment #2:

You are damn right.
My fault.
I know return a std::string which should be properly handled.

Eric NOULARD <erk>
Project AdministratorIn charge of this item.
Mon 29 Sep 2008 11:50:29 AM UTC, comment #1:

#23755 could maybe happen because of this bug.

Christian Ehrlicher <chehrlic>
Mon 29 Sep 2008 11:48:28 AM UTC, original submission:

Your RTI::Exception::displayMe() returns a temporary which leads to a crash when an exception is thrown and the returned string from displayMe() is used.

--> return msg.str().c_str();

This returns a pointer to an object which doesn't exist anymore.

Christian Ehrlicher <chehrlic>

 

(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

Digest:
   bug dependencies.

 

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

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

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 Apr 2009 09:17:16 AM UTCerkFixed ReleaseCVS=>3.3.2
    Wed 29 Apr 2009 09:17:15 AM UTCerkOpen/ClosedOpen=>Closed
    Mon 29 Sep 2008 08:59:10 PM UTCerkDependencies-=>bugs #23755 is dependent
    Mon 29 Sep 2008 12:34:59 PM UTCerkStatusNone=>Ready For Test
      Assigned toNone=>erk
      Fixed ReleaseUnknown=>CVS

    Back to the top


    Powered by Savane 3.1-cleanup1