Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0f865e1

Browse files
author
Michael Meskes
committed
Applied Lee Kindness' patch to fix one of memory allocation with floating point numbers.
1 parent0484700 commit0f865e1

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,11 @@ Mon May 20 10:58:36 CEST 2002
12601260
- Fixed some parser bugs.
12611261
- Removed some simple rules to work arounf bison limit for now.
12621262
- Update c_keywords.c to reflect changes in keywords.c.
1263+
1264+
Wed Jun 12 14:04:11 CEST 2002
1265+
1266+
- Applied Lee Kindness' patch to fix one of memory allocation with
1267+
floating point numbers.
12631268
- Set ecpg version to 2.10.0.
12641269
- Set library version to 3.4.0.
12651270

‎src/interfaces/ecpg/lib/execute.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.36 2002/01/13 08:52:08 meskes Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.37 2002/06/12 12:06:53 meskes Exp $ */
22

33
/*
44
* The aim is to get a simpler inteface to the database routines.
@@ -700,7 +700,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
700700
break;
701701
#endif/* HAVE_LONG_LONG_INT_64 */
702702
caseECPGt_float:
703-
if (!(mallocedval=ECPGalloc(var->arrsize*20,stmt->lineno)))
703+
if (!(mallocedval=ECPGalloc(var->arrsize*21,stmt->lineno)))
704704
return false;
705705

706706
if (var->arrsize>1)
@@ -720,7 +720,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
720720
break;
721721

722722
caseECPGt_double:
723-
if (!(mallocedval=ECPGalloc(var->arrsize*20,stmt->lineno)))
723+
if (!(mallocedval=ECPGalloc(var->arrsize*21,stmt->lineno)))
724724
return false;
725725

726726
if (var->arrsize>1)
@@ -740,7 +740,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
740740
break;
741741

742742
caseECPGt_bool:
743-
if (!(mallocedval=ECPGalloc(var->arrsize*20,stmt->lineno)))
743+
if (!(mallocedval=ECPGalloc(var->arrsize*2,stmt->lineno)))
744744
return false;
745745

746746
if (var->arrsize>1)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp