[haiku-bugs] Re: [Haiku] #7785: [EXRTranslator] translator causes BeOS built apps to crash

  • From: "korli" <trac@xxxxxxxxxxxx>
  • Date: Thu, 23 Jan 2014 10:25:35 -0000

#7785: [EXRTranslator] translator causes BeOS built apps to crash
---------------------------------------+----------------------------
   Reporter:  deejam                   |      Owner:  korli
       Type:  bug                      |     Status:  new
   Priority:  normal                   |  Milestone:  R1
  Component:  Add-Ons/Translators/EXR  |    Version:  R1/Development
 Resolution:                           |   Keywords:
 Blocked By:  1259                     |   Blocking:  8401, 10261
Has a Patch:  0                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by korli):

 Replying to [comment:12 bonefish]:
 > Given that the crash happens in the dynamic cast code, this is probably
 caused by an uninitialized type info. #1259 explains how this is possible.
 In this case we're talking about the `std::exception` type info,
 respectively the one of the derived class (if any) that is actually caught
 in `EXRTranslator::DerivedIdentify()`.

 Question: Would using "catch (...)" instead of "catch (const
 std::exception &e)" help to avoid using `std::exception` type info
 (provided it's not used anywhere else which I doubt)?

--
Ticket URL: <https://dev.haiku-os.org/ticket/7785#comment:14>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: