Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d314616d
Commit
d314616d
authored
Jan 25, 2005
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed segfault due to freeing a struct definition twice if it was a named struct used in a typedef.
parent
fe30edba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/preproc/Makefile
src/interfaces/ecpg/preproc/Makefile
+3
-3
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+3
-3
No files found.
src/interfaces/ecpg/ChangeLog
View file @
d314616d
...
...
@@ -1895,3 +1895,8 @@ Mon Jan 10 13:55:32 CET 2005
- Set compat library version to 1.2.
- Set ecpg library version to 4.2.
Tue Jan 25 13:47:45 CET 2005
- Fixed segfault in preprocessor due to free a struct twice.
- Set ecpg version to 3.2.1.
src/interfaces/ecpg/preproc/Makefile
View file @
d314616d
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 1998-2005, PostgreSQL Global Development Group
#
# $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.11
1 2005/01/18 05:00:28 momjian
Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.11
2 2005/01/25 12:51:31 meskes
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -14,8 +14,8 @@ top_builddir = ../../../..
include
$(top_builddir)/src/Makefile.global
MAJOR_VERSION
=
3
MINOR_VERSION
=
3
PATCHLEVEL
=
0
MINOR_VERSION
=
2
PATCHLEVEL
=
1
override CPPFLAGS
:
= -I$(srcdir)/../include -I$(srcdir) $(CPPFLAGS)
\
-DMAJOR_VERSION=$(MAJOR_VERSION)
\
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
d314616d
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.30
3 2005/01/10 12:58:30
meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.30
4 2005/01/25 12:51:31
meskes Exp $ */
/* Copyright comment */
%{
...
...
@@ -4690,7 +4690,7 @@ type_declaration: S_TYPEDEF
this->type->type_index = length; /* length of string */
this->type->type_sizeof = ECPGstruct_sizeof;
this->struct_member_list = ($3.type_enum == ECPGt_struct || $3.type_enum == ECPGt_union) ?
struct_member_list[struct_level]
: NULL;
ECPGstruct_member_dup(struct_member_list[struct_level])
: NULL;
if ($3.type_enum != ECPGt_varchar &&
$3.type_enum != ECPGt_char &&
...
...
@@ -5556,7 +5556,7 @@ ECPGTypedef: TYPE_P
this->type->type_index = length; /* length of string */
this->type->type_sizeof = ECPGstruct_sizeof;
this->struct_member_list = ($5.type_enum == ECPGt_struct || $5.type_enum == ECPGt_union) ?
struct_member_list[struct_level]
: NULL;
ECPGstruct_member_dup(struct_member_list[struct_level])
: NULL;
if ($5.type_enum != ECPGt_varchar &&
$5.type_enum != ECPGt_char &&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment