Commit 478615b1 authored by Jani Nikula's avatar Jani Nikula

tools/intel_vbt_decode: check inconsistent sequence element size

Cross check against the element dumper return value to catch
Reviewed-by: Ville Syrjälä's avatarVille Syrjälä <>
Signed-off-by: Jani Nikula's avatarJani Nikula <>
parent 8a7dc406
Pipeline #23110 passed with stages
in 10 minutes and 45 seconds
......@@ -1286,7 +1286,13 @@ static const uint8_t *dump_sequence(const uint8_t *data, uint8_t seq_version)
operation_size = *data++;
if (mipi_elem_dump) {
const uint8_t *next = data + operation_size;
data = mipi_elem_dump(data, seq_version);
if (operation_size && next != data)
printf("Error: Inconsistent operation size: %d\n",
} else if (operation_size) {
/* We have size, skip. */
data += operation_size;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment