From 70abee9d2bc582f439213e911ae6a3cd20629033 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Tue, 16 Mar 2021 14:14:18 +0100 Subject: [PATCH] TT#114315 pv_headers: fix split detection marker, take two missing change from backport was causing core dump Change-Id: I39b12cf6a9eb0549f64b06644da6f6b3d1ee5e7f --- debian/patches/sipwise/add_pv_headers_module.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/patches/sipwise/add_pv_headers_module.patch b/debian/patches/sipwise/add_pv_headers_module.patch index 6496dc56b..2edbbb8f6 100644 --- a/debian/patches/sipwise/add_pv_headers_module.patch +++ b/debian/patches/sipwise/add_pv_headers_module.patch @@ -541,7 +541,7 @@ index 0000000..30bd1da + $var(test) = $x_rr; diff --git a/src/modules/pv_headers/pv_headers.c b/src/modules/pv_headers/pv_headers.c new file mode 100644 -index 0000000..7683293 +index 0000000..30d944c --- /dev/null +++ b/src/modules/pv_headers/pv_headers.c @@ -0,0 +1,2170 @@ @@ -1652,7 +1652,7 @@ index 0000000..7683293 + if(!marker) + marker = pv_detect_split_char(s->s); + while (idx < s->len) { -+ strncpy(p, s->s+idx++,1); ++ p = s->s + idx++; + if (keep_spaces == 0 && strncmp(p, " ", 1) == 0) + continue; + if (p == marker) {