pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/dbfsak Changes 5.0:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2653bfa12171
branches:  trunk
changeset: 360480:2653bfa12171
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Mar 30 15:54:03 2017 +0000

description:
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:

 databases/dbfsak/Makefile            |   4 ++--
 databases/dbfsak/distinfo            |  12 +++++++-----
 databases/dbfsak/patches/patch-dbf.c |  24 ++++++++++++++++++++++++
 databases/dbfsak/patches/patch-dbf.h |  15 +++++++++++++++
 4 files changed, 48 insertions(+), 7 deletions(-)

diffs (76 lines):

diff -r 08ef80770be0 -r 2653bfa12171 databases/dbfsak/Makefile
--- a/databases/dbfsak/Makefile Thu Mar 30 15:37:21 2017 +0000
+++ b/databases/dbfsak/Makefile Thu Mar 30 15:54:03 2017 +0000
@@ -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 -r 08ef80770be0 -r 2653bfa12171 databases/dbfsak/distinfo
--- a/databases/dbfsak/distinfo Thu Mar 30 15:37:21 2017 +0000
+++ b/databases/dbfsak/distinfo Thu Mar 30 15:54:03 2017 +0000
@@ -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 -r 08ef80770be0 -r 2653bfa12171 databases/dbfsak/patches/patch-dbf.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/dbfsak/patches/patch-dbf.c      Thu Mar 30 15:54:03 2017 +0000
@@ -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 -r 08ef80770be0 -r 2653bfa12171 databases/dbfsak/patches/patch-dbf.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/dbfsak/patches/patch-dbf.h      Thu Mar 30 15:54:03 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index