From 1b06049c41fe1636ade130ee45e9e6686c6e3f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Wed, 17 Aug 2022 18:36:33 +0200 Subject: [PATCH] Remove final query delimiter ';' from query digests Only the delimiter present at the end of the digest will be removed. Delimiters found in the middle of the full digest, like in the case of multi-statements should be preserved. --- lib/c_tokenizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/c_tokenizer.cpp b/lib/c_tokenizer.cpp index 24c9b10d6..5262fedda 100644 --- a/lib/c_tokenizer.cpp +++ b/lib/c_tokenizer.cpp @@ -2511,7 +2511,7 @@ void final_stage(shared_st* shared_st, stage_1_st* stage_1_st, const options* op { // v1_crashing_payload_06 char* wspace = shared_st->res_cur_pos - 1; - while (wspace > shared_st->res_init_pos && *wspace == ' ') { + while (wspace > shared_st->res_init_pos && (*wspace == ' ' || *wspace == ';')) { wspace--; } wspace++;