Werk #12707: md check: crashes with IndexError (list index out of range) on invalid input

Component Checks & agents
Title md check: crashes with IndexError (list index out of range) on invalid input
Date Apr 9, 2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0p2 2.1.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Fed with input different from what the md check is made for it tries to access non-existent input elements and crashes with unhandled IndexError exception. This change makes md check for the minimum number of expected elements before accessing them.

To the list of all Werks