Closed s-l-teichmann closed 1 year ago
Bug: We used string comparison to rank tlp levels in the rolie label checker.
case label >= csaf.TLPLabelAmber: with label = csaf.TLPLabelWhite
case label >= csaf.TLPLabelAmber:
csaf.TLPLabelWhite
is the same as case "WHITE" > "AMBER": which is obviously not intended.
case "WHITE" > "AMBER":
Fix: Use the tlpLevel function on the labels before the comparison.
tlpLevel
Bug: We used string comparison to rank tlp levels in the rolie label checker.
case label >= csaf.TLPLabelAmber:
with label =csaf.TLPLabelWhite
is the same as
case "WHITE" > "AMBER":
which is obviously not intended.Fix: Use the
tlpLevel
function on the labels before the comparison.