File mdbtools-aliasingandendianness.patch of Package mdbtools
--- src/libmdb/data.c
+++ src/libmdb/data.c
@@ -387,11 +387,13 @@
g_ptr_array_index(pages, table->cur_pg_num-1),
fmt->pg_size);
} else if (table->strategy==MDB_INDEX_SCAN) {
-
- if (!mdb_index_find_next(table->mdbidx, table->scan_idx, table->chain, &pg, (guint16 *) &(table->cur_row))) {
+ guint16 tmp = (guint16)table->cur_row;
+ if (!mdb_index_find_next(table->mdbidx, table->scan_idx, table->chain, &pg, &tmp)) {
+ table->cur_row = tmp;
mdb_index_scan_free(table);
return 0;
}
+ table->cur_row = tmp;
mdb_read_pg(mdb, pg);
} else {
rows = mdb_get_int16(mdb->pg_buf,fmt->row_count_offset);