1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-15 17:30:06 +00:00

fix crash when a NULL ExprNode is checked for circular references

This commit is contained in:
bbbradsmith 2021-02-22 11:57:32 -05:00 committed by greg-king5
parent 4d5fe38540
commit 3584c4c87f

View File

@ -464,6 +464,12 @@ static void GetSegExprValInternal (ExprNode* Expr, SegExprDesc* D, int Sign)
{
Export* E;
if (Expr == 0)
{
D->TooComplex = 1;
return;
}
switch (Expr->Op) {
case EXPR_LITERAL: