diff options
author | mi <mi@FreeBSD.org> | 2003-04-16 00:35:53 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2003-04-16 00:35:53 +0800 |
commit | 72e2ab68c8b646584fde00e7dfccb6d8f4c28adf (patch) | |
tree | d5bbd55242700ad4d150e53293477c2041a49627 /databases | |
parent | dc3a8662214b45e5d2044aaa7d810bee863776b9 (diff) | |
download | freebsd-ports-gnome-72e2ab68c8b646584fde00e7dfccb6d8f4c28adf.tar.gz freebsd-ports-gnome-72e2ab68c8b646584fde00e7dfccb6d8f4c28adf.tar.zst freebsd-ports-gnome-72e2ab68c8b646584fde00e7dfccb6d8f4c28adf.zip |
Add a patch found in the SourceForge page of this project.
No REVISION bump, since the port was not building until
10 minutes ago.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mdbtools/files/patch-jet4rows | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/databases/mdbtools/files/patch-jet4rows b/databases/mdbtools/files/patch-jet4rows new file mode 100644 index 000000000000..1471751e3333 --- /dev/null +++ b/databases/mdbtools/files/patch-jet4rows @@ -0,0 +1,33 @@ +This patch was downloaded from SourceForge, to which it was submitted +Matt <mws at rochester.rr.com>, who wrote: + + This patch fixes the Jet4 tab_num_rows_offset constant + and changes mdb_read_row so it checks the row number + against the number of rows in the table. + + I have some MDB files for which the normal logic in + mdb_read_row fails. This patch solves the problem. + +--- src/libmdb/data.c 2003-01-12 17:59:43.000000000 -0500 ++++ src/libmdb/data.c 2003-01-23 14:42:57.000000000 -0500 +@@ -171,6 +171,9 @@ + unsigned char null_mask[33]; /* 256 columns max / 8 bits per byte */ + unsigned char isnull; + ++ if (table->num_rows <= row) ++ return 0; ++ + row_start = mdb_get_int16(mdb, (fmt->row_count_offset + 2) + (row*2)); + row_end = mdb_find_end_of_row(mdb, row); + +--- src/libmdb/file.c 2003-01-12 17:59:43.000000000 -0500 ++++ src/libmdb/file.c 2003-01-23 14:43:04.000000000 -0500 +@@ -20,7 +20,7 @@ + #include "mdbtools.h" + + MdbFormatConstants MdbJet4Constants = { +- 4096, 0x0c, 12, 45, 47, 51, 55, 56, 63, 12, 15, 23, 5, 25 ++ 4096, 0x0c, 16, 45, 47, 51, 55, 56, 63, 12, 15, 23, 5, 25 + }; + MdbFormatConstants MdbJet3Constants = { + 2048, 0x08, 12, 25, 27, 31, 35, 36, 43, 8, 13, 16, 1, 18 |