BUG/MINOR: pattern: prevent const sample from being tampered in pat_match_beg()
This is a complementary patch to a68affeaa ("BUG/MINOR: pattern: a sample
marked as const could be written"). Indeed the same logic from
pat_match_str() is used there, but we lack the check to ensure that the
sample is not const before writing data to it.
It could be backported to all stable versions.
(cherry picked from commit 3449525a0204841a62a9fa41119ec8c47f21fde8)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 1f06ee2f67d56fec623591f5fad4aa45f7a6ee10)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 0985219dfda506cd61081b3994178e49ce3ee692)
Signed-off-by: Willy Tarreau <w@1wt.eu>
1 file changed