-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ekf2: fix uninitalized memory warning
The imu and sensor_combined data should not be used when it has not been updated yet, otherwise this triggers a memory sanitizer warning: Conditional jump or move depends on uninitialised value(s) at 0x2DA7AA: __sanitizer_cov_trace_const_cmp1 (in build/px4_sitl_default-clang/bin/px4) by 0x3C4E79: EKF2::Run() (src/modules/ekf2/EKF2.cpp:401) by 0x6EB881: px4::WorkQueue::Run() (platforms/common/px4_work_queue/WorkQueue.cpp:187) by 0x6ECB9D: px4::WorkQueueRunner(void*) (platforms/common/px4_work_queue/WorkQueueManager.cpp:230) by 0x4C07258: start_thread (in /usr/lib/libpthread-2.33.so) by 0x4D415E2: clone (in /usr/lib/libc-2.33.so) Conditional jump or move depends on uninitialised value(s) at 0x3C4E7C: EKF2::Run() (src/modules/ekf2/EKF2.cpp:401) by 0x6EB881: px4::WorkQueue::Run() (platforms/common/px4_work_queue/WorkQueue.cpp:187) by 0x6ECB9D: px4::WorkQueueRunner(void*) (platforms/common/px4_work_queue/WorkQueueManager.cpp:230) by 0x4C07258: start_thread (in /usr/lib/libpthread-2.33.so) by 0x4D415E2: clone (in /usr/lib/libc-2.33.so)
- Loading branch information
Showing
1 changed file
with
56 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters