From fa8b154628faa4ce234d83f99cd9cb64e9a673c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sat, 22 Aug 2015 16:00:56 +0000 Subject: [PATCH] fix undefined integer shift MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Stefan Bühler git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3011 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + src/stat_cache.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 943f7725..76376169 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ NEWS * [mod_dirlisting] fix dir-listing.set-footer not showing * fix out-of-filedescriptors when uploading "large" files (fixes #2660, thx rmilecki) * increase upload temporary chunk file size from 1MB to 16MB + * fix undefined integer shift - 1.4.36 - 2015-07-26 * use keep-alive timeout while waiting for HTTP headers; use always the read timeout while waiting for the HTTP body diff --git a/src/stat_cache.c b/src/stat_cache.c index dedea4bf..dd381d78 100644 --- a/src/stat_cache.c +++ b/src/stat_cache.c @@ -249,7 +249,7 @@ static uint32_t hashme(buffer *str) { hash = ((hash << 5) + hash) + *s; } - hash &= ~(1 << 31); /* strip the highest bit */ + hash &= ~(((uint32_t)1) << 31); /* strip the highest bit */ return hash; }