{"action":"created","issue":{"url":"https://api.github.com/repos/coderforlife/ms-compress/issues/15","labels_url":"https://api.github.com/repos/coderforlife/ms-compress/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/coderforlife/ms-compress/issues/15/comments","events_url":"https://api.github.com/repos/coderforlife/ms-compress/issues/15/events","html_url":"https://github.com/coderforlife/ms-compress/issues/15","id":68205229,"number":15,"title":"Unaligned stores/loads","user":{"login":"nemequ","id":1151,"avatar_url":"https://avatars.githubusercontent.com/u/1151?v=3","gravatar_id":"","url":"https://api.github.com/users/nemequ","html_url":"https://github.com/nemequ","followers_url":"https://api.github.com/users/nemequ/followers","following_url":"https://api.github.com/users/nemequ/following{/other_user}","gists_url":"https://api.github.com/users/nemequ/gists{/gist_id}","starred_url":"https://api.github.com/users/nemequ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemequ/subscriptions","organizations_url":"https://api.github.com/users/nemequ/orgs","repos_url":"https://api.github.com/users/nemequ/repos","events_url":"https://api.github.com/users/nemequ/events{/privacy}","received_events_url":"https://api.github.com/users/nemequ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coderforlife/ms-compress/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-13T22:08:42Z","updated_at":"2015-06-05T23:22:10Z","closed_at":null,"body":"ubsan detects a lot of unaligned stores and loads:\r\n\r\n```\r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_compress.cpp:73:31: runtime error: store to misaligned address 0x7fff1f096cf5 for type 'uint16_t', which requires 2 byte alignment\r\n0x7fff1f096cf5: note: pointer points here\r\n 66 61 75 63 20 69 6e  7f 03 70 00 00 00 00 00  00 00 00 00 00 00 00 00  9e 00 00 00 00 00 00 00  b8\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:60:20: runtime error: load of misaligned address 0x000000bd8e7b for type 'const const_byte', which requires 2 byte alignment\r\n0x000000bd8e7b: note: pointer points here\r\n 20  04 64 69 44 00 6d 20 6e  65 63 00 2e 20 56 65 73  74 69 62 64 75 6c e8 00  61 6e 3e 00 7f 03 70\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: load of misaligned address 0x000000bdb3d1 for type 'const const_byte', which requires 4 byte alignment\r\n0x000000bdb3d1: note: pointer points here\r\n 65 20 6c  65 63 74 75 73 20 6e 69  73 6c 2c 20 76 69 74 61  65 20 75 6c 74 72 69 63  69 65 73 20 6a\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: load of misaligned address 0x000000bdb3d1 for type 'const const_byte', which requires 4 byte alignment\r\n0x000000bdb3d1: note: pointer points here\r\n 65 20 6c  65 63 74 75 73 20 6e 69  73 6c 2c 20 76 69 74 61  65 20 75 6c 74 72 69 63  69 65 73 20 6a\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: load of misaligned address 0x000000bdb3d1 for type 'const const_byte', which requires 4 byte alignment\r\n0x000000bdb3d1: note: pointer points here\r\n 65 20 6c  65 63 74 75 73 20 6e 69  73 6c 2c 20 76 69 74 61  65 20 75 6c 74 72 69 63  69 65 73 20 6a\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: store to misaligned address 0x000000bdb406 for type 'byte', which requires 4 byte alignment\r\n0x000000bdb406: note: pointer points here\r\n 69 62 75 6c 00 00  4e 22 40 00 00 00 00 00  d4 1c 40 00 00 00 00 00  36 1d 40 00 00 00 00 00  50 1d\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: store to misaligned address 0x000000bdb40a for type 'uint32_t', which requires 4 byte alignment\r\n0x000000bdb40a: note: pointer points here\r\n 75 6d  20 64 40 00 00 00 00 00  d4 1c 40 00 00 00 00 00  36 1d 40 00 00 00 00 00  50 1d 40 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: store to misaligned address 0x000000bdb40e for type 'uint32_t', which requires 4 byte alignment\r\n0x000000bdb40e: note: pointer points here\r\n 6f 6c 6f 72 00 00  d4 1c 40 00 00 00 00 00  36 1d 40 00 00 00 00 00  50 1d 40 00 00 00 00 00  71 01\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: load of misaligned address 0x000000bdb4de for type 'const const_byte', which requires 4 byte alignment\r\n0x000000bdb4de: note: pointer points here\r\n 69 74 75 64 69 6e  20 6c 6f 72 65 6d 20 65  6e 69 6d 2c 20 65 75 20  65 6c 65 69 66 65 6e 64  20 6f\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: load of misaligned address 0x000000bdb4de for type 'const const_byte', which requires 4 byte alignment\r\n0x000000bdb4de: note: pointer points here\r\n 69 74 75 64 69 6e  20 6c 6f 72 65 6d 20 65  6e 69 6d 2c 20 65 75 20  65 6c 65 69 66 65 6e 64  20 6f\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: load of misaligned address 0x000000bdb4de for type 'const const_byte', which requires 4 byte alignment\r\n0x000000bdb4de: note: pointer points here\r\n 69 74 75 64 69 6e  20 6c 6f 72 65 6d 20 65  6e 69 6d 2c 20 65 75 20  65 6c 65 69 66 65 6e 64  20 6f\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: load of misaligned address 0x000000bdb4de for type 'const const_byte', which requires 4 byte alignment\r\n0x000000bdb4de: note: pointer points here\r\n 69 74 75 64 69 6e  20 6c 6f 72 65 6d 20 65  6e 69 6d 2c 20 65 75 20  65 6c 65 69 66 65 6e 64  20 6f\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: store to misaligned address 0x000000bdb656 for type 'byte', which requires 4 byte alignment\r\n0x000000bdb656: note: pointer points here\r\n 73 71 75 65 00 00  60 c1 bd 00 00 00 00 00  4e 1f 40 00 00 00 00 00  03 20 40 00 00 00 00 00  00 00\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: store to misaligned address 0x000000bdb65a for type 'uint32_t', which requires 4 byte alignment\r\n0x000000bdb65a: note: pointer points here\r\n 20 73  6f 64 bd 00 00 00 00 00  4e 1f 40 00 00 00 00 00  03 20 40 00 00 00 00 00  00 00 00 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: store to misaligned address 0x000000bdb65e for type 'uint32_t', which requires 4 byte alignment\r\n0x000000bdb65e: note: pointer points here\r\n 61 6c 65 73 00 00  4e 1f 40 00 00 00 00 00  03 20 40 00 00 00 00 00  00 00 00 00 00 00 00 00  31 00\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/lznt1_decompress.cpp:66:5: runtime error: store to misaligned address 0x000000bdb662 for type 'uint32_t', which requires 4 byte alignment\r\n0x000000bdb662: note: pointer points here\r\n 20 6c  75 63 40 00 00 00 00 00  03 20 40 00 00 00 00 00  00 00 00 00 00 00 00 00  31 00 00 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/XpressDictionary.h:140:39: runtime error: load of misaligned address 0x000000401bb9 for type 'const_byte *[32768]', which requires 2 byte alignment\r\n0x000000401bb9: note: pointer points here\r\n 00 00 00  4c 6f 72 65 6d 20 69 70  73 75 6d 20 64 6f 6c 6f  72 20 73 69 74 20 61 6d  65 74 2c 20 63\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/XpressDictionary.h:144:4: runtime error: load of misaligned address 0x000000401c01 for type 'const_byte *[32768]', which requires 2 byte alignment\r\n0x000000401c01: note: pointer points here\r\n 65 20 6c  65 63 74 75 73 20 6e 69  73 6c 2c 20 76 69 74 61  65 20 75 6c 74 72 69 63  69 65 73 20 6a\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/XpressDictionary.h:71:3: runtime error: load of misaligned address 0x000000401c01 for type 'const_byte *[32768]', which requires 4 byte alignment\r\n0x000000401c01: note: pointer points here\r\n 65 20 6c  65 63 74 75 73 20 6e 69  73 6c 2c 20 76 69 74 61  65 20 75 6c 74 72 69 63  69 65 73 20 6a\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_compress.cpp:276:49: runtime error: store to misaligned address 0x00000260ae7b for type 'byte', which requires 2 byte alignment\r\n0x00000260ae7b: note: pointer points here\r\n 6f  20 64 69 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/XpressDictionary.h:71:3: runtime error: load of misaligned address 0x000000401c36 for type 'const_byte *[32768]', which requires 4 byte alignment\r\n0x000000401c36: note: pointer points here\r\n 69 62 75 6c 75 6d  20 61 6e 74 65 20 69 70  73 75 6d 20 70 72 69 6d  69 73 20 69 6e 20 66 61  75 63\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_compress.cpp:319:32: runtime error: store to misaligned address 0x00000260ae6d for type 'uint32_t', which requires 4 byte alignment\r\n0x00000260ae6d: note: pointer points here\r\n 69 63 69 65 00 00 00  00 73 20 6a 75 73 74 6f  20 64 69 01 10 6d 20 6e  65 63 2e 20 56 65 73 74  69\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_compress.cpp:344:30: runtime error: store to misaligned address 0x00000260b3bb for type 'uint32_t', which requires 4 byte alignment\r\n0x00000260b3bb: note: pointer points here\r\n 26  75 4d 5b 00 00 00 00 36  a8 04 f3 11 0b 2e 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: load of misaligned address 0x00000260ae6d for type 'const const_byte', which requires 4 byte alignment\r\n0x00000260ae6d: note: pointer points here\r\n 69 63 69 65 00 20 00  26 73 20 6a 75 73 74 6f  20 64 69 01 10 6d 20 6e  65 63 2e 20 56 65 73 74  69\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: load of misaligned address 0x00000260ae7b for type 'const const_byte', which requires 2 byte alignment\r\n0x00000260ae7b: note: pointer points here\r\n 6f  20 64 69 01 10 6d 20 6e  65 63 2e 20 56 65 73 74  69 62 75 6c 00 78 61 6e  01 f0 03 fb 70 00 04\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: load of misaligned address 0x00000260ba59 for type 'const const_byte', which requires 4 byte alignment\r\n0x00000260ba59: note: pointer points here\r\n 65 20 6c  65 63 74 75 73 20 6e 69  73 6c 2c 20 76 69 74 61  65 20 75 6c 74 72 69 63  69 65 73 20 6a\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: load of misaligned address 0x00000260ba59 for type 'const const_byte', which requires 4 byte alignment\r\n0x00000260ba59: note: pointer points here\r\n 65 20 6c  65 63 74 75 73 20 6e 69  73 6c 2c 20 76 69 74 61  65 20 75 6c 74 72 69 63  69 65 73 20 6a\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: load of misaligned address 0x00000260ba59 for type 'const const_byte', which requires 4 byte alignment\r\n0x00000260ba59: note: pointer points here\r\n 65 20 6c  65 63 74 75 73 20 6e 69  73 6c 2c 20 76 69 74 61  65 20 75 6c 74 72 69 63  69 65 73 20 6a\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: store to misaligned address 0x00000260ba8e for type 'byte', which requires 4 byte alignment\r\n0x00000260ba8e: note: pointer points here\r\n 69 62 75 6c 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: store to misaligned address 0x00000260ba92 for type 'uint32_t', which requires 4 byte alignment\r\n0x00000260ba92: note: pointer points here\r\n 75 6d  20 6e 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: store to misaligned address 0x00000260ba96 for type 'uint32_t', which requires 4 byte alignment\r\n0x00000260ba96: note: pointer points here\r\n 65 63 2e 20 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: load of misaligned address 0x00000260bb66 for type 'const const_byte', which requires 4 byte alignment\r\n0x00000260bb66: note: pointer points here\r\n 69 74 75 64 69 6e  20 6c 6f 72 65 6d 20 65  6e 69 6d 2c 20 65 75 20  65 6c 65 69 66 65 6e 64  20 6f\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: load of misaligned address 0x00000260bb66 for type 'const const_byte', which requires 4 byte alignment\r\n0x00000260bb66: note: pointer points here\r\n 69 74 75 64 69 6e  20 6c 6f 72 65 6d 20 65  6e 69 6d 2c 20 65 75 20  65 6c 65 69 66 65 6e 64  20 6f\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: load of misaligned address 0x00000260bb66 for type 'const const_byte', which requires 4 byte alignment\r\n0x00000260bb66: note: pointer points here\r\n 69 74 75 64 69 6e  20 6c 6f 72 65 6d 20 65  6e 69 6d 2c 20 65 75 20  65 6c 65 69 66 65 6e 64  20 6f\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: load of misaligned address 0x00000260bb66 for type 'const const_byte', which requires 4 byte alignment\r\n0x00000260bb66: note: pointer points here\r\n 69 74 75 64 69 6e  20 6c 6f 72 65 6d 20 65  6e 69 6d 2c 20 65 75 20  65 6c 65 69 66 65 6e 64  20 6f\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: store to misaligned address 0x00000260bcde for type 'byte', which requires 4 byte alignment\r\n0x00000260bcde: note: pointer points here\r\n 73 71 75 65 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: store to misaligned address 0x00000260bce2 for type 'uint32_t', which requires 4 byte alignment\r\n0x00000260bce2: note: pointer points here\r\n 20 73  6f 64 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: store to misaligned address 0x00000260bce6 for type 'uint32_t', which requires 4 byte alignment\r\n0x00000260bce6: note: pointer points here\r\n 61 6c 65 73 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:420:2: runtime error: store to misaligned address 0x00000260bcea for type 'uint32_t', which requires 4 byte alignment\r\n0x00000260bcea: note: pointer points here\r\n 20 6c  75 63 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:428:22: runtime error: load of misaligned address 0x00000260b2fd for type 'const const_byte', which requires 4 byte alignment\r\n0x00000260b2fd: note: pointer points here\r\n d9 28 c8 63 3f fc 7f  ff 6f 72 0e 31 32 d3 25  fb 32 3d 1c eb 05 87 06  98 10 1a 35 31 44 73 17  d5\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_decompress.cpp:441:5: runtime error: load of misaligned address 0x00000260b303 for type 'const const_byte', which requires 2 byte alignment\r\n0x00000260b303: note: pointer points here\r\n 7f  ff 6f 72 0e 31 32 d3 25  fb 32 3d 1c eb 05 87 06  98 10 1a 35 31 44 73 17  d5 0a d7 21 2e 20 55\r\n              ^ \r\n/buffer/ms-compress/xpress-huffman: /home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/XpressDictionary.h:140:39: runtime error: load of misaligned address 0x000000401bb9 for type 'const_byte *[32768]', which requires 2 byte alignment\r\n0x000000401bb9: note: pointer points here\r\n 00 00 00  4c 6f 72 65 6d 20 69 70  73 75 6d 20 64 6f 6c 6f  72 20 73 69 74 20 61 6d  65 74 2c 20 63\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_huff_compress.cpp:107:52: runtime error: store to misaligned address 0x0000013b14c5 for type 'uint16_t', which requires 2 byte alignment\r\n0x0000013b14c5: note: pointer points here\r\n 65 20 6c 50 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/XpressDictionary.h:144:4: runtime error: load of misaligned address 0x000000401c01 for type 'const_byte *[32768]', which requires 2 byte alignment\r\n0x000000401c01: note: pointer points here\r\n 65 20 6c  65 63 74 75 73 20 6e 69  73 6c 2c 20 76 69 74 61  65 20 75 6c 74 72 69 63  69 65 73 20 6a\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/XpressDictionary.h:71:3: runtime error: load of misaligned address 0x000000401c01 for type 'const_byte *[32768]', which requires 4 byte alignment\r\n0x000000401c01: note: pointer points here\r\n 65 20 6c  65 63 74 75 73 20 6e 69  73 6c 2c 20 76 69 74 61  65 20 75 6c 74 72 69 63  69 65 73 20 6a\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/XpressDictionary.h:71:3: runtime error: load of misaligned address 0x000000401c36 for type 'const_byte *[32768]', which requires 4 byte alignment\r\n0x000000401c36: note: pointer points here\r\n 69 62 75 6c 75 6d  20 61 6e 74 65 20 69 70  73 75 6d 20 70 72 69 6d  69 73 20 69 6e 20 66 61  75 63\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_huff_compress.cpp:121:19: runtime error: store to misaligned address 0x0000013b14de for type 'uint32_t', which requires 4 byte alignment\r\n0x0000013b14de: note: pointer points here\r\n 69 63 69 65 00 00  00 00 73 20 6a 75 73 74  6f 20 64 69 50 03 00 6d  20 6e 65 63 2e 20 56 65  73 74\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_huff_compress.cpp:141:22: runtime error: store to misaligned address 0x0000013b1bb9 for type 'byte', which requires 4 byte alignment\r\n0x0000013b1bb9: note: pointer points here\r\n 93 22 00  2e 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_huff_compress.cpp:145:18: runtime error: store to misaligned address 0x0000013b1bab for type 'uint32_t', which requires 4 byte alignment\r\n0x0000013b1bab: note: pointer points here\r\n 00  b3 ac 01 00 00 00 70 a0  d6 02 73 1f 00 93 22 00  2e 00 00 00 00 00 00 00  00 00 00 00 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_huff_compress.cpp:208:37: runtime error: load of misaligned address 0x0000013b14c5 for type 'const const_byte', which requires 2 byte alignment\r\n0x0000013b14c5: note: pointer points here\r\n 65 20 6c 50 08 00 75  73 20 6e 69 73 6c 2c 20  76 69 74 61 65 20 75 6c  74 72 69 63 69 65 00 04  00\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/xpress_huff_compress.cpp:202:46: runtime error: load of misaligned address 0x0000013b14de for type 'const const_byte', which requires 4 byte alignment\r\n0x0000013b14de: note: pointer points here\r\n 69 63 69 65 00 04  00 64 73 20 6a 75 73 74  6f 20 64 69 50 03 00 6d  20 6e 65 63 2e 20 56 65  73 74\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/Bitstream.h:132:47: runtime error: store to misaligned address 0x0000013b01b1 for type 'uint16_t', which requires 2 byte alignment\r\n0x0000013b01b1: note: pointer points here\r\n e4 b3 21  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00\r\n              ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/Bitstream.h:145:46: runtime error: store to misaligned address 0x0000013b0385 for type 'uint16_t', which requires 2 byte alignment\r\n0x0000013b0385: note: pointer points here\r\n c7 88 9b e5 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00\r\n             ^ \r\n/home/nemequ/local/src/squash/plugins/ms-compress/ms-compress/src/../include/mscomp/Bitstream.h:146:21: runtime error: store to misaligned address 0x0000013b0387 for type 'uint16_t', which requires 2 byte alignment\r\n0x0000013b0387: note: pointer points here\r\n 9b e5 a0 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00\r\n             ^\r\n```"},"comment":{"url":"https://api.github.com/repos/coderforlife/ms-compress/issues/comments/109479867","html_url":"https://github.com/coderforlife/ms-compress/issues/15#issuecomment-109479867","issue_url":"https://api.github.com/repos/coderforlife/ms-compress/issues/15","id":109479867,"user":{"login":"coderforlife","id":1537688,"avatar_url":"https://avatars.githubusercontent.com/u/1537688?v=3","gravatar_id":"","url":"https://api.github.com/users/coderforlife","html_url":"https://github.com/coderforlife","followers_url":"https://api.github.com/users/coderforlife/followers","following_url":"https://api.github.com/users/coderforlife/following{/other_user}","gists_url":"https://api.github.com/users/coderforlife/gists{/gist_id}","starred_url":"https://api.github.com/users/coderforlife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderforlife/subscriptions","organizations_url":"https://api.github.com/users/coderforlife/orgs","repos_url":"https://api.github.com/users/coderforlife/repos","events_url":"https://api.github.com/users/coderforlife/events{/privacy}","received_events_url":"https://api.github.com/users/coderforlife/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T23:22:10Z","updated_at":"2015-06-05T23:22:10Z","body":"So far I have been unable to reproduce this problem. Compressing and decompressing the lorem-ipsum test you linked to causes no issues. I put in checks for out of bounds as well. Do worry, it wasn't much wasted time."}}