bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #42717] Crash in -[NSBox(Private) calcSizesAllowingNegative:]


From: Richard Frith-Macdonald
Subject: [bug #42717] Crash in -[NSBox(Private) calcSizesAllowingNegative:]
Date: Mon, 21 Jul 2014 08:49:35 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.77.4 (KHTML, like Gecko) Version/7.0.5 Safari/537.77.4

Follow-up Comment #12, bug #42717 (project gnustep):

> both being caused by a compiler that crashes when calling
> a method on nil that returns a structure type

My understanding is that the behavior when calling a method expected to return
a struct on a nil receiver is (and has always been) undefined.
Certainly I know that it has always crashed on sparc machines.

So I think it's a bit harsh to refer to a change in the undefined behavior as
a new compiler bug .... I expect any code calling a method which returns a
struct ought to check that the receiver is non-null fist.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42717>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]