From 182a66bc43ac6610ad7248846de0c3d8a382933f Mon Sep 17 00:00:00 2001 From: Snaipe Date: Sat, 24 Sep 2016 14:16:14 +0200 Subject: [PATCH] ubsan: Fixed shift overflow on signed int --- src/core/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/client.c b/src/core/client.c index d74b673..5aa084e 100644 --- a/src/core/client.c +++ b/src/core/client.c @@ -396,7 +396,7 @@ bool handle_phase(struct server_ctx *sctx, struct client_ctx *ctx, const criteri handler_error(sctx, "%s: ", id, "Cannot spawn a subtest outside of the '%s' test phase.", state_to_string[CS_MAIN]); return true; } - if (ctx->state & (0x3 << (MAX_TEST_DEPTH - 1) * 2)) { + if (ctx->state & (0x3u << (MAX_TEST_DEPTH - 1) * 2)) { char id[32]; get_message_id(id, sizeof (id), msg);