From eec4016291f5a9bdcdd324fbb08efc295fd68f35 Mon Sep 17 00:00:00 2001 From: robert Date: Fri, 11 Jun 2004 17:37:48 +0000 Subject: [PATCH] fix a crash problem; from DBD::SQLite CVS; via FreeBSD --- databases/p5-DBD-SQLite/patches/patch-dbdimp_c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 databases/p5-DBD-SQLite/patches/patch-dbdimp_c diff --git a/databases/p5-DBD-SQLite/patches/patch-dbdimp_c b/databases/p5-DBD-SQLite/patches/patch-dbdimp_c new file mode 100644 index 00000000000..230ece25150 --- /dev/null +++ b/databases/p5-DBD-SQLite/patches/patch-dbdimp_c @@ -0,0 +1,17 @@ +$OpenBSD: patch-dbdimp_c,v 1.1 2004/06/11 17:37:48 robert Exp $ +--- dbdimp.c.orig Sat Feb 14 18:36:38 2004 ++++ dbdimp.c Fri Jun 11 19:38:42 2004 +@@ -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) {