Hi Jonas

Can you check if this patch fixes your SEGV problems?
I was unable to reproduce it here, but hints [1][2] make me think this might do 
the trick.

-- Nirgal

[1] https://github.com/brianb/mdbtools/pull/19
[2] 
https://github.com/rogerswb/mdbtools/commit/0d3d2959c6d5d25d41f5e3f5d23bb38adacc4550
Description: Fix SEGV in non-Jet3 compressed data
 col_to_string was missing break in a switch/case resulting in an invalid call
 to mdb_unicode2ascii with an odd number of bytes.
Author: William Rogers <rogers...@gmail.com>
Origin: https://github.com/rogerswb/mdbtools/commit/0d3d2959c6d5d25d41f5e3f5d23bb38adacc4550
Bug: https://github.com/brianb/mdbtools/issues/30
Bug-Debian: http://bugs.debian.org/713826
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: https://github.com/brianb/mdbtools/issues/30
Reviewed-By: Jean-Michel Vourgère <jmv_...@nirgal.com>
Last-Update: 2013-06-23

--- mdbtools-0.7.orig/src/libmdb/data.c
+++ mdbtools-0.7/src/libmdb/data.c
@@ -929,6 +929,7 @@ char *mdb_col_to_string(MdbHandle *mdb,
 				text = g_malloc(size);
 				memcpy((char*)buf+start, text, size);
 			}
+		break;
 		case MDB_TEXT:
 			if (size<0) {
 				text = g_strdup("");

Reply via email to