[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 09/13: get_date_str(): additional check
From: |
gnunet |
Subject: |
[libmicrohttpd] 09/13: get_date_str(): additional check |
Date: |
Sat, 30 Oct 2021 19:17:26 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 6468c2338834fb2835471f12fadbedd63340cd8c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Oct 30 18:00:03 2021 +0300
get_date_str(): additional check
---
src/microhttpd/connection.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 9031510a..3161ab8f 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1392,7 +1392,9 @@ get_date_str (char *date)
date[3] = ',';
date[4] = ' ';
/* Day of the month */
- MHD_uint8_to_str_pad ((uint8_t) now.tm_mday, 2, date + 5, buf_len - 5);
+ if (2 != MHD_uint8_to_str_pad ((uint8_t) now.tm_mday, 2,
+ date + 5, buf_len - 5))
+ return false;
date[7] = ' ';
/* Month */
src = mons[now.tm_mon % 12];
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 04/13: microhttpd.h: fixed typo in doxy, (continued)
- [libmicrohttpd] 04/13: microhttpd.h: fixed typo in doxy, gnunet, 2021/10/30
- [libmicrohttpd] 07/13: src/microhttpd/Makefile.am: removed empty lines, gnunet, 2021/10/30
- [libmicrohttpd] 05/13: microhttpd.h: MHD_ResponseFlags comments, gnunet, 2021/10/30
- [libmicrohttpd] 08/13: keepalive_possible(): added TODOs, gnunet, 2021/10/30
- [libmicrohttpd] 03/13: Updated HTTP headers names, gnunet, 2021/10/30
- [libmicrohttpd] 11/13: setup_reply_properties(): improved comments, gnunet, 2021/10/30
- [libmicrohttpd] 01/13: Updated HTTP statuses, gnunet, 2021/10/30
- [libmicrohttpd] 13/13: build_header_response(): added assert, gnunet, 2021/10/30
- [libmicrohttpd] 06/13: Improved doxy for MHD_add_response_header(), gnunet, 2021/10/30
- [libmicrohttpd] 10/13: connection_maximize_write_buffer(): fixed comment, gnunet, 2021/10/30
- [libmicrohttpd] 09/13: get_date_str(): additional check,
gnunet <=
- [libmicrohttpd] 12/13: connection.c: improved comments, gnunet, 2021/10/30