From 8d5599ba59e5303f941a264cdbd5434408557c3b Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 15 May 2016 13:45:03 +0200 Subject: [PATCH] Fix shift out of bounds in fnmatch(3). --- libc/fnmatch/fnmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/fnmatch/fnmatch.c b/libc/fnmatch/fnmatch.c index d5b25c82..65c6baf1 100644 --- a/libc/fnmatch/fnmatch.c +++ b/libc/fnmatch/fnmatch.c @@ -22,7 +22,7 @@ #include #include -#define __FNM_NOT_LEADING (1 << 31) +#define __FNM_NOT_LEADING (1 << 30) // TODO: This doesn't properly handle multibyte sequences. // TODO: This doesn't fully implement all the POSIX requirements.