Skip to content

Commit 047a2ce

Browse files
author
Michael Meskes
committed
Fixed possible segfault in type.c (by Juergen Cappel)
1 parent 80683f2 commit 047a2ce

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/interfaces/ecpg/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,10 @@ Sun Mar 14 12:59:15 CET 2004
17651765
- Fixed Informix compat math functions to cope with the situations
17661766
where one argument takes the result.
17671767
- Applied thread patches by Lee Kindness
1768+
1769+
Mon Mar 29 17:02:52 CEST 2004
1770+
1771+
- Fixed possible segfault in type.c (by Juergen Cappel)
17681772
- Set pgtypes library version to 1.2.
17691773
- Set ecpg version to 3.2.0.
17701774
- Set compat library version to 1.2.

src/interfaces/ecpg/preproc/type.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ ECPGdump_a_simple(FILE *o, const char *name, enum ECPGttype type,
321321
else
322322
{
323323
char *variable = (char *) mm_alloc(strlen(name) + ((prefix == NULL) ? 0 : strlen(prefix)) + 4);
324-
char *offset = (char *) mm_alloc(strlen(name) + strlen("sizeof(struct varchar_)") + 1);
324+
char *offset = (char *) mm_alloc(strlen(name) + strlen("sizeof(struct varchar_)") + 1 + strlen(varcharsize));
325325

326326
switch (type)
327327
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy