]> git.ipfire.org Git - thirdparty/shairport-sync.git/commit
Fix data allignment issue 175/head
authorJörg Krause <joerg.krause@embedded.rocks>
Sat, 12 Dec 2015 20:44:16 +0000 (21:44 +0100)
committerJörg Krause <joerg.krause@embedded.rocks>
Sat, 12 Dec 2015 21:11:19 +0000 (22:11 +0100)
commitfaa583398dfe5c0aa55d3b4574dc43c9e15eb43e
tree727248e841f20e7707392fccd733d5f98e1cea75
parent73c3744e4ceb2421c1f4caf9e3efb25ba962564a
Fix data allignment issue

Different processor targets may have different word alignment restrictions.
Typically, a two or four byte integer should start on a four-byte address in
order to be fetched correctly over a bus. An access of a misaligned memory
element may cause a bus error.

Therefore, we need to adjust the contents of a message by copying it into a new
location, before interpreting it.
rtsp.c