This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch 8.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/8.1.x by this push:
new 6fca51d Fix out of bounds access error in jtest (#7526) (#7660)
6fca51d is described below
commit 6fca51d3629bf50d3e1df5f939d3b0f730a11c15
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Thu Apr 8 08:20:01 2021 +0900
Fix out of bounds access error in jtest (#7526) (#7660)
(cherry picked from commit 7a7a89960ce71be9fce3b0bcf5eb4f7c169903ca)
---
tools/jtest/jtest.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/jtest/jtest.cc b/tools/jtest/jtest.cc
index 2075b99..f12bdba 100644
--- a/tools/jtest/jtest.cc
+++ b/tools/jtest/jtest.cc
@@ -4800,7 +4800,7 @@ ink_web_escapify_string(char *dest_in, char *src_in, int
max_dest_len)
int quit = 0;
while ((*src != 0) && (dcount < max_dest_len) && (quit == 0)) {
- if ((char *)memchr(dontescapify, *src, INT_MAX) ||
ParseRules::is_alpha(*src) || ParseRules::is_digit(*src)) {
+ if ((char *)strchr(dontescapify, *src) || ParseRules::is_alpha(*src) ||
ParseRules::is_digit(*src)) {
/* this is regular character, don't escapify it */
if (dcount + 1 < max_dest_len) {
*dest++ = *src;