aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-01-14 12:12:43 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2021-01-14 12:12:45 +0100
commit54faf023be0e8f9bcfdb64fd0afb3a00138cd45f (patch)
tree92516f6860837b7cb4bc247a09f1e38da4c12cfb /tests
parentf842e06c88027ed6ccf5a791d6691228b858fd56 (diff)
Workaround ASan false positive runtime errors under some platforms
Under some platforms (RPI4, ARM) container older ASan, it will log false positive log errors which will make unit test fail because then output changes: """ pcu_l1_if.cpp:847:2: runtime error: member access within misaligned address 0xb3f0b78c for type 'struct GprsMs', which requires 8 byte alignment """ The pointer is indeed misaligned, but it's not actually a bug, because the pointer is never derreferenced. That happens during llist_for_each_entry operation where it does cast the pointer but it only checks if the list has actually reached the end. To workaround the issue, simply defer casting it by using llist_for_each instead, where the pointer is assigned only in the case it really points to a GprsMS struct. Change-Id: I149fb42706501eb33f9c6fe48f76a03ddee5954a
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions