From 81d6ddce19e40093d952bb9d0dcd8b00af09d476 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 6 Dec 2019 11:12:16 +0000 Subject: auth file, using alternative bcmp implementation ... instead to check the token. less optimised than the usual memcmp especially it goes through the whole buffers but more resilient against possible attacks. While at it, constifying a var which should have been. --- extstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extstore.c') diff --git a/extstore.c b/extstore.c index 6e21c0f..e825667 100644 --- a/extstore.c +++ b/extstore.c @@ -186,7 +186,7 @@ void extstore_get_page_data(void *ptr, struct extstore_stats *st) { } const char *extstore_err(enum extstore_res res) { - char *rv = "unknown error"; + const char *rv = "unknown error"; switch (res) { case EXTSTORE_INIT_BAD_WBUF_SIZE: rv = "page_size must be divisible by wbuf_size"; -- cgit v1.2.1