Correct race condition and incorrect usage of condition_signal outside of a mutex lock

This commit is contained in:
gingerBill
2021-08-26 22:17:51 +01:00
parent 726788a483
commit b33bf3f704
5 changed files with 10 additions and 1 deletions
+1
View File
@@ -704,6 +704,7 @@ void add_constant_switch_case(CheckerContext *ctx, Map<TypeAndToken> *seen, Oper
if (operand.value.kind == ExactValue_Invalid) {
return;
}
HashKey key = hash_exact_value(operand.value);
TypeAndToken *found = map_get(seen, key);
if (found != nullptr) {