commit | 69b76d7305a2fdc2c1e48a597c007cbce6135926 | [log] [tgz] |
---|---|---|
author | Michael Hope <mlhx@google.com> | Mon Jun 08 20:34:49 2020 +0200 |
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Mon Jun 15 10:30:35 2020 +0300 |
tree | 82b4b9dce188acc2f66eb434c7d81ad7703fc16f | |
parent | 636d6cd9cdb6648374bf906953d1a9b96f74aa7d [diff] |
samples: zperf: fix an unaligned access in the UDP uploader zperf takes a potentially unaligned netowrk packet, casts it to a struct, and then dereferences the fields. This causes a crash on cores that don't support unaligned access such as the Cortex-M0+. Use the UNALIGNED_GET helper instead. Signed-off-by: Michael Hope <mlhx@google.com>