index-mm: fix memory access.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 10 Dec 2011 13:36:35 +0000 (11:36 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 10 Dec 2011 13:36:35 +0000 (11:36 -0200)
commitfc2d835df5ab75d40eb29d79fbcf16948860bb5a
tree1a78c5cdea80c6d6533f58be9212434e4f32d54a
parentfe514b1ed0a25cee1063f145d1e84b0e50791c76
index-mm: fix memory access.

uint32_t reads must be aligned, they're not then use memcpy().

read_alloc_chars_mm() and read_chars_mm() were wrong, normalize all
address calculation using single byte pointer "addr" that is
incremented by the amount read, this will avoid further errors.
libkmod/libkmod-index.c