Task #52652 - fixed.err
back to task #52652download
Error: GCC_ANALYZER_WARNING (CWE-476):
xfsprogs-6.12.0/libxfs/xfs_ag_resv.c:140:52: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.12.0/libxfs/xfs_ag_resv.c:129:1: enter_function: entry to '__xfs_ag_resv_free'
xfsprogs-6.12.0/libxfs/xfs_ag_resv.c:138:16: call_function: inlined call to 'xfs_perag_resv' from '__xfs_ag_resv_free'
xfsprogs-6.12.0/libxfs/xfs_ag_resv.c:139:12: branch_true: following 'true' branch...
xfsprogs-6.12.0/libxfs/xfs_ag_resv.c:140:17: branch_true: ...to here
xfsprogs-6.12.0/libxfs/xfs_ag_resv.c:140:52: danger: dereference of NULL '<unknown>'
# 138| resv = xfs_perag_resv(pag, type);
# 139| if (pag->pag_agno == 0)
# 140|-> pag->pag_mount->m_ag_max_usable += resv->ar_asked;
# 141| /*
# 142| * RMAPBT blocks come from the AGFL and AGFL blocks are always
Error: GCC_ANALYZER_WARNING (CWE-476):
xfsprogs-6.12.0/libxfs/xfs_dir2_leaf.c:1341:57: warning[-Wanalyzer-null-dereference]: dereference of NULL 'dbp'
xfsprogs-6.12.0/libxfs/xfs_dir2_leaf.c:1396:1: enter_function: entry to 'xfs_dir2_leaf_removename'
xfsprogs-6.12.0/libxfs/xfs_dir2_leaf.c:1424:17: call_function: calling 'xfs_dir2_leaf_lookup_int' from 'xfs_dir2_leaf_removename'
# 1339| * Point to the data entry.
# 1340| */
# 1341|-> dep = (xfs_dir2_data_entry_t *)((char *)dbp->b_addr +
# 1342| xfs_dir2_dataptr_to_off(args->geo,
# 1343| be32_to_cpu(lep->address)));
Error: GCC_ANALYZER_WARNING (CWE-476):
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:409:21: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:399:12: branch_false: following 'false' branch (when 'rec_diff != 0')...
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:403:15: branch_false: ...to here
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:404:12: branch_true: following 'true' branch (when 'rec_diff > 0')...
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:409:21: branch_true: ...to here
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:409:21: danger: dereference of NULL 'xfs_ifork_ptr(ip, whichfork)'
# 407| * allocate it now and get out.
# 408| */
# 409|-> if (ifp->if_broot_bytes == 0) {
# 410| new_size = xfs_bmap_broot_space_calc(mp, rec_diff);
# 411| ifp->if_broot = kmalloc(new_size,
Error: GCC_ANALYZER_WARNING (CWE-476):
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:445:40: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:399:12: branch_false: following 'false' branch (when 'rec_diff != 0')...
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:403:15: branch_false: ...to here
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:404:12: branch_false: following 'false' branch (when 'rec_diff <= 0')...
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:445:40: branch_false: ...to here
xfsprogs-6.12.0/libxfs/xfs_inode_fork.c:445:40: danger: dereference of NULL 'xfs_ifork_ptr(ip, whichfork)'
# 443| */
# 444| ASSERT((ifp->if_broot != NULL) && (ifp->if_broot_bytes > 0));
# 445|-> cur_max = xfs_bmbt_maxrecs(mp, ifp->if_broot_bytes, false);
# 446| new_max = cur_max + rec_diff;
# 447| ASSERT(new_max >= 0);
Error: GCC_ANALYZER_WARNING (CWE-476):
xfsprogs-6.12.0/logprint/log_misc.c:144:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘item’
xfsprogs-6.12.0/logprint/log_misc.c:1338:6: enter_function: entry to ‘xfs_log_print’
xfsprogs-6.12.0/logprint/log_misc.c:1361:8: branch_false: following ‘false’ branch...
xfsprogs-6.12.0/logprint/log_misc.c:1365:8: branch_false: ...to here
xfsprogs-6.12.0/logprint/log_misc.c:1369:5: call_function: calling ‘xlog_print_lseek’ from ‘xfs_log_print’
xfsprogs-6.12.0/logprint/log_misc.c:1369:5: return_function: returning to ‘xfs_log_print’ from ‘xlog_print_lseek’
xfsprogs-6.12.0/logprint/log_misc.c:1373:12: branch_false: following ‘false’ branch...
xfsprogs-6.12.0/logprint/log_misc.c:1378:13: branch_false: ...to here
xfsprogs-6.12.0/logprint/log_misc.c:1387:12: branch_false: following ‘false’ branch...
xfsprogs-6.12.0/logprint/log_misc.c:1397:13: branch_false: ...to here
xfsprogs-6.12.0/logprint/log_misc.c:1424:17: call_function: calling ‘xlog_print_record’ from ‘xfs_log_print’
# 142|
# 143| item = (xlog_split_item_t *)calloc(sizeof(xlog_split_item_t), 1);
# 144|-> item->si_xtid = tid;
# 145| item->si_skip = skip;
# 146| item->si_next = split_list;
Error: GCC_ANALYZER_WARNING (CWE-476):
xfsprogs-6.12.0/mkfs/proto.c:512:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘name’
xfsprogs-6.12.0/mkfs/proto.c:741:1: enter_function: entry to ‘parse_proto’
xfsprogs-6.12.0/mkfs/proto.c:748:9: call_function: calling ‘parseproto’ from ‘parse_proto’
# 510| memset(&creds, 0, sizeof(creds));
# 511| mstr = getstr(pp);
# 512|-> switch (mstr[0]) {
# 513| case '-':
# 514| fmt = IF_REGULAR;
Error: GCC_ANALYZER_WARNING (CWE-401):
xfsprogs-6.12.0/repair/phase6.c:317:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dir_hash_init(*ip.i_disk_size)’
xfsprogs-6.12.0/repair/phase6.c:3065:1: enter_function: entry to ‘phase6’
xfsprogs-6.12.0/repair/phase6.c:3147:9: call_function: calling ‘update_missing_dotdot_entries’ from ‘phase6’
# 315| int hsize;
# 316|
# 317|-> hsize = size / 64;
# 318| if (hsize < 16)
# 319| hsize = 16;