pike.git/
src/
las.c
Branch:
Tag:
Non-build tags
All tags
No tags
2009-10-11
2009-10-11 17:19:13 by Henrik Grubbström (Grubba) <grubba@grubba.org>
9458315e4022d0b12a125b29a78fbbc1d9d91047 (
9
lines) (+
6
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed NULL-deref for compilation errors in range expressions.
Rev: src/las.c:1.438
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: las.c,v 1.
437
2009/
08
/
06
13
:
08
:
40
grubba Exp $
+
|| $Id: las.c,v 1.
438
2009/
10
/
11
17
:
19
:
13
grubba Exp $
*/ #include "global.h"
3468:
else { node *low = CADR (n), *high = CDDR (n); n->type = range_type(CAR(n)->type,
-
low->token == F_RANGE_OPEN ? NULL : CAR (low)->type,
-
high->token == F_RANGE_OPEN ? NULL : CAR (high)->type);
+
((
low->token == F_RANGE_OPEN
)
|| !CAR(low))
?
+
NULL : CAR (low)->type,
+
((
high->token == F_RANGE_OPEN
)
|| !CAR(high))
?
+
NULL : CAR (high)->type);
} break;