redis-6.2.1 - scan-build results

User:netto@bella
Working Directory:/home/netto/Desktop/redis-6.2.1
Command Line:make
Clang Version:clang version 10.0.0-4ubuntu1
Date:Sun Mar 14 13:36:47 2021

Bug Summary

Bug TypeQuantityDisplay?
All Bugs203
API
Argument with 'nonnull' attribute passed null3
Dead store
Dead assignment22
Dead increment7
Dead initialization68
Dead nested assignment15
Logic error
Assigned value is garbage or undefined3
Branch condition evaluates to a garbage value6
Called function pointer is null (null dereference)1
Dereference of null pointer26
Dereference of undefined pointer value7
Division by zero1
Result of operation is garbage or undefined37
Uninitialized argument value5
Memory error
Memory leak2

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
APIArgument with 'nonnull' attribute passed nulldeps/lua/src/lua.chandle_script24516View Report
APIArgument with 'nonnull' attribute passed nullsrc/redis-cli.cclusterManagerGetAntiAffinityScore293953View Report
APIArgument with 'nonnull' attribute passed nulldeps/lua/src/lua.chandle_script24515View Report
Logic errorAssigned value is garbage or undefinedsrc/t_zset.czaddGenericCommand181559View Report
Logic errorAssigned value is garbage or undefineddeps/lua/src/lua_struct.ccorrectbytes20013View Report
Logic errorAssigned value is garbage or undefinedsrc/acl.cACLDescribeUserCommandRules52723View Report
Logic errorBranch condition evaluates to a garbage valuedeps/jemalloc/src/background_thread.ccheck_background_thread_creation39621View Report
Logic errorBranch condition evaluates to a garbage valuedeps/jemalloc/src/background_thread.cbackground_thread0_work46631View Report
Logic errorBranch condition evaluates to a garbage valuedeps/jemalloc/src/extent.cextent_record163190View Report
Logic errorBranch condition evaluates to a garbage valuedeps/jemalloc/src/background_thread.cbackground_thread0_work46631View Report
Logic errorBranch condition evaluates to a garbage valuedeps/jemalloc/src/background_thread.ccheck_background_thread_creation39621View Report
Logic errorBranch condition evaluates to a garbage valuedeps/jemalloc/src/extent.cextent_record163190View Report
Logic errorCalled function pointer is null (null dereference)src/quicklist.cquicklistNext115913View Report
Dead storeDead assignmentsrc/sort.csortCommand3201View Report
Dead storeDead assignmentdeps/jemalloc/include/jemalloc/internal/emitter.hemitter_gen_fmt1261View Report
Dead storeDead assignmentsrc/t_stream.cstreamValidateListpackIntegrity36011View Report
Dead storeDead assignmentdeps/jemalloc/src/arena.carena_reset9891View Report
Dead storeDead assignmentsrc/sha1.cSHA1Transform1081View Report
Dead storeDead assignmentdeps/jemalloc/include/jemalloc/internal/emitter.hemitter_gen_fmt1231View Report
Dead storeDead assignmentsrc/defrag.cactiveDefragCycle11271View Report
Dead storeDead assignmentdeps/jemalloc/include/jemalloc/internal/emitter.hemitter_gen_fmt1291View Report
Dead storeDead assignmentdeps/jemalloc/conftest.cmain981View Report
Dead storeDead assignmentdeps/jemalloc/include/jemalloc/internal/emitter.hemitter_gen_fmt1291View Report
Dead storeDead assignmentdeps/jemalloc/src/background_thread.cbackground_thread_sleep2341View Report
Dead storeDead assignmentdeps/jemalloc/src/background_thread.cbackground_thread_sleep2571View Report
Dead storeDead assignmentdeps/jemalloc/src/background_thread.cbackground_thread_sleep2571View Report
Dead storeDead assignmentsrc/networking.cwriteToClient15351View Report
Dead storeDead assignmentsrc/t_stream.cstreamValidateListpackIntegrity35981View Report
Dead storeDead assignmentdeps/jemalloc/include/jemalloc/internal/emitter.hemitter_gen_fmt1261View Report
Dead storeDead assignmentdeps/jemalloc/include/jemalloc/internal/emitter.hemitter_print_value1811View Report
Dead storeDead assignmentdeps/jemalloc/include/jemalloc/internal/emitter.hemitter_print_value1811View Report
Dead storeDead assignmentdeps/jemalloc/include/jemalloc/internal/emitter.hemitter_gen_fmt1231View Report
Dead storeDead assignmentdeps/jemalloc/src/arena.cje_arena_reset9891View Report
Dead storeDead assignmentdeps/jemalloc/src/background_thread.cbackground_thread_sleep2341View Report
Dead storeDead assignmentsrc/redis-cli.cclusterManagerNodeLoadInfo39911View Report
Dead storeDead incrementsrc/debug.cdebugCommand6031View Report
Dead storeDead incrementdeps/jemalloc/include/jemalloc/internal/log.hlog_impl_varargs991View Report
Dead storeDead incrementdeps/jemalloc/include/jemalloc/internal/log.hlog_impl_varargs991View Report
Dead storeDead incrementdeps/jemalloc/include/jemalloc/internal/log.hlog_impl_varargs991View Report
Dead storeDead incrementdeps/jemalloc/include/jemalloc/internal/log.hlog_impl_varargs991View Report
Dead storeDead incrementsrc/debug.cdebugCommand6041View Report
Dead storeDead incrementsrc/listpack.clpInsert7561View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/conftest.cmain921View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/conftest.cmain861View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/src/ctl.cprof_reset_ctl26141View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/src/extent.cextent_recycle_split10441View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/src/ctl.cprof_reset_ctl26141View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/src/tcache.cje_tcache_bin_flush_large2171View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/src/extent.cextents_remove_locked3481View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/src/extent.cextent_recycle_split10441View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/conftest.cmain961View Report
Dead storeDead initializationdeps/jemalloc/src/background_thread.cje_background_thread_postfork_child7681View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/src/tcache.ctcache_bin_flush_large2171View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/src/extent.cextents_remove_locked3481View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/include/jemalloc/internal/prof_inlines_b.hprof_free1961View Report
Dead storeDead initializationdeps/jemalloc/src/background_thread.cbackground_thread_postfork_child7681View Report
Dead storeDead nested assignmentdeps/hiredis/sds.chi_sdstrim6951View Report
Dead storeDead nested assignmentsrc/sha1.cSHA1Transform1081View Report
Dead storeDead nested assignmentsrc/sha1.cSHA1Transform1081View Report
Dead storeDead nested assignmentsrc/sha1.cSHA1Transform1081View Report
Dead storeDead nested assignmentsrc/redis-check-rdb.credis_check_rdb2621View Report
Dead storeDead nested assignmentsrc/sha1.cSHA1Transform1081View Report
Dead storeDead nested assignmentsrc/t_zset.czzlDeleteRangeByLex11351View Report
Dead storeDead nested assignmentsrc/redis-check-rdb.credis_check_rdb2601View Report
Dead storeDead nested assignmentsrc/redis-check-rdb.credis_check_rdb2871View Report
Dead storeDead nested assignmentdeps/hiredis/net.c_redisContextConnectTcp4251View Report
Dead storeDead nested assignmentdeps/jemalloc/src/stats.cstats_print_helper12041View Report
Dead storeDead nested assignmentsrc/sds.csdstrim7511View Report
Dead storeDead nested assignmentsrc/sentinel.csentinelHandleConfiguration19921View Report
Dead storeDead nested assignmentdeps/jemalloc/src/stats.cstats_print_helper12041View Report
Dead storeDead nested assignmentsrc/redis-check-rdb.credis_check_rdb2861View Report
Logic errorDereference of null pointersrc/redis-cli.cgetKeySizes747931View Report
Logic errorDereference of null pointersrc/quicklist.cquicklistPushTail51030View Report
Logic errorDereference of null pointersrc/quicklist.c_quicklistZiplistMerge72250View Report
Logic errorDereference of null pointerdeps/jemalloc/src/extent.cextent_try_coalesce1587115View Report
Logic errorDereference of null pointerdeps/jemalloc/src/extent.cextent_try_coalesce1587115View Report
Logic errorDereference of null pointerdeps/jemalloc/src/extent.cextent_try_coalesce157894View Report
Logic errorDereference of null pointerdeps/lua/src/lstrlib.cmin_expand32218View Report
Logic errorDereference of null pointerdeps/lua/src/lua_cjson.cjson_next_token10226View Report
Logic errorDereference of null pointersrc/t_stream.cstreamLookupConsumer227425View Report
Logic errorDereference of null pointerdeps/jemalloc/src/prof.ctctx_tree_remove17117View Report
Logic errorDereference of null pointersrc/config.crewriteConfigRewriteLine123840View Report
Logic errorDereference of null pointerdeps/lua/src/lparser.cbreakstat98617View Report
Logic errorDereference of null pointersrc/t_stream.cxgroupCommand243620View Report
Logic errorDereference of null pointerdeps/jemalloc/src/prof.cgctx_tree_remove18617View Report
Logic errorDereference of null pointersrc/redis-cli.cfindHotKeys774939View Report
Logic errorDereference of null pointerdeps/lua/src/strbuf.cstrbuf_init538View Report
Logic errorDereference of null pointerdeps/jemalloc/src/prof.ctdata_tree_remove20517View Report
Logic errorDereference of null pointerdeps/jemalloc/src/prof.cgctx_tree_remove18617View Report
Logic errorDereference of null pointerdeps/jemalloc/src/extent.cextent_try_coalesce155776View Report
Logic errorDereference of null pointerdeps/jemalloc/src/prof.ctctx_tree_remove17117View Report
Logic errorDereference of null pointerdeps/jemalloc/src/extent.cextent_try_coalesce157894View Report
Logic errorDereference of null pointerdeps/jemalloc/src/prof.ctdata_tree_remove20517View Report
Logic errorDereference of null pointersrc/dict.cdictGetRandomKey67219View Report
Logic errorDereference of null pointersrc/rax.craxGenericInsert89216View Report
Logic errorDereference of null pointerdeps/lua/src/strbuf.hstrbuf_ensure_null14210View Report
Logic errorDereference of null pointerdeps/jemalloc/src/extent.cextent_try_coalesce155776View Report
Logic errorDereference of undefined pointer valuedeps/jemalloc/src/prof.ctdata_tree_remove20526View Report
Logic errorDereference of undefined pointer valuesrc/t_zset.czslInsert16721View Report
Logic errorDereference of undefined pointer valuedeps/jemalloc/src/prof.cgctx_tree_remove18626View Report
Logic errorDereference of undefined pointer valuedeps/jemalloc/src/prof.ctdata_tree_remove20526View Report
Logic errorDereference of undefined pointer valuedeps/jemalloc/src/prof.ctctx_tree_remove17126View Report
Logic errorDereference of undefined pointer valuedeps/jemalloc/src/prof.cgctx_tree_remove18626View Report
Logic errorDereference of undefined pointer valuedeps/jemalloc/src/prof.ctctx_tree_remove17126View Report
Logic errorDivision by zerosrc/redis-cli.cclusterManagerNodeMasterRandom45554View Report
Memory errorMemory leakdeps/jemalloc/conftest.cmain1002View Report
Memory errorMemory leakdeps/jemalloc/conftest.cmain234View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/extent.cextent_grow_retained132259View Report
Logic errorResult of operation is garbage or undefinedsrc/anet.canetFdToString6248View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctdata_tree_remove20538View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctctx_tree_remove17138View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctdata_tree_remove2056View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/include/jemalloc/internal/extent_inlines.hextent_arena_set18341View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctctx_tree_remove1716View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/extent.cextent_recycle_split104037View Report
Logic errorResult of operation is garbage or undefineddeps/lua/src/lua_bit.cbit_rol1171View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctctx_tree_remove17146View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.cgctx_tree_remove1866View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/extent.cextent_grow_retained132259View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctctx_tree_remove17146View Report
Logic errorResult of operation is garbage or undefineddeps/lua/src/lparser.cexprstat122916View Report
Logic errorResult of operation is garbage or undefineddeps/lua/src/lua_bit.cbit_ror1181View Report
Logic errorResult of operation is garbage or undefinedsrc/t_stream.cstreamCompareID38419View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.cgctx_tree_remove18646View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.cgctx_tree_remove18638View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctdata_tree_remove20546View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.cgctx_tree_remove1866View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/ctl.cctl_refresh94219View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctctx_tree_remove1716View Report
Logic errorResult of operation is garbage or undefinedsrc/t_zset.czslInsert18023View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/extent.cextent_recycle_split104037View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/include/jemalloc/internal/extent_inlines.hextent_arena_set18341View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/include/jemalloc/internal/extent_inlines.hextent_arena_set18318View Report
Logic errorResult of operation is garbage or undefinedsrc/t_stream.cstreamCompareID38428View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctdata_tree_remove20538View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctctx_tree_remove17138View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.cgctx_tree_remove18638View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/ctl.cctl_refresh94219View Report
Logic errorResult of operation is garbage or undefinedsrc/bitops.ccheckUnsignedBitfieldOverflow31612View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctdata_tree_remove2056View Report
Logic errorResult of operation is garbage or undefineddeps/lua/src/lua_struct.cgetinteger28512View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.ctdata_tree_remove20546View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/include/jemalloc/internal/extent_inlines.hextent_arena_set18318View Report
Logic errorResult of operation is garbage or undefineddeps/jemalloc/src/prof.cgctx_tree_remove18646View Report
Logic errorUninitialized argument valuedeps/lua/src/lua_struct.cb_unpack32711View Report
Logic errorUninitialized argument valuedeps/lua/src/lua_struct.cb_unpack33411View Report
Logic errorUninitialized argument valuedeps/lua/src/lua_cjson.cjson_process_value123218View Report
Logic errorUninitialized argument valuedeps/lua/src/lua_cjson.cjson_process_value123518View Report
Logic errorUninitialized argument valuedeps/lua/src/lua_cjson.cjson_process_value122918View Report