diff options
author | nork <nork@FreeBSD.org> | 2004-06-11 22:22:57 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2004-06-11 22:22:57 +0800 |
commit | fee2892fe698c65abb42b01a390b786059194bac (patch) | |
tree | 35bdd713dfcf4b435e40ac5313d4819737e92485 | |
parent | ee06d42ff5bf3c63e613a26c4a828a505b8834d4 (diff) | |
download | freebsd-ports-gnome-fee2892fe698c65abb42b01a390b786059194bac.tar.gz freebsd-ports-gnome-fee2892fe698c65abb42b01a390b786059194bac.tar.zst freebsd-ports-gnome-fee2892fe698c65abb42b01a390b786059194bac.zip |
Fix a crash problem.
PR: ports/63233 [1]
Reported by: Stefan `Sec` Zehl <sec@42.org> [1]
Submitted by: kuriyama
Obtained from: DBD::SQLite cvs repository
-rw-r--r-- | databases/p5-DBD-SQLite/Makefile | 1 | ||||
-rw-r--r-- | databases/p5-DBD-SQLite/files/patch-dbdimp.c | 22 | ||||
-rw-r--r-- | databases/p5-DBD-SQLite2/Makefile | 1 | ||||
-rw-r--r-- | databases/p5-DBD-SQLite2/files/patch-dbdimp.c | 22 |
4 files changed, 46 insertions, 0 deletions
diff --git a/databases/p5-DBD-SQLite/Makefile b/databases/p5-DBD-SQLite/Makefile index 4035a485a937..dd75f290db03 100644 --- a/databases/p5-DBD-SQLite/Makefile +++ b/databases/p5-DBD-SQLite/Makefile @@ -7,6 +7,7 @@ PORTNAME= DBD-SQLite PORTVERSION= 0.31 +PORTREVISION= 1 CATEGORIES= databases perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= DBD diff --git a/databases/p5-DBD-SQLite/files/patch-dbdimp.c b/databases/p5-DBD-SQLite/files/patch-dbdimp.c new file mode 100644 index 000000000000..ac2081868ac1 --- /dev/null +++ b/databases/p5-DBD-SQLite/files/patch-dbdimp.c @@ -0,0 +1,22 @@ +--- dbdimp.c.orig Sun Feb 15 02:36:38 2004 ++++ dbdimp.c Fri Jun 11 22:32:17 2004 +@@ -1,4 +1,4 @@ +-/* $Id: dbdimp.c,v 1.44 2004/02/14 17:36:38 matt Exp $ */ ++/* $Id: dbdimp.c,v 1.45 2004/03/16 19:08:22 matt Exp $ */ + + #include "SQLiteXS.h" + +@@ -294,8 +294,11 @@ + char * + sqlite_decode(imp_dbh_t *imp_dbh, char *input, size_t *len) + { +- char *ret = malloc(*len); +- char *swit = ret; ++ char *ret; ++ char *swit; ++ ++ New(1, ret, *len, char); ++ swit = ret; + + while (*input) { + switch (*input) { diff --git a/databases/p5-DBD-SQLite2/Makefile b/databases/p5-DBD-SQLite2/Makefile index 4035a485a937..dd75f290db03 100644 --- a/databases/p5-DBD-SQLite2/Makefile +++ b/databases/p5-DBD-SQLite2/Makefile @@ -7,6 +7,7 @@ PORTNAME= DBD-SQLite PORTVERSION= 0.31 +PORTREVISION= 1 CATEGORIES= databases perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= DBD diff --git a/databases/p5-DBD-SQLite2/files/patch-dbdimp.c b/databases/p5-DBD-SQLite2/files/patch-dbdimp.c new file mode 100644 index 000000000000..ac2081868ac1 --- /dev/null +++ b/databases/p5-DBD-SQLite2/files/patch-dbdimp.c @@ -0,0 +1,22 @@ +--- dbdimp.c.orig Sun Feb 15 02:36:38 2004 ++++ dbdimp.c Fri Jun 11 22:32:17 2004 +@@ -1,4 +1,4 @@ +-/* $Id: dbdimp.c,v 1.44 2004/02/14 17:36:38 matt Exp $ */ ++/* $Id: dbdimp.c,v 1.45 2004/03/16 19:08:22 matt Exp $ */ + + #include "SQLiteXS.h" + +@@ -294,8 +294,11 @@ + char * + sqlite_decode(imp_dbh_t *imp_dbh, char *input, size_t *len) + { +- char *ret = malloc(*len); +- char *swit = ret; ++ char *ret; ++ char *swit; ++ ++ New(1, ret, *len, char); ++ swit = ret; + + while (*input) { + switch (*input) { |