lmdb-0.9.33-1.fc41
List of Defects
Error: CLANG_WARNING: [#def1]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:2830:31: warning[unix.Malloc]: Use of memory after it is freed
# 2828| txn->mt_dirty_room = MDB_IDL_UM_MAX;
# 2829| txn->mt_u.dirty_list = env->me_dirty_list;
# 2830|-> txn->mt_u.dirty_list[0].mid = 0;
# 2831| txn->mt_free_pgs = env->me_free_pgs;
# 2832| txn->mt_free_pgs[0] = 0;
Error: CLANG_WARNING: [#def2]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:3172:19: warning[unix.Malloc]: Use of memory after it is freed
# 3170| if ((rc = mdb_midl_need(&txn->mt_free_pgs, txn->mt_loose_count)) != 0)
# 3171| return rc;
# 3172|-> for (; mp; mp = NEXT_LOOSE_PAGE(mp)) {
# 3173| mdb_midl_xappend(txn->mt_free_pgs, mp->mp_pgno);
# 3174| /* must also remove from dirty list */
Error: CLANG_WARNING: [#def3]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:4488:17: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 4486| meta.mm_mapsize = DEFAULT_MAPSIZE;
# 4487| } else {
# 4488|-> env->me_psize = meta.mm_psize;
# 4489| }
# 4490|
Error: CLANG_WARNING: [#def4]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:6005:16: warning[core.NullDereference]: Access to field 'mv_size' results in a dereference of a null pointer (loaded from variable 'key')
# 6003|
# 6004| if (IS_LEAF2(mp)) {
# 6005|-> key->mv_size = mc->mc_db->md_pad;
# 6006| key->mv_data = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], key->mv_size);
# 6007| return MDB_SUCCESS;
Error: CLANG_WARNING: [#def5]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:6088:16: warning[core.NullDereference]: Access to field 'mv_size' results in a dereference of a null pointer (loaded from variable 'key')
# 6086|
# 6087| if (IS_LEAF2(mp)) {
# 6088|-> key->mv_size = mc->mc_db->md_pad;
# 6089| key->mv_data = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], key->mv_size);
# 6090| return MDB_SUCCESS;
Error: CLANG_WARNING: [#def6]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:6256:6: warning[core.NullDereference]: Access to field 'mn_flags' results in a dereference of a null pointer (loaded from variable 'leaf')
# 6254| }
# 6255|
# 6256|-> if (F_ISSET(leaf->mn_flags, F_DUPDATA)) {
# 6257| mdb_xcursor_init1(mc, leaf);
# 6258| if (op == MDB_SET || op == MDB_SET_KEY || op == MDB_SET_RANGE) {
Error: CLANG_WARNING: [#def7]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:7613:27: warning[core.NullDereference]: Dereference of null pointer
# 7611| MDB_xcursor *mx = mc->mc_xcursor;
# 7612|
# 7613|-> mx->mx_cursor.mc_xcursor = NULL;
# 7614| mx->mx_cursor.mc_txn = mc->mc_txn;
# 7615| mx->mx_cursor.mc_db = &mx->mx_db;
Error: CLANG_WARNING: [#def8]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:7641:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 7639|
# 7640| if (node->mn_flags & F_SUBDATA) {
# 7641|-> memcpy(&mx->mx_db, NODEDATA(node), sizeof(MDB_db));
# 7642| mx->mx_cursor.mc_pg[0] = 0;
# 7643| mx->mx_cursor.mc_snum = 0;
Error: CLANG_WARNING: [#def9]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:7648:20: warning[core.NullDereference]: Dereference of null pointer
# 7646| } else {
# 7647| MDB_page *fp = NODEDATA(node);
# 7648|-> mx->mx_db.md_pad = 0;
# 7649| mx->mx_db.md_flags = 0;
# 7650| mx->mx_db.md_depth = 1;
Error: CLANG_WARNING: [#def10]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:8192:2: warning[deadcode.DeadStores]: Value stored to 'pdst' is never read
# 8190|
# 8191| psrc = csrc->mc_pg[csrc->mc_top];
# 8192|-> pdst = cdst->mc_pg[cdst->mc_top];
# 8193|
# 8194| DPRINTF(("merging page %"Z"u into %"Z"u", psrc->mp_pgno, pdst->mp_pgno));
Error: CLANG_WARNING: [#def11]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:8993:38: warning[core.NullDereference]: Array access (via field 'mp_ptrs') results in a null pointer dereference
# 8991| mc->mc_ki[mc->mc_top] = j;
# 8992| } else {
# 8993|-> node = (MDB_node *)((char *)mp + copy->mp_ptrs[i] + PAGEBASE);
# 8994| rkey.mv_data = NODEKEY(node);
# 8995| rkey.mv_size = node->mn_ksize;
Error: CLANG_WARNING: [#def12]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb.c:9023:11: warning[core.NullDereference]: Access to field 'mp2_lower' results in a dereference of a null pointer (loaded from variable 'copy')
# 9021| } while (i != split_indx);
# 9022|
# 9023|-> nkeys = NUMKEYS(copy);
# 9024| for (i=0; i<nkeys; i++)
# 9025| mp->mp_ptrs[i] = copy->mp_ptrs[i];
Error: CPPCHECK_WARNING: [#def13]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_dump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def14]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_dump.c:299:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'str'
# 297| if (rc) continue;
# 298| }
# 299|-> mdb_cursor_close(cursor);
# 300| if (!count) {
# 301| fprintf(stderr, "%s: %s does not contain multiple databases\n", prog, envname);
Error: CPPCHECK_WARNING: [#def15]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_load.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_load.c: scope_hint: In function ‘readhdr’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_load.c:75:22: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dbuf.mv_data’ where non-null expected
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_load.c:17: included_from: Included from here.
/usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null
# 73| while (fgets(dbuf.mv_data, dbuf.mv_size, stdin) != NULL) {
# 74| lineno++;
# 75|-> if (!strncmp(dbuf.mv_data, "VERSION=", STRLENOF("VERSION="))) {
# 76| version=atoi((char *)dbuf.mv_data+STRLENOF("VERSION="));
# 77| if (version > 3) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_load.c:215:30: warning[-Wanalyzer-malloc-leak]: leak of ‘dbuf.mv_data’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/lmdb.h:1056:63: note: in definition of macro ‘mdb_open’
# 213| /* Is buffer too short? */
# 214| while (c1[len-1] != '\n') {
# 215|-> buf->mv_data = realloc(buf->mv_data, buf->mv_size*2);
# 216| if (!buf->mv_data) {
# 217| Eof = 1;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_load.c: scope_hint: In function ‘readline’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_load.c:215:30: warning[-Wanalyzer-malloc-leak]: leak of ‘kbuf.mv_data’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_load.c:20: included_from: Included from here.
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/lmdb.h:1056:63: note: in definition of macro ‘mdb_open’
# 213| /* Is buffer too short? */
# 214| while (c1[len-1] != '\n') {
# 215|-> buf->mv_data = realloc(buf->mv_data, buf->mv_size*2);
# 216| if (!buf->mv_data) {
# 217| Eof = 1;
Error: GCC_ANALYZER_WARNING (CWE-465): [#def19]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_load.c:216:20: warning[-Wanalyzer-deref-before-check]: check of ‘kbuf.mv_data’ for NULL after already dereferencing it
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/lmdb.h:1056:63: note: in definition of macro ‘mdb_open’
# 214| while (c1[len-1] != '\n') {
# 215| buf->mv_data = realloc(buf->mv_data, buf->mv_size*2);
# 216|-> if (!buf->mv_data) {
# 217| Eof = 1;
# 218| fprintf(stderr, "%s: line %" Z "d: out of memory, line too long\n",
Error: CLANG_WARNING: [#def20]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_load.c:493:2: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 491|
# 492| txn_abort:
# 493|-> mdb_txn_abort(txn);
# 494| env_close:
# 495| mdb_env_close(env);
Error: CPPCHECK_WARNING: [#def21]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_stat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def22]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mdb_stat.c:174:11: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
# 172| }
# 173| prstat(&mst);
# 174|-> while ((rc = mdb_cursor_get(cursor, &key, &data, MDB_NEXT)) == 0) {
# 175| iptr = data.mv_data;
# 176| pages += *iptr;
Error: CPPCHECK_WARNING: [#def23]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/midl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def24]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/midl.c:135: error[memleakOnRealloc]: Common realloc mistake: 'idn' nulled but not freed upon failure
# 133| MDB_IDL idn = *idp-1;
# 134| /* grow it */
# 135|-> idn = realloc(idn, (*idn + num + 2) * sizeof(MDB_ID));
# 136| if (!idn)
# 137| return ENOMEM;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/midl.c: scope_hint: In function ‘mdb_midl_append’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/midl.c:167:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 165| }
# 166| ids[0]++;
# 167|-> ids[ids[0]] = id;
# 168| return 0;
# 169| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/midl.c: scope_hint: In function ‘mdb_midl_append_list’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/midl.c:181:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 179| }
# 180| memcpy(&ids[ids[0]+1], &app[1], app[0] * sizeof(MDB_ID));
# 181|-> ids[0] += app[0];
# 182| return 0;
# 183| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/midl.c: scope_hint: In function ‘mdb_midl_append_range’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/midl.c:196:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 194| ids[0] = len + n;
# 195| ids += len;
# 196|-> while (n)
# 197| ids[n--] = id++;
# 198| return 0;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c: scope_hint: In function ‘main’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:44:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘values’
# 42|
# 43| for(i = 0;i<count;i++) {
# 44|-> values[i] = rand()%1024;
# 45| }
# 46|
Error: GCC_ANALYZER_WARNING (CWE-457): [#def29]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:91:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:21:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:47:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:47:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:21:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:48:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:48:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:21:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:49:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:49:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:21:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:50:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:50:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:21:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:52:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:52:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:21:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:53:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:53:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:21:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:71:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:71:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:21:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:72:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:72:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:21:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:74:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:74:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:21:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:75:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:75:17: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:81:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:19:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest.c:90:25: note: in expansion of macro ‘E’
# 89| txn=NULL;
# 90| E(mdb_txn_begin(env, NULL, 0, &txn));
# 91|-> sprintf(sval, "%03x ", values[i]);
# 92| if (RES(MDB_NOTFOUND, mdb_del(txn, dbi, &key, NULL))) {
# 93| j--;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c: scope_hint: In function ‘main’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:46:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘values’
# 44|
# 45| for(i = 0;i<count;i++) {
# 46|-> values[i] = rand()%1024;
# 47| }
# 48|
Error: GCC_ANALYZER_WARNING (CWE-457): [#def31]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:90:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:49:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:49:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:50:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:50:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:51:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:51:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:52:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:52:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:53:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:53:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:55:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:55:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:56:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:56:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:70:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:70:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:71:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:71:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:73:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:73:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:74:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:74:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:80:9: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest2.c:89:17: note: in expansion of macro ‘E’
# 88| txn=NULL;
# 89| E(mdb_txn_begin(env, NULL, 0, &txn));
# 90|-> sprintf(sval, "%03x ", values[i]);
# 91| if (RES(MDB_NOTFOUND, mdb_del(txn, dbi, &key, NULL))) {
# 92| j--;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c: scope_hint: In function ‘main’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:49:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘values’
# 47|
# 48| for(i = 0;i<count;i++) {
# 49|-> values[i] = rand()%1024;
# 50| }
# 51|
Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:94:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:52:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:52:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:53:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:53:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:54:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:54:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:55:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:55:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:57:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:57:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:58:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:58:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:74:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:74:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:75:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:75:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:77:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:77:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:78:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:78:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:84:9: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest3.c:93:17: note: in expansion of macro ‘E’
# 92| txn=NULL;
# 93| E(mdb_txn_begin(env, NULL, 0, &txn));
# 94|-> sprintf(kval, "%03x", values[i & ~0x0f]);
# 95| sprintf(sval, "%03x %d foo bar", values[i], values[i]);
# 96| key.mv_size = sizeof(int);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest4.c: scope_hint: In function ‘main’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest4.c:47:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘values’
# 45|
# 46| for(i = 0;i<count;i++) {
# 47|-> values[i] = i*5;
# 48| }
# 49|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c: scope_hint: In function ‘main’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:49:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘values’
# 47|
# 48| for(i = 0;i<count;i++) {
# 49|-> values[i] = rand()%1024;
# 50| }
# 51|
Error: GCC_ANALYZER_WARNING (CWE-457): [#def36]
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:96:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:52:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:52:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:53:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:53:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:54:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:54:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:55:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:55:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:57:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:57:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:58:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:58:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:59:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:59:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:76:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:77:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:77:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:79:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:79:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:24:28: note: in definition of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:80:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:80:9: note: in expansion of macro ‘E’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:86:9: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:22:17: note: in expansion of macro ‘CHECK’
lmdb-0.9.33-build/openldap-LMDB_0.9.33/libraries/liblmdb/mtest5.c:95:17: note: in expansion of macro ‘E’
# 94| txn=NULL;
# 95| E(mdb_txn_begin(env, NULL, 0, &txn));
# 96|-> sprintf(kval, "%03x", values[i & ~0x0f]);
# 97| sprintf(sval, "%03x %d foo bar", values[i], values[i]);
# 98| key.mv_size = sizeof(int);
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-204.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | lmdb-0.9.33-1.fc41 |
store-results-to | /tmp/tmp9vmhmflq/lmdb-0.9.33-1.fc41.tar.xz |
time-created | 2024-07-03 16:09:56 |
time-finished | 2024-07-03 16:11:23 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp9vmhmflq/lmdb-0.9.33-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp9vmhmflq/lmdb-0.9.33-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |