summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2021-02-15 17:08:53 +0200
committerGitHub <noreply@github.com>2021-02-15 17:08:53 +0200
commit141ac8df59c1d77e2f2a10792ff34b26eb13bcf0 (patch)
treeb589396e025583f951e4937efa0f190b14aeb4a4 /src/util.h
parent30775bc3e3a919e6a168523e772551332738e9f3 (diff)
downloadredis-141ac8df59c1d77e2f2a10792ff34b26eb13bcf0.tar.gz
Escape unsafe field name characters in INFO. (#8492)
Fixes #8489
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index feaa82924..3a15c793e 100644
--- a/src/util.h
+++ b/src/util.h
@@ -49,6 +49,8 @@ int stringmatchlen(const char *p, int plen, const char *s, int slen, int nocase)
int stringmatch(const char *p, const char *s, int nocase);
int stringmatchlen_fuzz_test(void);
long long memtoll(const char *p, int *err);
+const char *mempbrk(const char *s, size_t len, const char *chars, size_t charslen);
+char *memmapchars(char *s, size_t len, const char *from, const char *to, size_t setlen);
uint32_t digits10(uint64_t v);
uint32_t sdigits10(int64_t v);
int ll2string(char *s, size_t len, long long value);