[cfe-dev] core dump, how to best investigate

Jeroen Ruigrok van der Werven asmodai at in-nomine.org
Tue Jul 24 06:43:19 PDT 2007


-On [20070724 15:40], Jeroen Ruigrok van der Werven (asmodai at in-nomine.org) wrote:
>So ParseUnaryOp() has an input which is empty and as such resultType =
>Input->getType(); fails.

Would it make sense to add a fail-safe in the form of (excuse my C++ I'm
better in C and C#):

if (Input == NULL) {
  bail_out();
}
resultType = Input->getType();

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/
Open your Heart and push the limits...



More information about the cfe-dev mailing list