Skip to content
Commit b164c972 authored by Johan Hedberg's avatar Johan Hedberg Committed by Johan Hedberg
Browse files

samples: reel_board/mesh_badge: Fix out-of-bounds array access



The show_sensors_data() function tries to access val[2] when
outputting the Z-axis value, so the array must have at least three
elements. This also triggered Coverity CID 189741.

Fixes #11482

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 381a9dd1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment