Open vashirov opened 6 years ago
Thanks! Only the pages.c one looks like a false positive, the rest could use fixing (although they mostly look harmless)
jemalloc-5.1.0/src/background_thread.c:
is harmless as n_search is only used inside assert. Although it will be a good idea to move it out of assert to prevent future bugs.
jemalloc-5.1.0/src/pages.c:init_thp_state
fixed. https://github.com/jemalloc/jemalloc/commit/856319dc8a3d15c3eddf83d106e01e6f63c349a7
We use jemalloc in our project and run Coverity on a regular basis. It reported some issues in jemalloc code, I'm not sure if they are false positives or not, so please take a look.
jemalloc-5.1.0/src/arena.c:
jemalloc-5.1.0/src/background_thread.c:
jemalloc-5.1.0/src/jemalloc.c:
jemalloc-5.1.0/src/pages.c: