aboutsummaryrefslogtreecommitdiff
path: root/databases/pxtools
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2007-02-21 19:00:53 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2007-02-21 19:00:53 +0000
commit4145084b78fb5a9bede154d9631df6043939e7f8 (patch)
tree709fef7d37912e4ecb8b4929c2e06db36cb0e172 /databases/pxtools
parentddd64bd05c0dd04c1c9c219d9a74d8c420097d0d (diff)
downloadports-4145084b78fb5a9bede154d9631df6043939e7f8.tar.gz
ports-4145084b78fb5a9bede154d9631df6043939e7f8.zip
- Add patch to fix coredumps when using tables with BLOBs
- Bump PORTREVISION Submitted by: Kurt Jaeger <pi@c0mplx.org> (via private mail) Approved by: erwin (mentor, implicit)
Notes
Notes: svn path=/head/; revision=185648
Diffstat (limited to 'databases/pxtools')
-rw-r--r--databases/pxtools/Makefile1
-rw-r--r--databases/pxtools/files/patch-pxconvert.c16
2 files changed, 17 insertions, 0 deletions
diff --git a/databases/pxtools/Makefile b/databases/pxtools/Makefile
index 0268da666668..44df7f3ab8de 100644
--- a/databases/pxtools/Makefile
+++ b/databases/pxtools/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pxtools
PORTVERSION= 0.0.20
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://jan.kneschke.de/assets/2007/2/16/
diff --git a/databases/pxtools/files/patch-pxconvert.c b/databases/pxtools/files/patch-pxconvert.c
new file mode 100644
index 000000000000..d40214ef34cd
--- /dev/null
+++ b/databases/pxtools/files/patch-pxconvert.c
@@ -0,0 +1,16 @@
+--- src/pxconvert.c.orig Wed Feb 21 19:48:42 2007
++++ src/pxconvert.c Wed Feb 21 19:49:51 2007
+@@ -512,7 +512,12 @@
+ #ifdef DEBUG
+ fprintf(stderr, "[BLOB] offset: %08lx, length: %08lx, mod_number: %04x, index: %02x\n", offset, length, mod_number, index);
+ #endif
+- if (index == 0x00) return 0;
++
++ if (index == 0x00) {
++ *binsize = 0;
++ *binstorage = NULL;
++ return 0;
++ }
+
+ if (!blobname) {
+ fprintf(stderr, "[BLOB] offset: %08lx, length: %08lx, mod_number: %04x, index: %02x - do I need a BLOB-filename '-b ...' ?\n", offset, length, mod_number, index);