Skip to content
Snippets Groups Projects
  • Gary Coulbourne's avatar
    8cad0a72
    64-bit length fields on ARM don't work · 8cad0a72
    Gary Coulbourne authored
    ARM only allows aligned accesses.  GCC generated unaligned accesses for the copy buffer, but ARM forces alignment, causing the first two bytes to be trampled.  I changed the mechanism to create two temporaries and memcpy them in.  It now works on ARM (and x86) for large websocket chunks.
    8cad0a72
    History
    64-bit length fields on ARM don't work
    Gary Coulbourne authored
    ARM only allows aligned accesses.  GCC generated unaligned accesses for the copy buffer, but ARM forces alignment, causing the first two bytes to be trampled.  I changed the mechanism to create two temporaries and memcpy them in.  It now works on ARM (and x86) for large websocket chunks.