File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1469,6 +1469,10 @@ Fri May 30 15:19:39 CEST 2003
1469
1469
1470
1470
- Implemented prototype describe function.
1471
1471
- Some minor cleanup/bug fixing.
1472
+
1473
+ Mon Jun 2 17:36:03 CEST 2003
1474
+
1475
+ - Fixed segfault in forward definition parsing.
1472
1476
- Set ecpg version to 2.12.0.
1473
1477
- Set ecpg library to 3.4.2.
1474
1478
- Set pgtypes library to 1.0.0
Original file line number Diff line number Diff line change 1
- /* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.227 2003/05/30 13:22 :02 meskes Exp $ */
1
+ /* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.228 2003/06/02 15:38 :02 meskes Exp $ */
2
2
3
3
/* Copyright comment */
4
4
%{
@@ -4437,7 +4437,7 @@ single_vt_type: common_type
4437
4437
/* this is for named structs/unions */
4438
4438
char *name;
4439
4439
struct typedefs *this ;
4440
- bool forward = (strcmp($1 .symbol, forward_name) == 0 && strcmp($1 .su, " struct" ) == 0 );
4440
+ bool forward = (forward_name != NULL && strcmp($1 .symbol, forward_name) == 0 && strcmp($1 .su, " struct" ) == 0 );
4441
4441
4442
4442
name = cat2_str($1 .su, $1 .symbol);
4443
4443
/* Do we have a forward definition? */
@@ -4791,7 +4791,7 @@ var_type: common_type
4791
4791
/* this is for named structs/unions */
4792
4792
char *name;
4793
4793
struct typedefs *this ;
4794
- bool forward = (strcmp($1 .symbol, forward_name) == 0 && strcmp($1 .su, " struct" ) == 0 );
4794
+ bool forward = (forward_name != NULL && strcmp($1 .symbol, forward_name) == 0 && strcmp($1 .su, " struct" ) == 0 );
4795
4795
4796
4796
name = cat2_str($1 .su, $1 .symbol);
4797
4797
/* Do we have a forward definition? */
You can’t perform that action at this time.
0 commit comments