diff options
author | adam <adam@pkgsrc.org> | 2017-03-30 15:54:03 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2017-03-30 15:54:03 +0000 |
commit | f64178cd7fea98e2afd64460c8f0f082a25a810e (patch) | |
tree | 43e8566d91a0b32e7b3b006d8c90a180c69c7110 /databases | |
parent | 41362ae36b667b1c0af45b971a5aa508a3b8eb94 (diff) | |
download | pkgsrc-f64178cd7fea98e2afd64460c8f0f082a25a810e.tar.gz |
Changes 5.0:
* /dbfsak/VERSION, /dbfsak/dbf.c, /dbfsak/dbf.h, /dbfsak/dbfsak.c:
More precisely specify variable sizes, since DBF files were
originally 8-bit, then 16-bit, then 32-bit. Current code being
worked on 64 bit platform.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/dbfsak/Makefile | 4 | ||||
-rw-r--r-- | databases/dbfsak/distinfo | 12 | ||||
-rw-r--r-- | databases/dbfsak/patches/patch-dbf.c | 24 | ||||
-rw-r--r-- | databases/dbfsak/patches/patch-dbf.h | 15 |
4 files changed, 48 insertions, 7 deletions
diff --git a/databases/dbfsak/Makefile b/databases/dbfsak/Makefile index 151ee732dca..a81a1921b35 100644 --- a/databases/dbfsak/Makefile +++ b/databases/dbfsak/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.3 2016/03/12 21:53:39 tnn Exp $ +# $NetBSD: Makefile,v 1.4 2017/03/30 15:54:03 adam Exp $ -DISTNAME= dbfsak-4.6.src +DISTNAME= dbfsak-5.0.src PKGNAME= ${DISTNAME:S/.src//} CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dbfsak/} diff --git a/databases/dbfsak/distinfo b/databases/dbfsak/distinfo index eb2dda0f5b7..c2c1f7718de 100644 --- a/databases/dbfsak/distinfo +++ b/databases/dbfsak/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.3 2015/11/03 01:56:11 agc Exp $ +$NetBSD: distinfo,v 1.4 2017/03/30 15:54:03 adam Exp $ -SHA1 (dbfsak-4.6.src.tar.gz) = f04412dc4207255c5cce887aa6f775a6dc94214f -RMD160 (dbfsak-4.6.src.tar.gz) = c927a87d0b913d65bc8ca8f3976793f49f812b7c -SHA512 (dbfsak-4.6.src.tar.gz) = 6ef8c7f4173c5e1ba48739f29585bf6ed455b7fbfe980a69c38cb2bd031cc0824eb4f5293cf48d087db8ba5f6c190a604b0b6d6089dddd38423f1583d19f7688 -Size (dbfsak-4.6.src.tar.gz) = 18566 bytes +SHA1 (dbfsak-5.0.src.tar.gz) = 213d3df1d93c78f63604c469b8fb79efbe808112 +RMD160 (dbfsak-5.0.src.tar.gz) = 0999cb4415540c7d802ac507788b5dc1bc32d760 +SHA512 (dbfsak-5.0.src.tar.gz) = 017473433f37c37e846d2c971496042cc5729dc78ad4a25b75aa3b7ffe095330e1bf10f0dd80a7b94a21f3f42d319448436690147ffb09542940d80a0b381c9c +Size (dbfsak-5.0.src.tar.gz) = 18067 bytes +SHA1 (patch-dbf.c) = f608f456278867366be0f588de4a8a4a1e379f7c +SHA1 (patch-dbf.h) = c109ad7fbab03e68531c6d6ba7f6a5fa20b6af37 diff --git a/databases/dbfsak/patches/patch-dbf.c b/databases/dbfsak/patches/patch-dbf.c new file mode 100644 index 00000000000..9f567c6ff34 --- /dev/null +++ b/databases/dbfsak/patches/patch-dbf.c @@ -0,0 +1,24 @@ +$NetBSD: patch-dbf.c,v 1.1 2017/03/30 15:54:03 adam Exp $ + +Avoid accessing elements past array's size. + +--- dbf.c.orig 2017-03-30 15:50:09.000000000 +0000 ++++ dbf.c +@@ -205,7 +205,7 @@ dbf_table *dbf_from_rdb(char *afname, ch + strcpy(rdb_f, afname); + else { + memcpy(rdb_f, afname, MAXPATH - 1); +- rdb_f[MAXPATH] = '\0'; ++ rdb_f[MAXPATH - 1] = '\0'; + } + + +@@ -220,7 +220,7 @@ dbf_table *dbf_from_rdb(char *afname, ch + strcpy(t->filename, fname); + else { + memcpy(t->filename, fname, MAXPATH - 1); +- t->filename[MAXPATH] = '\0'; ++ t->filename[MAXPATH - 1] = '\0'; + } + + // first two lines are irrelevant diff --git a/databases/dbfsak/patches/patch-dbf.h b/databases/dbfsak/patches/patch-dbf.h new file mode 100644 index 00000000000..248ae1678f4 --- /dev/null +++ b/databases/dbfsak/patches/patch-dbf.h @@ -0,0 +1,15 @@ +$NetBSD: patch-dbf.h,v 1.1 2017/03/30 15:54:03 adam Exp $ + +Get rid of non-standard stdint-gcc.h. + +--- dbf.h.orig 2017-03-30 15:48:41.000000000 +0000 ++++ dbf.h +@@ -3,7 +3,7 @@ + + #include <stdio.h> + // 2017-01-18 paulf: include file to define precise integer/long types +-#include <stdint-gcc.h> ++#include <stdint.h> + #include "bool.h" + + #ifndef uchar |