From c2808f2823b12953e6822afbf464dfa7b1df8e91 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 15 Jan 2021 12:27:32 +0100 Subject: [PATCH] Secure HTTP links --- src/debug.c | 2 +- src/dict.c | 2 +- src/geohash.c | 2 +- src/memtest.c | 4 ++-- src/setproctitle.c | 2 +- src/sha256.c | 2 +- src/siphash.c | 2 +- src/sparkline.c | 2 +- src/util.c | 2 +- src/zmalloc.c | 2 +- utils/srandmember/README.md | 2 +- utils/whatisdoing.sh | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/debug.c b/src/debug.c index 809822f96..4ec077723 100644 --- a/src/debug.c +++ b/src/debug.c @@ -2250,7 +2250,7 @@ void bugReportEnd(int killViaSignal, int sig) { serverLogRaw(LL_WARNING|LL_RAW, "\n=== REDIS BUG REPORT END. Make sure to include from START to END. ===\n\n" " Please report the crash by opening an issue on github:\n\n" -" http://github.com/redis/redis/issues\n\n" +" https://github.com/redis/redis/issues\n\n" " If a Redis module was involved, please open in the module's repo instead.\n\n" " Suspect RAM error? Use redis-server --test-memory to verify it.\n\n" " Some other issues could be detected by redis-server --check-system\n" diff --git a/src/dict.c b/src/dict.c index 2eb9aa41f..0de46ea59 100644 --- a/src/dict.c +++ b/src/dict.c @@ -1191,7 +1191,7 @@ dictEntry *dictGetFairRandomKey(dict *d) { } /* Function to reverse bits. Algorithm from: - * http://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel */ + * https://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel */ static unsigned long rev(unsigned long v) { unsigned long s = CHAR_BIT * sizeof(v); // bit size; must be power of 2 unsigned long mask = ~0UL; diff --git a/src/geohash.c b/src/geohash.c index 2cbcf2875..911d8ae11 100644 --- a/src/geohash.c +++ b/src/geohash.c @@ -77,7 +77,7 @@ static inline uint64_t interleave64(uint32_t xlo, uint32_t ylo) { } /* reverse the interleave process - * derived from http://stackoverflow.com/questions/4909263 + * derived from https://stackoverflow.com/questions/4909263 */ static inline uint64_t deinterleave64(uint64_t interleaved) { static const uint64_t B[] = {0x5555555555555555ULL, 0x3333333333333333ULL, diff --git a/src/memtest.c b/src/memtest.c index 1ca4b82cf..6a636fb3e 100644 --- a/src/memtest.c +++ b/src/memtest.c @@ -77,7 +77,7 @@ void memtest_progress_start(char *title, int pass) { /* Fill with dots. */ for (j = 0; j < ws.ws_col*(ws.ws_row-2); j++) printf("."); printf("Please keep the test running several minutes per GB of memory.\n"); - printf("Also check http://www.memtest86.com/ and http://pyropus.ca/software/memtester/"); + printf("Also check https://www.memtest86.com/ and http://pyropus.ca/software/memtester/"); printf("\x1b[H\x1b[2K"); /* Cursor home, clear current line. */ printf("%s [%d]\n", title, pass); /* Print title. */ progress_printed = 0; @@ -371,7 +371,7 @@ void memtest(size_t megabytes, int passes) { memtest_alloc_and_test(megabytes,passes); printf("\nYour memory passed this test.\n"); printf("Please if you are still in doubt use the following two tools:\n"); - printf("1) memtest86: http://www.memtest86.com/\n"); + printf("1) memtest86: https://www.memtest86.com/\n"); printf("2) memtester: http://pyropus.ca/software/memtester/\n"); exit(0); } diff --git a/src/setproctitle.c b/src/setproctitle.c index 019402348..c76db94d2 100644 --- a/src/setproctitle.c +++ b/src/setproctitle.c @@ -82,7 +82,7 @@ static inline size_t spt_min(size_t a, size_t b) { /* * For discussion on the portability of the various methods, see - * http://lists.freebsd.org/pipermail/freebsd-stable/2008-June/043136.html + * https://lists.freebsd.org/pipermail/freebsd-stable/2008-June/043136.html */ int spt_clearenv(void) { #ifdef HAVE_CLEARENV diff --git a/src/sha256.c b/src/sha256.c index 3b53c45c4..a60ff46bc 100644 --- a/src/sha256.c +++ b/src/sha256.c @@ -8,7 +8,7 @@ specification. The others, SHA-384 and SHA-512, are not offered in this implementation. Algorithm specification can be found here: - * http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf + * https://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf This implementation uses little endian byte order. *********************************************************************/ diff --git a/src/siphash.c b/src/siphash.c index 2713d89ee..590aafe9b 100644 --- a/src/siphash.c +++ b/src/siphash.c @@ -12,7 +12,7 @@ You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see - . + . ---------------------------------------------------------------------------- diff --git a/src/sparkline.c b/src/sparkline.c index 4c0f2b81f..faba55a98 100644 --- a/src/sparkline.c +++ b/src/sparkline.c @@ -1,5 +1,5 @@ /* sparkline.c -- ASCII Sparklines - * This code is modified from http://github.com/antirez/aspark and adapted + * This code is modified from https://github.com/antirez/aspark and adapted * in order to return SDS strings instead of outputting directly to * the terminal. * diff --git a/src/util.c b/src/util.c index 26d92b922..d5631186a 100644 --- a/src/util.c +++ b/src/util.c @@ -634,7 +634,7 @@ int d2string(char *buf, size_t len, double value) { else len = snprintf(buf,len,"inf"); } else if (value == 0) { - /* See: http://en.wikipedia.org/wiki/Signed_zero, "Comparisons". */ + /* See: https://en.wikipedia.org/wiki/Signed_zero, "Comparisons". */ if (1.0/value < 0) len = snprintf(buf,len,"-0"); else diff --git a/src/zmalloc.c b/src/zmalloc.c index bbfa38651..50155c248 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -783,7 +783,7 @@ size_t zmalloc_get_private_dirty(long pid) { * * Note that this function: * 1) Was released under the following CC attribution license: - * http://creativecommons.org/licenses/by/3.0/deed.en_US. + * https://creativecommons.org/licenses/by/3.0/deed.en_US. * 2) Was originally implemented by David Robert Nadeau. * 3) Was modified for Redis by Matt Stancliff. * 4) This note exists in order to comply with the original license. diff --git a/utils/srandmember/README.md b/utils/srandmember/README.md index d3da1e82f..0a054eee9 100644 --- a/utils/srandmember/README.md +++ b/utils/srandmember/README.md @@ -1,7 +1,7 @@ The utilities in this directory plot the distribution of SRANDMEMBER to evaluate how fair it is. -See http://theshfl.com/redis_sets for more information on the topic that lead +See https://theshfl.com/redis_sets for more information on the topic that lead to such investigation fix. showdist.rb -- shows the distribution of the frequency elements are returned. diff --git a/utils/whatisdoing.sh b/utils/whatisdoing.sh index 68d7f7cca..a6af532a2 100755 --- a/utils/whatisdoing.sh +++ b/utils/whatisdoing.sh @@ -1,4 +1,4 @@ -# This script is from http://poormansprofiler.org/ +# This script is from https://poormansprofiler.org/ # # NOTE: Instead of using this script, you should use the Redis # Software Watchdog, which provides a similar functionality but in