[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 12/156: MHD_get_version(): fixed signed value bit shift
From: |
gnunet |
Subject: |
[libmicrohttpd] 12/156: MHD_get_version(): fixed signed value bit shift |
Date: |
Sun, 28 May 2023 17:51:05 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit f0a68628e96b0861e2201c367e072c571af05408
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Apr 18 11:00:05 2022 +0300
MHD_get_version(): fixed signed value bit shift
---
src/microhttpd/daemon.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 5ca612ea..3d6c6a84 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -7924,11 +7924,11 @@ MHD_get_version (void)
int res = MHD_snprintf_ (ver,
sizeof(ver),
"%x.%x.%x",
- (((int) MHD_VERSION >> 24) & 0xFF),
- (((int) MHD_VERSION >> 16) & 0xFF),
- (((int) MHD_VERSION >> 8) & 0xFF));
+ (int) (((uint32_t) MHD_VERSION >> 24) & 0xFF),
+ (int) (((uint32_t) MHD_VERSION >> 16) & 0xFF),
+ (int) (((uint32_t) MHD_VERSION >> 8) & 0xFF));
if ((0 >= res) || (sizeof(ver) <= res))
- return "0.0.0"; /* Can't return real version*/
+ return "0.0.0"; /* Can't return real version */
}
return ver;
#endif /* !PACKAGE_VERSION */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] tag v0.9.77 created (now 19fb1171), gnunet, 2023/05/28
- [libmicrohttpd] 03/156: bump MHD_VERSION to indicate development version, gnunet, 2023/05/28
- [libmicrohttpd] 04/156: configure: clarified license message, gnunet, 2023/05/28
- [libmicrohttpd] 02/156: Updated ChangeLog and NEWS for v0.9.76, gnunet, 2023/05/28
- [libmicrohttpd] 01/156: Bump LIB_VERSION_REVISION missing in 0.9.76 release, gnunet, 2023/05/28
- [libmicrohttpd] 06/156: automake: use right automake options, gnunet, 2023/05/28
- [libmicrohttpd] 08/156: test_upgrade{,_large}: fixed use of uninitialized value, gnunet, 2023/05/28
- [libmicrohttpd] 07/156: Fixed compiler warning in examples, gnunet, 2023/05/28
- [libmicrohttpd] 12/156: MHD_get_version(): fixed signed value bit shift,
gnunet <=
- [libmicrohttpd] 11/156: Disallowed MHD_SIZE_UNKNOWN for buffer-based responses, gnunet, 2023/05/28
- [libmicrohttpd] 09/156: fix capitalization of SHA-256 / MD5 as per RFC 7616 as reported on the mailinglist by Ahmet Kermen, gnunet, 2023/05/28
- [libmicrohttpd] 05/156: configure: fixed unwanted output on Fedora, gnunet, 2023/05/28
- [libmicrohttpd] 10/156: memorypool: fixed: unpoison memory for ASAN before destroying pool, gnunet, 2023/05/28
- [libmicrohttpd] 18/156: Response from callback: do allow negative return amounts, except predefined values, gnunet, 2023/05/28
- [libmicrohttpd] 13/156: test_https_sni: use certificates with SAN fields, gnunet, 2023/05/28
- [libmicrohttpd] 16/156: test_https_sni: use CA certificate, gnunet, 2023/05/28
- [libmicrohttpd] 20/156: Fixed return type for get_system_fdsetsize_value (), gnunet, 2023/05/28
- [libmicrohttpd] 15/156: Updated test TLS certificate in test and examples, gnunet, 2023/05/28
- [libmicrohttpd] 36/156: testzzuf: fixed missing CPPFLAGS from configure, gnunet, 2023/05/28