For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
493 matches across 12 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | utils/install_server.sh | 1 | #!/bin/sh |
| LOW | utils/install_server.sh | 21 | # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
| LOW | utils/install_server.sh | 41 | # |
| LOW | utils/install_server.sh | 201 | "#!/bin/sh\n |
| LOW | utils/install_server.sh | 221 | # Should-Stop: \$syslog \$named\n |
| LOW | utils/install_server.sh | 241 | cat > ${TMP_FILE} <<EOT |
| LOW | utils/redis-sha1.rb | 1 | # redis-sha1.rb - Copyright (C) 2009-Present Redis Ltd. All rights reserved. |
| LOW | utils/hyperloglog/hll-gnuplot-graph.rb | 1 | # hll-err.rb - Copyright (C) 2014-Present Redis Ltd. |
| LOW | deps/jemalloc/msvc/test_threads/test_threads.cpp | 1 | // jemalloc C++ threaded test |
| LOW | deps/jemalloc/test/unit/arena_reset_prof.c | 1 | #include "test/jemalloc_test.h" |
| LOW | deps/jemalloc/test/include/test/SFMT-params2281.h | 41 | #define SL2 1 |
| LOW | deps/jemalloc/test/include/test/SFMT-params2281.h | 61 | #define ALTI_SL2_PERM \ |
| LOW | deps/jemalloc/test/include/test/SFMT-params.h | 101 | |
| LOW | deps/jemalloc/test/include/test/SFMT-params.h | 121 | #include "test/SFMT-params216091.h" |
| LOW | deps/jemalloc/test/include/test/SFMT-params1279.h | 41 | #define SL2 3 |
| LOW | deps/jemalloc/test/include/test/SFMT-params1279.h | 61 | #define ALTI_SL2_PERM \ |
| LOW | deps/jemalloc/test/include/test/SFMT-params44497.h | 41 | #define SL2 3 |
| LOW | deps/jemalloc/test/include/test/SFMT-params44497.h | 61 | #define ALTI_SL2_PERM \ |
| LOW | deps/jemalloc/test/include/test/test.h | 41 | #define expect_c_gt(a, b, ...) expect_cmp(char, a, b, >, <=, "c", __VA_ARGS__) |
| LOW | deps/jemalloc/test/include/test/test.h | 321 | #define expect_not_reached(...) verify_not_reached(false, __VA_ARGS__) |
| LOW | deps/jemalloc/test/include/test/test.h | 341 | |
| LOW | deps/jemalloc/test/include/test/SFMT-params4253.h | 41 | #define SL2 1 |
| LOW | deps/jemalloc/test/include/test/SFMT-params4253.h | 61 | #define ALTI_SL2_PERM \ |
| LOW | deps/jemalloc/test/include/test/SFMT-params11213.h | 41 | #define SL2 3 |
| LOW | deps/jemalloc/test/include/test/SFMT-params11213.h | 61 | #define ALTI_SL2_PERM \ |
| LOW | deps/jemalloc/test/include/test/SFMT-params86243.h | 41 | #define SL2 7 |
| LOW | deps/jemalloc/test/include/test/SFMT-params86243.h | 61 | #define ALTI_SL2_PERM \ |
| LOW | deps/jemalloc/test/include/test/SFMT-params132049.h | 41 | #define SL2 1 |
| LOW | deps/jemalloc/test/include/test/SFMT-params132049.h | 61 | #define ALTI_SL2_PERM \ |
| LOW | deps/jemalloc/test/include/test/SFMT-params216091.h | 41 | #define SL2 3 |
| LOW | deps/jemalloc/test/include/test/SFMT-params216091.h | 61 | #define ALTI_SL2_PERM \ |
| LOW | deps/jemalloc/test/include/test/SFMT-params19937.h | 41 | #define SL2 1 |
| LOW | deps/jemalloc/test/include/test/SFMT-params19937.h | 61 | #define ALTI_SL2_PERM \ |
| LOW | deps/jemalloc/test/include/test/SFMT-params607.h | 41 | #define SL2 3 |
| LOW | deps/jemalloc/test/include/test/SFMT-params607.h | 61 | #define ALTI_SL2_PERM \ |
| LOW | deps/jemalloc/test/src/math.c | 1 | #define MATH_C_ |
| LOW | deps/jemalloc/test/src/SFMT.c | 41 | * @author Makoto Matsumoto (Hiroshima University) |
| LOW | deps/jemalloc/include/jemalloc/internal/rtree.h | 21 | /* Number of significant bits. */ |
| LOW | deps/jemalloc/include/jemalloc/internal/test_hooks.h | 1 | #ifndef JEMALLOC_INTERNAL_TEST_HOOKS_H |
| LOW | deps/jemalloc/include/jemalloc/internal/lockedint.h | 21 | |
| LOW | deps/jemalloc/include/jemalloc/internal/lockedint.h | 41 | # define LOCKEDINT_MTX(mtx) NULL |
| LOW | deps/jemalloc/include/jemalloc/internal/tsd.h | 1 | #ifndef JEMALLOC_INTERNAL_TSD_H |
| LOW | deps/jemalloc/include/jemalloc/internal/tsd.h | 221 | * Some TSD accesses can only be done in a nominal state. To enforce this, we |
| LOW | deps/jemalloc/include/jemalloc/internal/nstime.h | 1 | #ifndef JEMALLOC_INTERNAL_NSTIME_H |
| LOW | deps/jemalloc/include/jemalloc/internal/rtree_tsd.h | 21 | #define RTREE_CTX_NCACHE 16 |
| LOW | …include/jemalloc/internal/jemalloc_internal_includes.h | 61 | #include "jemalloc/internal/arena_externs.h" |
| LOW | …include/jemalloc/internal/jemalloc_internal_includes.h | 81 | #include "jemalloc/internal/prof_inlines.h" |
| LOW | …s/jemalloc/include/jemalloc/internal/arena_inlines_b.h | 1 | #ifndef JEMALLOC_INTERNAL_ARENA_INLINES_B_H |
| LOW | …nclude/jemalloc/internal/jemalloc_internal_inlines_a.h | 1 | #ifndef JEMALLOC_INTERNAL_INLINES_A_H |
| LOW | …c/include/jemalloc/internal/jemalloc_internal_macros.h | 1 | #ifndef JEMALLOC_INTERNAL_MACROS_H |
| LOW | …c/include/jemalloc/internal/jemalloc_internal_macros.h | 21 | #define QU(q) ((uint64_t)q) |
| LOW | …c/include/jemalloc/internal/jemalloc_internal_macros.h | 41 | # define JET_MUTABLE const |
| LOW | …c/include/jemalloc/internal/jemalloc_internal_macros.h | 81 | |
| LOW | …oc/include/jemalloc/internal/jemalloc_internal_decls.h | 1 | #ifndef JEMALLOC_INTERNAL_DECLS_H |
| LOW | …oc/include/jemalloc/internal/jemalloc_internal_decls.h | 21 | # include <sys/mman.h> |
| LOW | …oc/include/jemalloc/internal/jemalloc_internal_decls.h | 41 | # endif |
| LOW | …oc/include/jemalloc/internal/jemalloc_internal_decls.h | 61 | #endif |
| LOW | …oc/include/jemalloc/internal/jemalloc_internal_decls.h | 81 | # define STDERR_FILENO 2 |
| LOW | deps/jemalloc/include/jemalloc/internal/pa.h | 1 | #ifndef JEMALLOC_INTERNAL_PA_H |
| LOW | deps/jemalloc/include/jemalloc/internal/malloc_io.h | 1 | #ifndef JEMALLOC_INTERNAL_MALLOC_IO_H |
| 311 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/array-bench.py | 155 | except Exception as exc: # pragma: no cover - startup race handling |
| LOW | tools/array-bench.py | 168 | except Exception: # pragma: no cover - best effort diagnostics |
| MEDIUM | tools/array-bench.py | 69 | def run(self) -> int: |
| LOW | utils/req-res-log-validator.py | 220 | except Exception as err: |
| LOW | utils/req-res-log-validator.py | 262 | except Exception as e: |
| MEDIUM | utils/generate-command-code.py | 553 | print("Error processing %s: %s" % (filename, err)) |
| MEDIUM | utils/generate-command-code.py | 575 | print("Error: There are errors in the commands check, please check the above logs.") |
| LOW | modules/vector-sets/test.py | 159 | except Exception as e: |
| LOW | modules/vector-sets/test.py | 193 | except Exception as e: |
| MEDIUM | modules/vector-sets/test.py | 194 | print(f"Error loading {file}: {e}") |
| MEDIUM | modules/vector-sets/test.py | 276 | print(f"Error: {test.error_msg}") |
| MEDIUM | modules/vector-sets/test.py | 149 | def run(self): |
| LOW | modules/vector-sets/tests/vsim_limit_efsearch.py | 31 | except Exception as e: |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 57 | except Exception as e: |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 60 | except Exception as e: |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 77 | except Exception as e: |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 79 | except Exception as e: |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 104 | except Exception as e: |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 109 | except Exception as e: |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 147 | except Exception as e: |
| LOW | modules/vector-sets/tests/memory_usage.py | 35 | except Exception as e: |
| LOW | modules/vector-sets/tests/vadd_cas.py | 29 | except Exception as e: |
| MEDIUM | modules/vector-sets/tests/vadd_cas.py | 31 | print(f"Error adding {name}: {e}") |
| LOW | modules/vector-sets/tests/debug_digest.py | 38 | except Exception as e: |
| LOW | modules/vector-sets/tests/replication.py | 47 | except Exception as e: |
| LOW | modules/vector-sets/tests/replication.py | 56 | except Exception as e: |
| LOW | modules/vector-sets/tests/replication.py | 68 | except Exception as e: |
| LOW | modules/vector-sets/tests/threading_config.py | 35 | except Exception: |
| LOW | modules/vector-sets/tests/threading_config.py | 45 | except Exception as e: |
| LOW | modules/vector-sets/tests/filter_int.py | 194 | except Exception as e: |
| MEDIUM | modules/vector-sets/tests/filter_int.py | 195 | print(f"Error evaluating filter expression '{filter_expr}' as '{py_expr}': {e}") |
| LOW | modules/vector-sets/tests/filter_int.py | 198 | except Exception as e: |
| MEDIUM | modules/vector-sets/tests/filter_int.py | 199 | print(f"Error evaluating filter expression '{filter_expr}' as '{py_expr}': {e}") |
| LOW | modules/vector-sets/tests/filter_int.py | 423 | except Exception as e: |
| LOW | modules/vector-sets/tests/filter_int.py | 441 | except Exception as e: |
| LOW | modules/vector-sets/tests/filter_int.py | 490 | except Exception as e: |
| MEDIUM | modules/vector-sets/examples/cli-tool/cli.py | 101 | print("Error: Could not connect to Redis server") |
| LOW | modules/vector-sets/examples/cli-tool/cli.py | 120 | except Exception as e: |
| LOW | modules/vector-sets/examples/cli-tool/cli.py | 127 | except Exception as e: |
| LOW | modules/vector-sets/examples/cli-tool/cli.py | 156 | except Exception as e: |
| LOW | modules/vector-sets/examples/glove-100/recall.py | 71 | except Exception as e: |
| MEDIUM | modules/vector-sets/examples/glove-100/recall.py | 72 | print(f"Error processing query {i}: {str(e)}") |
| LOW | modules/vector-sets/examples/glove-100/insert.py | 48 | except Exception as e: |
| MEDIUM | modules/vector-sets/examples/glove-100/insert.py | 49 | print(f"Error processing vector {current_index}: {str(e)}") |
| LOW | modules/vector-sets/examples/movies/insert.py | 52 | except Exception as e: |
| MEDIUM | modules/vector-sets/examples/movies/insert.py | 53 | print(f"Error processing {movie['title']}: {str(e)}") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | modules/vector-sets/tests/filter_expr.py | 8 | # Create a small set of vectors with different attributes |
| MEDIUM | modules/vector-sets/tests/dimension_validation.py | 17 | # Create the initial vector and set with projection |
| MEDIUM | modules/vector-sets/tests/filter_int.py | 345 | # Create a larger dataset for testing |
| MEDIUM | modules/vector-sets/tests/filter_int.py | 519 | # Create a dataset where we control the exact selectivity |
| MEDIUM | modules/vector-sets/tests/filter_int.py | 528 | # Create a query vector |
| MEDIUM | modules/vector-sets/tests/filter_int.py | 618 | # Create a selective filter that matches ~2% of items |
| MEDIUM | modules/vector-sets/tests/dimension_max_limit.py | 86 | # Create a small index, then issue a VSIM with an over-limit dimension. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | modules/vector-sets/hnsw.c | 1372 | * So we need to check if this candidate is already linked to |
| LOW | modules/vector-sets/hnsw.c | 1702 | // Step 5: Pair nodes greedily based on scores. |
| LOW | src/lolwut8.c | 104 | // Step 1: Shuffle the verses randomly. |
| LOW | src/lolwut8.c | 107 | // Step 2: Build stanza by finding compatible verses |
| LOW | src/lolwut8.c | 151 | // Step 3: Combine all stanza verses into single SDS string. |
| LOW | src/lolwut8.c | 162 | // Step 4: Make uppercase, and strip the "/". |
| LOW | src/lolwut8.c | 168 | // Step 5: Add background info about what the user just saw. |
| LOW | src/t_stream.c | 4532 | /* We need to check if the minimum idle time requested |
| LOW | src/networking.c | 5320 | /* We need to check if the soft limit is reached continuously for the |
| LOW | src/server.c | 3272 | /* The purpose of this function is to try to "glue" consecutive range |
| LOW | src/acl.c | 2455 | /* If there are some subscribers, we need to check if we need to drop some clients. */ |
| LOW | src/script_lua.c | 610 | /* We need to check if it is an array, an error, or a status reply. |
| LOW | src/modules/hellotype.c | 177 | * called when the key we blocked for is ready: we need to check if we |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/array-bench.py | 217 | |
| LOW | tools/array-bench.py | 237 | |
| LOW | utils/req-res-log-validator.py | 195 | |
| LOW | utils/req-res-log-validator.py | 125 | |
| LOW | utils/generate-command-code.py | 252 | |
| LOW | utils/generate-command-code.py | 273 | |
| LOW | utils/generate-command-code.py | 274 | |
| LOW | modules/vector-sets/test.py | 175 | |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 13 | |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 31 | |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 63 | |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 82 | |
| LOW | modules/vector-sets/tests/replication.py | 14 | |
| LOW | modules/vector-sets/tests/deletion.py | 24 | |
| LOW | modules/vector-sets/tests/filter_int.py | 216 | |
| LOW | modules/vector-sets/examples/cli-tool/cli.py | 64 | |
| LOW | modules/vector-sets/examples/cli-tool/cli.py | 79 | |
| LOW | modules/vector-sets/examples/glove-100/recall.py | 37 | |
| LOW | modules/vector-sets/examples/glove-100/insert.py | 28 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | utils/generate-commands-json.py | 10 | def convert_flags_to_boolean_dict(flags): |
| LOW | utils/generate-commands-json.py | 35 | def convert_entry_to_objects_array(cmd, docs): |
| LOW | utils/generate-command-code.py | 50 | def check_command_args_key_specs(args, command_key_specs_index_set, command_arg_key_specs_index_set): |
| LOW | deps/jemalloc/scripts/gen_travis.py | 210 | def generate_unusual_combinations(unusuals, max_unusual_opts): |
| LOW | modules/vector-sets/tests/threading_config.py | 49 | def test_config_access_and_mutability(self): |
| LOW | modules/vector-sets/tests/threading_config.py | 108 | def test_vsim_without_nothread(self, force_single_threaded=False): |
| LOW | modules/vector-sets/tests/threading_config.py | 156 | def test_threading_mode_comparison(self): |
| LOW | modules/vector-sets/tests/threading_config.py | 180 | def test_nothread_override_behavior(self): |
| LOW | modules/vector-sets/tests/deletion.py | 24 | def format_neighbors_with_scores(self, links_result, old_links=None, items_to_remove=None): |
| LOW | modules/vector-sets/tests/filter_int.py | 83 | def create_vectors_with_attributes(self, key, count): |
| LOW | modules/vector-sets/tests/filter_int.py | 509 | def create_vector_with_age_attribute(self, name, age): |
| LOW | modules/vector-sets/examples/cli-tool/cli.py | 36 | def process_embedding_patterns(text): |
| LOW | modules/vector-sets/examples/cli-tool/cli.py | 44 | def replace_with_embedding_and_text(match): |
| LOW | src/server.c | 1183 | * the function clientsCronTrackExpansiveClients(). */ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | deps/jemalloc/scripts/gen_run_tests.py | 111 | \$@ >> run_test.log 2>&1 || abort |
| HIGH | deps/jemalloc/scripts/gen_run_tests.py | 119 | %(config_line)s >> run_test.log 2>&1 || abort |
| HIGH | deps/jemalloc/scripts/gen_travis.py | 44 | scripts/gen_travis.py > travis_script && diff .travis.yml travis_script |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | utils/generate-command-code.py | 91 | # Check if we have key_specs not used |
| LOW | utils/lru/test-lru.rb | 115 | # Check if evicted keys respect LRU |
| LOW | modules/vector-sets/test.py | 129 | # Check if replication is established |
| LOW | modules/vector-sets/test.py | 235 | # Check if Redis instances are empty |
| LOW | modules/vector-sets/test.py | 241 | # Check if replica is running |
| LOW | …ules/vector-sets/tests/concurrent_vadd_cas_del_vsim.py | 143 | # Check if Redis is still responsive |
| LOW | modules/vector-sets/tests/deletion.py | 46 | # Check if this neighbor was in the old links at this level |
| LOW | modules/vector-sets/tests/filter_int.py | 321 | # Check if results array handling could be wrong |
| LOW | src/module.c | 3635 | * #### Return value |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | utils/redis-copy.rb | 10 | # for the more-robust redis-copy gem. |
| MEDIUM | modules/vector-sets/tests/filter_int.py | 269 | # Build comprehensive debug message |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | deps/jemalloc/scripts/gen_travis.py | 4 | |
| LOW | modules/vector-sets/tests/vrand-ping-pong.py | 2 | |
| LOW | modules/vector-sets/tests/vrandmember.py | 1 | |
| LOW | modules/vector-sets/tests/vrandmember.py | 2 | |
| LOW | modules/vector-sets/tests/vadd_cas.py | 5 | |
| LOW | modules/vector-sets/tests/dimension_max_limit.py | 2 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/crc64.c | 274 | char li[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed " |
| LOW | src/crc64.c | 274 | char li[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed " |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | utils/redis-sha1.rb | 11 | # If you hack this code make sure to sort keys and set elements as this are |