Skip to content

Commit

Permalink
bugzilla 3724 bug in Expression::arraySyntaxCopy (null pointer derefe…
Browse files Browse the repository at this point in the history
…rence on struct->union->struct
  • Loading branch information
Walter Bright committed Jan 23, 2010
1 parent 061ec23 commit aebdbc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/expression.c
@@ -1,6 +1,6 @@

// Compiler implementation of the D programming language
// Copyright (c) 1999-2009 by Digital Mars
// Copyright (c) 1999-2010 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// http://www.digitalmars.com
Expand Down Expand Up @@ -1356,7 +1356,8 @@ Expressions *Expression::arraySyntaxCopy(Expressions *exps)
for (int i = 0; i < a->dim; i++)
{ Expression *e = (Expression *)exps->data[i];

e = e->syntaxCopy();
if (e)
e = e->syntaxCopy();
a->data[i] = e;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/mars.c
Expand Up @@ -81,7 +81,7 @@ Global::Global()
"\nMSIL back-end (alpha release) by Cristian L. Vlasceanu and associates.";
#endif
;
version = "v1.055";
version = "v1.056";
global.structalign = 8;

memset(&params, 0, sizeof(Param));
Expand Down

0 comments on commit aebdbc8

Please sign in to comment.