[TextEditor_mcc] mcc/Dispatcher.c

  • From: Ilkka Lehtoranta <ilkleht@xxxxxxxxxxx>
  • To: texteditor_mcc@xxxxxxxxxxxxx
  • Date: Wed, 11 Oct 2006 18:25:13 +0300 (EEST)

Hi

While fixing MorphOS build I noticed this in Dispatcher.c line 505:

  if((data = INST_DATA(cl, obj)) == NULL)

This would happen only if cl_InstOffset == 0 and obj == NULL. I dont see 
how this could happen unless someone is using crafted IClass in
CoerceMethod()/DoSuperMethod() call. If IClass was NULL the system couldnt 
execute dispatcher code at all.

Thus it is extremely unlikely that INST_DATA() macro would return NULL 
pointer...


  Ilkka

_____________________________________________________________________________
TextEditor ML   - http://www.freelists.org/list/texteditor_mcc
Listserver help - mailto:texteditor_mcc-request@xxxxxxxxxxxxx?Subject=HELP
Bugtracker......: http://sourceforge.net/tracker/?atid=731469&group_id=135025

Other related posts: