diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-26 22:17:51 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-26 22:17:51 +0100 |
| commit | b33bf3f7042464ac4f6e187fc487ee42668fcef7 (patch) | |
| tree | a60151734e843e3efd542267eff16fe071fdb432 /src/check_stmt.cpp | |
| parent | 726788a48310971b0df8f431968100786d2f8cab (diff) | |
Correct race condition and incorrect usage of `condition_signal` outside of a mutex lock
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 7b039e001..6fc098e6a 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -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) { |