Skip to content
Snippets Groups Projects
Commit 0cdc4a67 authored by Jani Nikula's avatar Jani Nikula
Browse files

tools/intel_vbt_decode: fix division by zero child device size


Real world VBTs keep fuzzing our decoder, this time with a legacy child
devices block #11 that has child_dev_size 0, leading to division by
zero. Check for it, and bail out early, both for legacy and current
child device blocks.

Reviewed-by: default avatarKamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent ffe88a90
No related branches found
No related tags found
Loading
Pipeline #819135 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment