Error: ARRAY_VS_SINGLETON: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:72: cond_false: Condition "delta < 256", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:73: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:77: cond_false: Condition "mask == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:78: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:80: address_of: Taking address with "&mask" yields a singleton pointer. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:80: callee_ptr_arith: Passing "&mask" to function "gf_tw_find_last_bit" which uses it as an array. This might corrupt or misinterpret adjacent memory locations. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:65:2: cond_true: Condition "size & 63UL /* 64 - 1 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:66:3: ptr_arith: Performing pointer arithmetic on "addr" in expression "addr + words". Error: ARRAY_VS_SINGLETON: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-reborp.c:247: cond_true: Condition "1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-reborp.c:251: address_of: Taking address with "&vec" yields a singleton pointer. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-reborp.c:251: callee_ptr_arith: Passing "&vec" to function "gf_changelog_invoke_callback" which uses it as an array. This might corrupt or misinterpret adjacent memory locations. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-reborp.c:167:9: cond_true: Condition "i < payloadcnt", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-reborp.c:168:17: ptr_arith: Performing pointer arithmetic on "vec" in expression "vec + i". Error: ATOMICITY: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:540: cond_false: Condition "use_spinlocks", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:540: lock: Locking "&slot->lock.mutex". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:542: def: Assigning data that might be protected by the lock to "fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:543: cond_false: Condition "fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:550: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:552: cond_false: Condition "gen != slot->gen", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:559: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:567: cond_false: Condition "use_spinlocks", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:567: unlock: Unlocking "&slot->lock.mutex". "fd" might now be unreliable because other threads can now change the data that it depends on. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:569: cond_false: Condition "!handler", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:570: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:577: cond_false: Condition "use_spinlocks", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:581: cond_false: Condition "gen != slot->gen", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:590: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:596: cond_true: Condition "slot->in_handler == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:577: lockagain: Locking "&slot->lock.mutex" again. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:598: use: Using an unreliable value of "fd" inside the second locked section. If the data that "fd" depends on was changed by another thread, this use might be incorrect. Error: ATOMICITY: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:540: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:540: lock: Locking "&slot->lock.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:542: def: Assigning data that might be protected by the lock to "fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:543: cond_false: Condition "fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:550: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:552: cond_false: Condition "gen != slot->gen", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:559: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:567: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:567: unlock: Unlocking "&slot->lock.spinlock". "fd" might now be unreliable because other threads can now change the data that it depends on. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:569: cond_false: Condition "!handler", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:570: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:577: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:581: cond_false: Condition "gen != slot->gen", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:590: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:596: cond_true: Condition "slot->in_handler == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:577: lockagain: Locking "&slot->lock.spinlock" again. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:598: use: Using an unreliable value of "fd" inside the second locked section. If the data that "fd" depends on was changed by another thread, this use might be incorrect. Error: ATOMICITY: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:944: cond_true: Condition "table->page_size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:945: cond_true: Condition "table->page_size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:960: cond_true: Condition "trav_offset < rounded_end", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:961: lock: Locking "&ioc_inode->inode_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:964: def: Assigning data that might be protected by the lock to "trav". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:966: cond_true: Condition "trav_offset > offset", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:967: cond_true: Condition "offset + size - local_offset < table->page_size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:970: cond_false: Condition "!trav", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:987: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:992: cond_true: Condition "trav->ready", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:994: cond_false: Condition "!might_need_validate", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1005: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1010: cond_true: Condition "!ioc_inode->waitq", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1016: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1028: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1033: unlock: Unlocking "&ioc_inode->inode_lock". "trav" might now be unreliable because other threads can now change the data that it depends on. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1038: cond_false: Condition "fault", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1042: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1044: cond_true: Condition "need_validate", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1051: cond_true: Condition "ret == -1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1052: lockagain: Locking "&ioc_inode->inode_lock" again. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1054: use: Using an unreliable value of "trav" inside the second locked section. If the data that "trav" depends on was changed by another thread, this use might be incorrect. Error: BAD_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3123: cond_true: Condition "ent != &qpreg->ents[hash]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3123: cond_true: Condition "ent->qp_num != qp_num", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3124: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3123: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3123: cond_false: Condition "ent != &qpreg->ents[hash]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3124: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3123: address_compare: Comparison implies that pointer "ent" points to "qpreg->ents[hash]". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3125: cond_false: Condition "ent->qp_num != qp_num", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3128: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3132: incorrect_free: "__gf_free" frees incorrect pointer "ent". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". Error: BAD_SHIFT: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:653: cond_true: Condition "ec_child_select(fop)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:659: cond_true: Condition "count-- > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:663: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:659: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:659: cond_true: Condition "count-- > 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:661: return_constant: Function call "ec_child_next(ec, fop, idx + 1)" returns -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:661: assignment: Assigning: "idx" = "ec_child_next(ec, fop, idx + 1)". The value of "idx" is now -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:662: negative_shift: In expression "1ULL << idx", shifting by a negative amount has undefined behavior. The shift amount, "idx", is -1. Error: BAD_SHIFT: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3077: cond_false: Condition "NULL == ipdupstr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3081: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3083: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3083: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3083: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3088: cond_true: Condition "!valid_ipv4_address(ip, (int)length, _gf_false)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3088: cond_false: Condition "!valid_host_name(ip, (int)length)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3093: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3096: cond_false: Condition "NULL == hostspec->host_addr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3100: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3117: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3117: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3117: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3118: cond_true: Condition "token != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3119: zero_return: Function call "strtol(token, &endptr, 10)" returns 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3119: assignment: Assigning: "prefixlen" = "strtol(token, &endptr, 10)". The value of "prefixlen" is now 0. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3120: cond_false: Condition "*__errno_location() != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3120: cond_false: Condition "*endptr != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3120: cond_false: Condition "prefixlen < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3120: cond_false: Condition "prefixlen > 32", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3126: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3134: assignment: Assigning: "shiftbits" = "32L - prefixlen". The value of "shiftbits" is now 32. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3135: large_shift: In expression "0xffffffffU << shiftbits", left shifting by more than 31 bits has undefined behavior. The shift amount, "shiftbits", is 32. Error: BAD_SHIFT: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2702: cond_false: Condition "netaddr == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2703: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2706: cond_false: Condition "inet_pton(2, ipaddr, &sin1.sin_addr) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2707: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2712: cond_false: Condition "inet_pton(2, netaddr, &sin2.sin_addr) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2713: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2720: zero_return: Function call "atoi(slash + 1)" returns 0. [Note: The source code implementation of the function has been overridden by a builtin model.] /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2720: assignment: Assigning: "prefixlen" = "(uint32_t)atoi(slash + 1)". The value of "prefixlen" is now 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2721: assignment: Assigning: "shift" = "32U - prefixlen". The value of "shift" is now 32. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2722: large_shift: In expression "0xffffffffU << shift", left shifting by more than 31 bits has undefined behavior. The shift amount, "shift", is 32. Error: BAD_SHIFT: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:72: cond_false: Condition "delta < 256", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:73: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:77: cond_false: Condition "mask == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:78: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:80: identity_transfer: Passing "64UL" as argument 2 to function "gf_tw_find_last_bit", which returns that argument. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:65:2: cond_true: Condition "size & 63UL /* 64 - 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:68:3: cond_false: Condition "tmp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:69:4: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:72:2: cond_true: Condition "words", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:74:3: cond_false: Condition "tmp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:77:3: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:78:2: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:72:2: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:72:2: cond_false: Condition "words", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:78:2: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/find_last_bit.c:81:2: return_parm: Returning parameter "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:80: assignment: Assigning: "bit" = "gf_tw_find_last_bit(&mask, 64UL)". The value of "bit" is now 64. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:81: large_shift: In expression "1UL << bit", left shifting by more than 63 bits has undefined behavior. The shift amount, "bit", is 64. Error: BUFFER_SIZE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3671: cond_false: Condition "!volinfo->dist_leaf_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3672: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3674: cond_true: Condition "volinfo->dist_leaf_count == 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3675: goto: Jumping to label "build_distribute". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3733: label: Reached label "build_distribute". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3735: cond_false: Condition "!dist_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3738: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3739: cond_true: Condition "volinfo->tier_info.hot_brick_count", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3740: buffer_size: You might overrun the 256 byte destination string "tmp_volname" by writing the maximum 260 bytes from "volinfo->volname". Error: BUFFER_SIZE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4424: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4424: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4426: cond_true: Condition "!this->private", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4427: cond_false: Condition "!volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4427: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4428: cond_true: Condition "!conf_path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4433: cond_false: Condition "!confd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4437: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4445: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4450: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4466: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4475: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4493: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4497: cond_true: Condition "ret <= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4507: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4510: cond_true: Condition "&brickinfo->brick_list != &volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4511: cond_false: Condition "gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4512: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4516: cond_false: Condition "!sts_val", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4521: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4525: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4528: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4542: buffer_size: You might overrun the 255 byte destination string "sts_val->brick" by writing the maximum 4095 bytes from "brickinfo->path". Error: BUFFER_SIZE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4424: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4424: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4426: cond_true: Condition "!this->private", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4427: cond_false: Condition "!volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4427: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4428: cond_true: Condition "!conf_path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4433: cond_false: Condition "!confd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4437: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4445: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4450: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4466: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4475: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4493: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4497: cond_true: Condition "ret <= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4507: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4510: cond_true: Condition "&brickinfo->brick_list != &volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4511: cond_false: Condition "gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4512: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4516: cond_false: Condition "!sts_val", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4521: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4525: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4528: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4533: buffer_size: You might overrun the 255 byte destination string "sts_val->master" by writing the maximum 260 bytes from "master". Error: BUFFER_SIZE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4424: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4424: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4426: cond_true: Condition "!this->private", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4427: cond_false: Condition "!volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4427: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4428: cond_true: Condition "!conf_path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4433: cond_false: Condition "!confd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4437: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4445: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4450: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4466: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4475: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4493: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4497: cond_true: Condition "ret <= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4507: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4510: cond_true: Condition "&brickinfo->brick_list != &volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4511: cond_false: Condition "gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4512: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4516: cond_false: Condition "!sts_val", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4521: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4525: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4528: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4537: buffer_size: You might overrun the 255 byte destination string "sts_val->node" by writing the maximum 1023 bytes from "brickinfo->hostname". Error: BUFFER_SIZE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2873: cond_false: Condition "!path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2873: cond_false: Condition "*path != '/'", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2874: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2876: cond_false: Condition "!strcmp(path, "/")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2877: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2880: cond_false: Condition "!tmppath", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2881: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2886: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2886: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2886: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2888: cond_true: Condition "dir", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2892: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2892: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2892: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2893: cond_true: Condition "dir", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2894: buffer_size: Calling strncpy with a source string whose length (1 chars) is greater than or equal to the size argument (1) will fail to null-terminate "path + path_len". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2895: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2888: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2888: cond_true: Condition "dir", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2892: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2892: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2892: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2893: cond_false: Condition "dir", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2894: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2895: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2888: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2888: cond_false: Condition "dir", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2895: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2900: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2901: if_end: End of if statement. Error: BUFFER_SIZE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3113: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3114: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3116: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3116: cond_false: Condition "this->children->next", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3120: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3121: cond_true: Condition "!this->parents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3122: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3122: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3127: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3131: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3139: cond_true: Condition "i < GF_FOP_MAXVALUE", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3140: cond_true: Condition "gf_fop_list[i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3141: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3145: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3148: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3139: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3139: cond_true: Condition "i < GF_FOP_MAXVALUE", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3140: cond_true: Condition "gf_fop_list[i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3141: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3145: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3148: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3139: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3139: cond_true: Condition "i < GF_FOP_MAXVALUE", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3140: cond_false: Condition "gf_fop_list[i]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3145: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3145: buffer_size: Calling strncpy with a source string whose length (2 chars) is greater than or equal to the size argument (2) will fail to null-terminate "trace_fop_names[i].name". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3148: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3139: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3139: cond_false: Condition "i < GF_FOP_MAXVALUE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3148: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3151: cond_true: Condition "includes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3151: cond_true: Condition "excludes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3152: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3152: if_end: End of if statement. Error: BUFFER_SIZE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3052: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3052: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3053: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3053: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3054: cond_false: Condition "!options", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3054: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3063: cond_true: Condition "i < GF_FOP_MAXVALUE", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3064: cond_true: Condition "gf_fop_list[i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3065: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3069: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3072: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3063: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3063: cond_true: Condition "i < GF_FOP_MAXVALUE", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3064: cond_true: Condition "gf_fop_list[i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3065: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3069: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3072: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3063: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3063: cond_true: Condition "i < GF_FOP_MAXVALUE", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3064: cond_false: Condition "gf_fop_list[i]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3069: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3069: buffer_size: Calling strncpy with a source string whose length (2 chars) is greater than or equal to the size argument (2) will fail to null-terminate "trace_fop_names[i].name". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3072: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3063: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3063: cond_false: Condition "i < GF_FOP_MAXVALUE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3072: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3075: cond_true: Condition "includes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3075: cond_true: Condition "excludes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3076: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3076: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3080: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3098: label: Reached label "out". Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1528: cond_false: Condition "!req", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1528: cond_false: Condition "!ms", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1528: cond_false: Condition "!exp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1528: cond_false: Condition "!subdir", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1529: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1534: cond_true: Condition "NULL != exp->hostspec", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1536: cond_false: Condition "0 != ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1541: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1545: cond_false: Condition "!mres", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1549: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1555: buffer_size_warning: Calling strncpy with a maximum size argument of 1024 bytes on destination array "mres->remainingdir" of size 1024 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1558: cond_true: Condition "((struct nfs_state *)ms->nfsx->private)->dynamicvolumes == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1559: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1563: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1567: cond_true: Condition "ret < 0", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:590: cond_false: Condition "!ms", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:590: cond_false: Condition "!req", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:590: cond_false: Condition "!expname", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:591: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:595: cond_false: Condition "!me", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:596: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:602: buffer_size_warning: Calling strncpy with a maximum size argument of 1024 bytes on destination array "me->exname" of size 1024 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:606: cond_true: Condition "fullpath", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:607: cond_true: Condition "strlen(fullpath) < 1024", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:619: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:620: goto: Jumping to label "free_err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:658: label: Reached label "free_err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:659: cond_true: Condition "update_rmtab", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:662: cond_true: Condition "ret == -1", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3011: cond_false: Condition "!host", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3011: cond_false: Condition "!export", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3011: cond_false: Condition "!nfsx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3012: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3015: cond_false: Condition "!ms", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3016: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3019: cond_false: Condition "!me", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3020: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3022: buffer_size_warning: Calling strncpy with a maximum size argument of 1024 bytes on destination array "me->exname" of size 1024 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3025: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3030: cond_true: Condition "use_spinlocks", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3011: cond_false: Condition "!host", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3011: cond_false: Condition "!export", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3011: cond_false: Condition "!nfsx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3012: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3015: cond_false: Condition "!ms", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3016: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3019: cond_false: Condition "!me", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3020: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3023: buffer_size_warning: Calling strncpy with a maximum size argument of 1024 bytes on destination array "me->hostname" of size 1024 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3025: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3030: cond_true: Condition "use_spinlocks", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3023: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3023: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3025: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3025: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3029: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3034: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3036: cond_false: Condition "conf->op_version < 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3044: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3048: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3048: cond_false: Condition "!exists", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3056: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3061: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3067: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3072: cond_true: Condition "!strcmp(uuid_str, host_uuid)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3076: cond_true: Condition "ret == _gf_false", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3076: cond_false: Condition "!is_force", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3090: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3090: cond_true: Condition "ret == _gf_false", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3106: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3106: cond_false: Condition "ret != -2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3113: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3117: cond_true: Condition "!is_no_verify", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3125: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3144: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3148: cond_false: Condition "!ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3200: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3206: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3218: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3221: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3225: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3227: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "statefiledir" of size 4096 bytes might leave the destination string unterminated. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1814: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1816: cond_false: Condition "!volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1816: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1817: cond_true: Condition "!slave", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1818: cond_true: Condition "!op_errstr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1819: cond_true: Condition "!conf_path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1820: cond_false: Condition "this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1822: cond_false: Condition "GLUSTERD_STATUS_STARTED != volinfo->status", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1826: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1830: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "statefiledir" of size 4096 bytes might leave the destination string unterminated. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3457: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3457: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3459: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3459: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3462: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3467: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3469: cond_false: Condition "type == GF_GSYNC_OPTION_TYPE_STATUS", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3472: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3476: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3477: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3481: cond_false: Condition "conf->op_version < 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3486: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3490: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3490: cond_false: Condition "!exists", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3495: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3500: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3506: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3513: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3535: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3537: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3542: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3548: cond_false: Condition "type == GF_GSYNC_OPTION_TYPE_STOP", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:3552: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "statefiledir" of size 4096 bytes might leave the destination string unterminated. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1278: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1278: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1282: cond_false: Condition "!param", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1282: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1283: cond_false: Condition "!param->volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1283: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1285: cond_true: Condition "this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1287: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1287: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1289: buffer_size_warning: Calling strncpy with a maximum size argument of 880 bytes on destination array "slv_url" of size 880 bytes might leave the destination string unterminated. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:95: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:95: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:96: cond_true: Condition "!frame->root", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:97: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:97: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_false: Condition "!ctr_inode_cx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_true: Condition "!ctr_inode_cx->gfid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_true: Condition "!ctr_inode_cx->gfid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_true: Condition "!(ctr_inode_cx->fop_type != GFDB_FOP_INVALID_OP)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_true: Condition "!(ctr_inode_cx->fop_path != GFDB_FOP_INVALID)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_true: Condition "ctr_inode_cx->new_link_cx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_true: Condition "ctr_inode_cx->new_link_cx->pargfid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_false: Condition "!ctr_inode_cx->new_link_cx->pargfid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_true: Condition "!ctr_inode_cx->new_link_cx->basename", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_true: Condition "ctr_inode_cx->old_link_cx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_true: Condition "ctr_inode_cx->old_link_cx->pargfid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_false: Condition "!ctr_inode_cx->old_link_cx->pargfid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:98: cond_true: Condition "!ctr_inode_cx->old_link_cx->basename", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:101: cond_false: Condition "!_priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:101: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:103: cond_true: Condition "_priv->ctr_record_wind", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:103: cond_true: Condition "ctr_inode_cx->ia_type != IA_IFDIR", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:106: cond_false: Condition "!frame->local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:111: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:132: buffer_size_warning: Calling strncpy with a maximum size argument of 256 bytes on destination array "ctr_local->gfdb_db_record.file_name" of size 256 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:148: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:151: if_end: End of if statement. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1327: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1327: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1328: cond_true: Condition "!volinfo", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1331: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1331: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1333: cond_true: Condition "bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1338: cond_true: Condition "count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1339: cond_true: Condition "1 /* 1 && (size_t)(void const *)&" \n"[1] - (size_t)(void const *)" \n" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1339: cond_true: Condition "(char const *)" \n"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1339: cond_false: Condition "(char const *)" \n"[1] == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1341: cond_true: Condition "dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1343: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1349: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1354: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1359: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1366: cond_false: Condition "brickid < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1367: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1368: cond_true: Condition "i <= count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1371: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1372: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1380: cond_true: Condition "conf->op_version >= 30600", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1385: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1390: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1391: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "brickinfo->mount_dir" of size 4096 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1396: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1397: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1561: label: Reached label "out". Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3470: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3470: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3471: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3471: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3472: cond_false: Condition "!loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3472: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3473: cond_false: Condition "!loc->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3473: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3474: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3474: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3479: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3483: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3486: cond_false: Condition "!layout", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3492: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3494: cond_true: Condition "key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3496: cond_false: Condition "!local->key", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3499: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3502: cond_true: Condition "key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3502: cond_false: Condition "strncmp(key, "glusterfs.get_real_filename:", strlen("glusterfs.get_real_filename:")) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3508: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3510: cond_true: Condition "key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3510: cond_true: Condition "layout->cnt > 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3510: cond_false: Condition "!strcmp(key, "glusterfs.find-local-subvol")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3533: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3545: cond_true: Condition "key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3545: cond_true: Condition "layout->cnt > 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3545: cond_true: Condition "strncmp(key, "trusted.glusterfs.pathinfo", strlen(key)) == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3548: buffer_size_warning: Calling strncpy with a maximum size argument of 256 bytes on destination array "local->xsel" of size 256 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3550: cond_true: Condition "i < cnt", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: cond_true: Condition "!_new", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3555: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3550: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3550: cond_true: Condition "i < cnt", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: cond_true: Condition "!_new", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3555: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3550: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3550: cond_true: Condition "i < cnt", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: cond_false: Condition "!_new", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3552: cond_true: Condition "frame->this->ctx->measure_latency", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3555: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3550: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3550: cond_false: Condition "i < cnt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3555: loop_end: Reached end of loop. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3470: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3470: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3471: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3471: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3472: cond_false: Condition "!loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3472: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3473: cond_false: Condition "!loc->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3473: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3474: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3474: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3479: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3483: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3486: cond_false: Condition "!layout", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3492: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3494: cond_true: Condition "key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3496: cond_false: Condition "!local->key", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3499: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3502: cond_true: Condition "key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3502: cond_true: Condition "strncmp(key, "glusterfs.get_real_filename:", strlen("glusterfs.get_real_filename:")) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3502: cond_false: Condition "layout->cnt > 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3508: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3510: cond_true: Condition "key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3510: cond_false: Condition "layout->cnt > 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3533: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3545: cond_true: Condition "key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3545: cond_false: Condition "layout->cnt > 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3557: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3560: cond_true: Condition "key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3560: cond_true: Condition "strcmp(key, "trusted.glusterfs.node-uuid") == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3563: buffer_size_warning: Calling strncpy with a maximum size argument of 256 bytes on destination array "local->xsel" of size 256 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3566: cond_true: Condition "!_new", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3566: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3566: loop_end: Reached end of loop. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:206: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:206: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:207: cond_true: Condition "!dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:208: cond_true: Condition "!rsp_dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:210: cond_false: Condition "!new_volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:210: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:211: cond_false: Condition "!snap_volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:211: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:214: cond_true: Condition "&brickinfo->brick_list != &snap_volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:217: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:222: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:226: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:231: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:240: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:251: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:258: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:265: cond_true: Condition "!ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:266: buffer_size_warning: Calling strncpy with a maximum size argument of 1024 bytes on destination array "new_brickinfo->mnt_opts" of size 1024 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:271: cond_true: Condition "!gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:271: cond_true: Condition "brickinfo->snap_status != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:281: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:289: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:339: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:340: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:340: cond_false: Condition "NULL != new_brickinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:342: if_end: End of if statement. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:206: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:206: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:207: cond_true: Condition "!dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:208: cond_true: Condition "!rsp_dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:210: cond_false: Condition "!new_volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:210: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:211: cond_false: Condition "!snap_volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:211: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:214: cond_true: Condition "&brickinfo->brick_list != &snap_volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:217: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:222: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:226: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:231: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:240: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:251: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:258: cond_true: Condition "!ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:259: buffer_size_warning: Calling strncpy with a maximum size argument of 255 bytes on destination array "new_brickinfo->fstype" of size 255 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:265: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:271: cond_true: Condition "!gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:271: cond_true: Condition "brickinfo->snap_status != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:281: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:289: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:339: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:340: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:340: cond_false: Condition "NULL != new_brickinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:342: if_end: End of if statement. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:206: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:206: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:207: cond_true: Condition "!dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:208: cond_true: Condition "!rsp_dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:210: cond_false: Condition "!new_volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:210: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:211: cond_false: Condition "!snap_volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:211: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:214: cond_true: Condition "&brickinfo->brick_list != &snap_volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:217: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:222: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:226: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:231: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:240: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:251: cond_true: Condition "!ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:252: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "new_brickinfo->device_path" of size 4096 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:258: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:265: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:271: cond_true: Condition "!gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:271: cond_true: Condition "brickinfo->snap_status != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:281: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:289: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:339: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:340: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:340: cond_false: Condition "NULL != new_brickinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:342: if_end: End of if statement. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:206: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:206: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:207: cond_true: Condition "!dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:208: cond_true: Condition "!rsp_dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:210: cond_false: Condition "!new_volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:210: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:211: cond_false: Condition "!snap_volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:211: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:214: cond_true: Condition "&brickinfo->brick_list != &snap_volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:217: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:222: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:226: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:231: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:240: cond_true: Condition "!ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:241: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "new_brickinfo->path" of size 4096 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:251: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:258: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:265: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:271: cond_true: Condition "!gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:271: cond_true: Condition "brickinfo->snap_status != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:281: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:289: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:339: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:340: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:340: cond_false: Condition "NULL != new_brickinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:342: if_end: End of if statement. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4222: cond_false: Condition "loc == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4226: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_false: Condition "gf_uuid_is_null(loc->gfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->inode->ia_type == IA_IFDIR", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->path[0] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "((struct posix_private *)this->private)->path_max != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "var_len >= ((struct posix_private *)this->private)->path_max", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->path[0] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4231: cond_false: Condition "!leaf_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4235: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4239: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4256: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4258: cond_false: Condition "size == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4261: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4264: cond_false: Condition "!list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4267: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4270: cond_false: Condition "size < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4274: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4279: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4284: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: cond_true: Condition "remaining_size > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4288: cond_true: Condition "strncmp(key, "trusted.pgfid.", strlen("trusted.pgfid.")) != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4290: goto: Jumping to label "next". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4340: label: Reached label "next". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4343: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: cond_true: Condition "remaining_size > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4288: cond_false: Condition "strncmp(key, "trusted.pgfid.", strlen("trusted.pgfid.")) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4290: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4295: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4301: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4305: buffer_size_warning: Calling strncpy with a maximum size argument of 37 bytes on destination array "pgfidstr" of size 37 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4325: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4326: goto: Jumping to label "next". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4340: label: Reached label "next". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4343: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: cond_true: Condition "remaining_size > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4288: cond_false: Condition "strncmp(key, "trusted.pgfid.", strlen("trusted.pgfid.")) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4290: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4295: cond_true: Condition "op_ret == -1", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4222: cond_false: Condition "loc == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4226: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_false: Condition "gf_uuid_is_null(loc->gfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->inode->ia_type == IA_IFDIR", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->path[0] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "((struct posix_private *)this->private)->path_max != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "var_len >= ((struct posix_private *)this->private)->path_max", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->path[0] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4231: cond_false: Condition "!leaf_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4235: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4239: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4256: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4258: cond_false: Condition "size == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4261: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4264: cond_false: Condition "!list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4267: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4270: cond_false: Condition "size < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4274: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4279: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4284: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: cond_true: Condition "remaining_size > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4288: cond_true: Condition "strncmp(key, "trusted.pgfid.", strlen("trusted.pgfid.")) != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4290: goto: Jumping to label "next". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4340: label: Reached label "next". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4343: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: cond_true: Condition "remaining_size > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4288: cond_false: Condition "strncmp(key, "trusted.pgfid.", strlen("trusted.pgfid.")) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4290: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4295: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4301: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4312: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "dirpath" of size 4096 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4325: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4326: goto: Jumping to label "next". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4340: label: Reached label "next". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4343: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: cond_true: Condition "remaining_size > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4288: cond_false: Condition "strncmp(key, "trusted.pgfid.", strlen("trusted.pgfid.")) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4290: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4295: cond_true: Condition "op_ret == -1", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4222: cond_false: Condition "loc == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4226: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_false: Condition "gf_uuid_is_null(loc->gfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->inode->ia_type == IA_IFDIR", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->path[0] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "((struct posix_private *)this->private)->path_max != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "var_len >= ((struct posix_private *)this->private)->path_max", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: cond_true: Condition "loc->path[0] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4230: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4231: cond_false: Condition "!leaf_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4235: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4239: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4256: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4258: cond_false: Condition "size == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4261: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4264: cond_false: Condition "!list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4267: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4270: cond_false: Condition "size < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4274: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4279: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4284: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: cond_true: Condition "remaining_size > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4288: cond_true: Condition "strncmp(key, "trusted.pgfid.", strlen("trusted.pgfid.")) != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4290: goto: Jumping to label "next". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4340: label: Reached label "next". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4343: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4286: cond_true: Condition "remaining_size > 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4287: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "key" of size 4096 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4288: cond_false: Condition "strncmp(key, "trusted.pgfid.", strlen("trusted.pgfid.")) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4290: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4295: cond_true: Condition "op_ret == -1", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4412: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4412: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4413: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4413: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4414: cond_false: Condition "!loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4414: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4417: cond_true: Condition "gf_uuid_is_null(loc->gfid)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4417: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4417: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4423: cond_true: Condition "frame->root->pid != GF_CLIENT_PID_GSYNCD", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4423: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4423: cond_false: Condition "fnmatch("*.glusterfs.*.stime", name, 4 /* 1 << 2 */) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4428: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4430: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4430: cond_true: Condition "loc->inode->ia_type == IA_IFDIR", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4430: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4430: cond_true: Condition "!strncmp(name, "glusterfs.file.", 15)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4434: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4440: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4444: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4447: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4449: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4449: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4449: cond_false: Condition "!strncmp(name, "glusterfs.posix.acl", strlen("glusterfs.posix.acl"))", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4449: cond_false: Condition "!strncmp(name, "glusterfs.posix.default_acl", strlen("glusterfs.posix.default_acl"))", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4473: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4475: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4475: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4475: cond_false: Condition "strncmp(name, "glusterfs.get_real_filename:", strlen("glusterfs.get_real_filename:")) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4498: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4500: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4500: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4500: cond_false: Condition "!strcmp(name, "glusterfs.open-fd-count")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4515: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4516: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4516: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4516: cond_false: Condition "strncmp(name, "trusted.glusterfs.pathinfo", strlen(name)) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4516: cond_false: Condition "strncmp(name, "glusterfs.pathinfo", strlen(name)) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4545: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4547: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4547: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4547: cond_true: Condition "strcmp(name, "trusted.glusterfs.node-uuid") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4547: cond_false: Condition "!gf_uuid_is_null(priv->glusterd_uuid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4571: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4573: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4573: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4573: cond_false: Condition "strcmp(name, "glusterfs.gfid2path") == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4593: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4595: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4595: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4595: cond_false: Condition "strcmp(name, "glusterfs.ancestry.path") == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4619: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4621: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4621: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4621: cond_false: Condition "strncmp(name, "trusted.glusterfs.get-signature", strlen("trusted.glusterfs.get-signature")) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4631: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4633: cond_true: Condition "name", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4634: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "keybuffer" of size 4096 bytes might leave the destination string unterminated. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4412: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4412: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4413: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4413: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4414: cond_false: Condition "!loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4414: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4417: cond_true: Condition "gf_uuid_is_null(loc->gfid)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4417: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4417: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4423: cond_true: Condition "frame->root->pid != GF_CLIENT_PID_GSYNCD", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4423: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4428: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4430: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4430: cond_true: Condition "loc->inode->ia_type == IA_IFDIR", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4430: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4441: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4444: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4447: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4449: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4449: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4473: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4475: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4475: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4498: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4500: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4500: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4515: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4516: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4516: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4545: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4547: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4547: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4571: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4573: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4573: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4593: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4595: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4595: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4619: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4621: cond_true: Condition "loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4621: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4631: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4633: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4697: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4700: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4717: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4719: cond_false: Condition "size == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4720: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4723: cond_false: Condition "!list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4726: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4729: cond_false: Condition "size < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4733: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4737: cond_true: Condition "remaining_size > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4739: cond_true: Condition "frame->root->pid != GF_CLIENT_PID_GSYNCD", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4739: cond_true: Condition "fnmatch("*.glusterfs.*.stime", keybuffer, 4 /* 1 << 2 */) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4741: goto: Jumping to label "ignore". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4790: label: Reached label "ignore". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4794: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4737: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4737: cond_true: Condition "remaining_size > 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4738: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "keybuffer" of size 4096 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4739: cond_true: Condition "frame->root->pid != GF_CLIENT_PID_GSYNCD", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4739: cond_false: Condition "fnmatch("*.glusterfs.*.stime", keybuffer, 4 /* 1 << 2 */) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4741: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4744: cond_true: Condition "size == -1", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3523: cond_true: Condition "!peer_data", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3524: cond_true: Condition "!volinfo", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3525: cond_true: Condition "!prefix", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3529: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3532: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3535: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3536: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3543: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3547: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3551: cond_true: Condition "!ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3552: buffer_size_warning: Calling strncpy with a maximum size argument of 256 bytes on destination array "new_volinfo->parent_volname" of size 256 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3558: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3561: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3897: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3898: cond_true: Condition "msg[0]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3901: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3901: if_end: End of if statement. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:528: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:528: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:530: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:531: cond_false: Condition "!missed_snapinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:531: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:532: cond_false: Condition "!snap_opinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:532: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:538: cond_false: Condition "!snap", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:545: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:548: cond_true: Condition "&volinfo->vol_list != &snap->volumes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:549: cond_true: Condition "!strcmp(volinfo->volname, snap_opinfo->snap_vol_id)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:552: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:554: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:556: cond_false: Condition "!snap_vol", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:564: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:567: cond_true: Condition "&brickinfo->brick_list != &snap_vol->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:569: cond_true: Condition "i == snap_opinfo->brick_num", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:570: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:571: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:573: cond_false: Condition "brickinfo->snap_status != -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:579: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:583: cond_false: Condition "!device", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:591: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:595: cond_false: Condition "!device", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:603: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:604: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "brickinfo->device_path" of size 4096 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:610: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:619: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:624: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:675: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:676: cond_true: Condition "device", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1949: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1949: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1951: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1951: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1954: cond_false: Condition "!path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1954: cond_false: Condition "gf_uuid_is_null(pargfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1957: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1959: cond_false: Condition "__is_root_gfid(pargfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1965: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1972: cond_true: Condition "!__is_root_gfid(pargfid)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1977: cond_false: Condition "len < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1984: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1988: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1988: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1988: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1990: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1990: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1990: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1993: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "pre_dir_name" of size 4096 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1997: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1972: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1972: cond_true: Condition "!__is_root_gfid(pargfid)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1977: cond_true: Condition "len < 0", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1440: cond_true: Condition "setrlimit(RLIMIT_NOFILE, &lim) == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1445: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1450: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1456: cond_true: Condition "!dir_data", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1459: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1461: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1464: cond_true: Condition "ret != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1464: cond_true: Condition "2 != *__errno_location()", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1472: cond_false: Condition "!ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1478: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1481: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1481: cond_false: Condition "2 == *__errno_location()", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1491: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1499: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1508: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1520: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1531: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1542: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1542: cond_true: Condition "*__errno_location() != 17", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1554: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1554: cond_true: Condition "*__errno_location() != 17", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1566: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1566: cond_true: Condition "*__errno_location() != 17", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1576: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1576: cond_true: Condition "*__errno_location() != 17", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1586: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1586: cond_true: Condition "*__errno_location() != 17", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1596: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1596: cond_true: Condition "*__errno_location() != 17", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1606: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1606: cond_true: Condition "*__errno_location() != 17", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1616: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1616: cond_true: Condition "*__errno_location() != 17", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1626: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1626: cond_true: Condition "*__errno_location() != 17", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1636: cond_true: Condition "-1 == ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1636: cond_true: Condition "*__errno_location() != 17", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1645: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1646: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1648: cond_false: Condition "rpc == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1653: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1656: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1661: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1666: cond_true: Condition "this->ctx->secure_mgmt", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1669: cond_false: Condition "ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1674: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1693: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1698: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1701: cond_false: Condition "total_transport <= 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1707: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1710: cond_false: Condition "ret < 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1716: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1716: cond_true: Condition "ret < total_transport", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1723: cond_true: Condition "i < gd_inet_programs_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1726: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1733: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1734: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1723: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1723: cond_true: Condition "i < gd_inet_programs_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1726: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1733: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1734: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1723: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1723: cond_false: Condition "i < gd_inet_programs_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1734: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1742: cond_false: Condition "uds_rpc == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1745: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1749: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1749: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1760: buffer_size_warning: Calling strncpy with a maximum size argument of 4096 bytes on destination array "conf->workdir" of size 4096 bytes might leave the destination string unterminated. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1773: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1774: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1900: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1901: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1902: cond_true: Condition "this->private != NULL", taking true branch. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:446: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:446: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:450: buffer_size_warning: Calling strncpy with a maximum size argument of 880 bytes on destination array "slv_url" of size 880 bytes might leave the destination string unterminated. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1518: cond_true: Condition "slave_info", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1520: cond_true: Condition "slave_info", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1521: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1523: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1526: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1518: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1518: cond_true: Condition "slave_info", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1520: cond_true: Condition "slave_info", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1521: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1523: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1526: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1518: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1518: cond_true: Condition "slave_info", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1520: cond_false: Condition "slave_info", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1523: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1523: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1526: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1532: cond_true: Condition "cnt == 4", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:1533: buffer_size_warning: Calling strncpy with a maximum size argument of 880 bytes on destination array "slv_url" of size 880 bytes might leave the destination string unterminated. Error: BUFFER_SIZE_WARNING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub-status.c:58: cond_false: Condition "!scrub_stat", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub-status.c:59: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub-status.c:69: buffer_size_warning: Calling strncpy with a maximum size argument of 1024 bytes on destination array "scrub_stat->last_scrub_time" of size 1024 bytes might leave the destination string unterminated. Error: CHAR_IO: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:429: char_io: Assigning the return value of "getchar" to char "flush" truncates its value. Error: CHECKED_RETURN: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:852: check_return: Calling "pthread_attr_init" without checking return value (as is done elsewhere 4 out of 5 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3597: example_assign: Example 1: Assigning: "ret" = return value from "pthread_attr_init(&attr)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3598: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/stub/bit-rot-stub.c:79: example_assign: Example 2: Assigning: "ret" = return value from "pthread_attr_init(&w_attr)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/stub/bit-rot-stub.c:80: example_checked: Example 2 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:801: example_assign: Example 3: Assigning: "ret" = return value from "pthread_attr_init(&attr)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:802: example_checked: Example 3 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:2310: example_checked: Example 4: "pthread_attr_init(&w_attr)" has its value checked in "(ret = pthread_attr_init(&w_attr)) != 0". Error: CHECKED_RETURN: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:2748: check_return: Calling "fd_ctx_del" without checking return value (as is done elsewhere 19 out of 21 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:35: example_assign: Example 1: Assigning: "ret" = return value from "fd_ctx_del(fd, this, &value)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:36: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec.c:1262: example_checked: Example 2: "fd_ctx_del(fd, this, &value)" has its value checked in "fd_ctx_del(fd, this, &value) == 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:13396: example_checked: Example 3: "fd_ctx_del(fd, this, &ctx)" has its value checked in "fd_ctx_del(fd, this, &ctx) == 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/stub/bit-rot-stub.c:3150: example_assign: Example 4: Assigning: "ret" = return value from "fd_ctx_del(fd, this, &ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/stub/bit-rot-stub.c:3151: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:2483: example_assign: Example 5: Assigning: "ret" = return value from "fd_ctx_del(fd, this, &ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:2484: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1963: cond_false: Condition "dict == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1965: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1969: cond_false: Condition "!ctx->have_version", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1969: cond_false: Condition "version[0] != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1969: cond_false: Condition "version[1] != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1975: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1977: cond_false: Condition "size != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1986: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1988: cond_false: Condition "dirty[0]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1988: cond_false: Condition "dirty[1]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1994: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1997: cond_true: Condition "lock->loc.inode->ia_type == IA_IFREG", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1997: cond_true: Condition "!ctx->have_config", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:2000: check_return: Calling "ec_dict_set_number" without checking return value (as is done elsewhere 6 out of 7 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1392: example_checked: Example 1: "ec_dict_set_number(xdata, "trusted.ec.size", 0UL)" has its value checked in "ec_dict_set_number(xdata, "trusted.ec.size", 0UL) != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1193: example_assign: Example 2: Assigning: "error" = return value from "ec_dict_set_number(dict, "trusted.ec.size", 0UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1194: example_checked: Example 2 (cont.): "error" has its value checked in "error == 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1982: example_assign: Example 3: Assigning: "err" = return value from "ec_dict_set_number(dict, "trusted.ec.size", size)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:1983: example_checked: Example 3 (cont.): "err" has its value checked in "err != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-dir-write.c:167: example_assign: Example 4: Assigning: "err" = return value from "ec_dict_set_number(fop->xdata, "trusted.ec.size", 0UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-dir-write.c:168: example_checked: Example 4 (cont.): "err" has its value checked in "err != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-dir-write.c:739: example_assign: Example 5: Assigning: "err" = return value from "ec_dict_set_number(fop->xdata, "trusted.ec.size", 0UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-dir-write.c:740: example_checked: Example 5 (cont.): "err" has its value checked in "err != 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1707: cond_true: Condition "&local_brick->list != comp->brick_list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1709: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1707: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1707: cond_true: Condition "&local_brick->list != comp->brick_list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1709: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1707: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1707: cond_false: Condition "&local_brick->list != comp->brick_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1709: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1711: cond_true: Condition "!query_cbk_args->qfile_array", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1715: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1753: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1758: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1759: cond_true: Condition "&local_brick->list != comp->brick_list", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1764: check_return: Calling "sys_rename(local_brick->qfile_path, query_file_path_err)" without checking return value. It wraps a library function that may fail and return an error code. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:197:9: return_wrapper: The function wraps and returns the value of "rename(oldpath, newpath)". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:2116: cond_false: Condition "!xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:2116: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:2117: cond_false: Condition "!local_bricklist_head", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:2117: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:2119: check_return: Calling "gethostname" without checking return value (as is done elsewhere 5 out of 6 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2950: example_checked: Example 1: "gethostname(hostname, 256UL)" has its value checked in "gethostname(hostname, 256UL) == -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.c:396: example_checked: Example 2: "gethostname(hostname, 256UL)" has its value checked in "gethostname(hostname, 256UL) == -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/nufa.c:606: example_assign: Example 3: Assigning: "ret" = return value from "gethostname(my_hostname, 256UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/nufa.c:607: example_checked: Example 3 (cont.): "ret" has its value checked in "ret == 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4945: example_assign: Example 4: Assigning: "ret" = return value from "gethostname(my_hostname, 256UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:4946: example_checked: Example 4 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6993: example_assign: Example 5: Assigning: "ret" = return value from "gethostname(_private->hostname, 256UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6994: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:816: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:817: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:819: cond_false: Condition "skip_logging(this, level)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:820: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:834: cond_false: Condition "!domain", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:834: cond_false: Condition "!file", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:834: cond_false: Condition "!function", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:834: cond_false: Condition "!fmt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:839: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:842: cond_false: Condition "basename", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:845: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:851: cond_true: Condition "ctx->log.log_control_file_found", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:856: cond_true: Condition "GF_LOG_TRACE == level", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:858: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:860: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:863: check_return: Calling "vasprintf" without checking return value (as is done elsewhere 11 out of 13 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:518: example_assign: Example 1: Assigning: "ret" = return value from "vasprintf(&msg, fmt, ap)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:520: example_checked: Example 1 (cont.): "ret" has its value checked in "-1 == ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:634: example_checked: Example 2: "vasprintf(&msg, format, ap)" has its value checked in "vasprintf(&msg, format, ap) != -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2219: example_assign: Example 3: Assigning: "ret" = return value from "vasprintf(&str2, fmt, ap)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2220: example_checked: Example 3 (cont.): "ret" has its value checked in "-1 == ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2064: example_assign: Example 4: Assigning: "ret" = return value from "vasprintf(&msgstr, fmt, ap)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2068: example_checked: Example 4 (cont.): "ret" has its value checked in "ret != -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/strfd.c:34: example_assign: Example 5: Assigning: "size" = return value from "vasprintf(&str, fmt, ap)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/strfd.c:36: example_checked: Example 5 (cont.): "size" has its value checked in "size < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2116: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2117: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2119: cond_false: Condition "skip_logging(this, level)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2120: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2134: cond_false: Condition "!domain", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2134: cond_false: Condition "!file", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2134: cond_false: Condition "!function", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2134: cond_false: Condition "!fmt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2139: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2142: cond_false: Condition "basename", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2145: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2147: cond_true: Condition "ctx->log.log_control_file_found", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2152: cond_true: Condition "GF_LOG_TRACE == level", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2154: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2156: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2159: check_return: Calling "vasprintf" without checking return value (as is done elsewhere 11 out of 13 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:518: example_assign: Example 1: Assigning: "ret" = return value from "vasprintf(&msg, fmt, ap)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:520: example_checked: Example 1 (cont.): "ret" has its value checked in "-1 == ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:634: example_checked: Example 2: "vasprintf(&msg, format, ap)" has its value checked in "vasprintf(&msg, format, ap) != -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2219: example_assign: Example 3: Assigning: "ret" = return value from "vasprintf(&str2, fmt, ap)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2220: example_checked: Example 3 (cont.): "ret" has its value checked in "-1 == ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2064: example_assign: Example 4: Assigning: "ret" = return value from "vasprintf(&msgstr, fmt, ap)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2068: example_checked: Example 4 (cont.): "ret" has its value checked in "ret != -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/strfd.c:34: example_assign: Example 5: Assigning: "size" = return value from "vasprintf(&str, fmt, ap)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/strfd.c:36: example_checked: Example 5 (cont.): "size" has its value checked in "size < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker.c:1358: cond_true: Condition "cookie == (void *)0x1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker.c:1359: cond_true: Condition "local->uid != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker.c:1359: cond_true: Condition "local->gid != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker.c:1361: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker.c:1362: cond_true: Condition "op_errno", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker.c:1364: cond_true: Condition "local->stub != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker.c:1369: check_return: Calling "mq_inode_ctx_get" without checking return value (as is done elsewhere 13 out of 14 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota-helper.c:458: example_assign: Example 1: Assigning: "ret" = return value from "mq_inode_ctx_get(loc->inode, this, &ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota-helper.c:459: example_checked: Example 1 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota-helper.c:109: example_assign: Example 2: Assigning: "ret" = return value from "mq_inode_ctx_get(inode, this, &ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota-helper.c:110: example_checked: Example 2 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:1128: example_assign: Example 3: Assigning: "ret" = return value from "mq_inode_ctx_get(loc->inode, this, &ctxtmp)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:1129: example_checked: Example 3 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:1163: example_assign: Example 4: Assigning: "ret" = return value from "mq_inode_ctx_get(loc->inode, this, &ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:1164: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:567: example_assign: Example 5: Assigning: "ret" = return value from "mq_inode_ctx_get(loc->inode, this, &ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:568: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:392: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:395: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:398: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:401: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:408: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:411: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:413: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:414: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:415: check_return: Calling "glfs_loc_touchup" without checking return value (as is done elsewhere 17 out of 19 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:357: example_assign: Example 1: Assigning: "ret" = return value from "glfs_loc_touchup(&loc)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:357: example_checked: Example 1 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:1197: example_assign: Example 2: Assigning: "ret" = return value from "glfs_loc_touchup(&loc)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:1197: example_checked: Example 2 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:528: example_assign: Example 3: Assigning: "ret" = return value from "glfs_loc_touchup(&loc)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:528: example_checked: Example 3 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:760: example_assign: Example 4: Assigning: "ret" = return value from "glfs_loc_touchup(&loc)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:760: example_checked: Example 4 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:1641: example_assign: Example 5: Assigning: "ret" = return value from "glfs_loc_touchup(&oldloc)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:1641: example_checked: Example 5 (cont.): "ret" has its value checked in "ret != 0". Error: CHECKED_RETURN: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:906: check_return: Calling "sys_readlink" without checking return value (as is done elsewhere 5 out of 6 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:276: example_assign: Example 1: Assigning: "ret" = return value from "sys_readlink(path, buf, 4097UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:277: example_checked: Example 1 (cont.): "ret" has its value checked in "ret == -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1976: example_assign: Example 2: Assigning: "len" = return value from "sys_readlink(dir_handle, linkname, 4096UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1977: example_checked: Example 2 (cont.): "len" has its value checked in "len < 0L". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:322: example_assign: Example 3: Assigning: "ret" = return value from "sys_readlink(base_str, linkname, 512UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:323: example_checked: Example 3 (cont.): "ret" has its value checked in "ret == -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:168: example_assign: Example 4: Assigning: "len" = return value from "sys_readlink(dir_handle, linkname, 4096UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:169: example_checked: Example 4 (cont.): "len" has its value checked in "len < 0L". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1261: example_assign: Example 5: Assigning: "op_ret" = return value from "sys_readlink(real_path, dest, size)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1262: example_checked: Example 5 (cont.): "op_ret" has its value checked in "op_ret == -1". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4896: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4896: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4899: cond_true: Condition "ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4900: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4902: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4904: cond_false: Condition "!op_ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4909: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4911: switch: Switch case value "GD_OP_STATUS_VOLUME". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4912: switch_case: Reached case "GD_OP_STATUS_VOLUME". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4914: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4918: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4920: cond_false: Condition "!glusterd_is_volume_status_modify_op_ctx(cmd)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4925: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4929: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4933: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4936: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4940: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4950: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4951: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4953: cond_true: Condition "i <= brick_index_max", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4957: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4961: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4962: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4953: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4953: cond_false: Condition "i <= brick_index_max", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4962: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:4963: check_return: Calling "glusterd_volinfo_find" without checking return value (as is done elsewhere 118 out of 122 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-bitrot.c:545: example_assign: Example 1: Assigning: "ret" = return value from "glusterd_volinfo_find(volname, &volinfo)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-bitrot.c:546: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2520: example_assign: Example 2: Assigning: "ret" = return value from "glusterd_volinfo_find(volname, &volinfo)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2522: example_checked: Example 2 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:6278: example_assign: Example 3: Assigning: "ret" = return value from "glusterd_volinfo_find(volname, &volinfo)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:6279: example_checked: Example 3 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mgmt.c:2230: example_assign: Example 4: Assigning: "ret" = return value from "glusterd_volinfo_find(volname, &vol)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mgmt.c:2231: example_checked: Example 4 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:7071: example_assign: Example 5: Assigning: "ret" = return value from "glusterd_volinfo_find(volname, &volinfo)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:7072: example_checked: Example 5 (cont.): "ret" has its value checked in "ret". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:187: cond_false: Condition "op_ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:188: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:191: cond_false: Condition "local == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:195: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:197: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:197: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:201: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:207: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:209: check_return: Calling "__inode_ctx_get0" without checking return value (as is done elsewhere 31 out of 35 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:134: example_assign: Example 1: Assigning: "ret" = return value from "__inode_ctx_get0(inode, this, &ctx_int)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:135: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:2411: example_assign: Example 2: Assigning: "ret" = return value from "__inode_ctx_get0(inode, this, &value)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:2412: example_checked: Example 2 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:715: example_checked: Example 3: "__inode_ctx_get0(inode, xl, &value)" has its value checked in "__inode_ctx_get0(inode, xl, &value) != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:119: example_checked: Example 4: "__inode_ctx_get0(inode, this, &ctx_int)" has its value checked in "__inode_ctx_get0(inode, this, &ctx_int) == 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/arbiter/src/arbiter.c:25: example_assign: Example 5: Assigning: "ret" = return value from "__inode_ctx_get0(inode, this, &ctx_addr)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/arbiter/src/arbiter.c:26: example_checked: Example 5 (cont.): "ret" has its value checked in "ret == 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:187: cond_false: Condition "op_ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:188: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:191: cond_false: Condition "local == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:195: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:197: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:197: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:201: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:207: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:212: cond_true: Condition "!ioc_inode", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:218: check_return: Calling "__inode_ctx_put" without checking return value (as is done elsewhere 7 out of 8 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/arbiter/src/arbiter.c:35: example_assign: Example 1: Assigning: "ret" = return value from "__inode_ctx_put(inode, this, (uint64_t)ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/arbiter/src/arbiter.c:36: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:80: example_assign: Example 2: Assigning: "ret" = return value from "__inode_ctx_put(inode, this, (uint64_t)ictx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:81: example_checked: Example 2 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:439: example_assign: Example 3: Assigning: "ret" = return value from "__inode_ctx_put(inode, this, (uint64_t)(long)pl_inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:440: example_checked: Example 3 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-common.c:45: example_assign: Example 4: Assigning: "ret" = return value from "__inode_ctx_put(inode, this, (uint64_t)(unsigned long)*ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-common.c:47: example_checked: Example 4 (cont.): "ret" has its value checked in "ret == -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:43: example_assign: Example 5: Assigning: "ret" = return value from "__inode_ctx_put(inode, this, (uint64_t)(long)ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:44: example_checked: Example 5 (cont.): "ret" has its value checked in "ret". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1019: cond_true: Condition "grp_buf_len == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1024: cond_false: Condition "!grp_buf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1026: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1028: check_return: Calling "getgrgid_r(gid, &grp, grp_buf, grp_buf_len, &grp_result)" without checking return value. This library function may fail and return an error code. Error: CHECKED_RETURN: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3161: check_return: Calling "gf_store_save_value" without checking return value (as is done elsewhere 75 out of 83 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:2019: example_assign: Example 1: Assigning: "ret" = return value from "gf_store_save_value(handle->fd, "UUID", uuid_str)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:2021: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4715: example_assign: Example 2: Assigning: "ret" = return value from "gf_store_save_value(fd, "cksum", buf)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4716: example_checked: Example 2 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:1462: example_assign: Example 3: Assigning: "ret" = return value from "gf_store_save_value(fd, "rebalance_status", buf)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:1463: example_checked: Example 3 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:1381: example_assign: Example 4: Assigning: "ret" = return value from "gf_store_save_value(fd, "tier_status", buf)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:1383: example_checked: Example 4 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:798: example_assign: Example 5: Assigning: "ret" = return value from "gf_store_save_value(fd, "parent_volname", buf)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:799: example_checked: Example 5 (cont.): "ret" has its value checked in "ret". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5078: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5078: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5079: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5079: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5080: cond_false: Condition "!fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5080: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5081: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5081: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5084: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5088: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5091: check_return: Calling "posix_fdstat" without checking return value (as is done elsewhere 21 out of 22 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-aio.c:108: example_assign: Example 1: Assigning: "ret" = return value from "posix_fdstat(this, _fd, &postbuf)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-aio.c:109: example_checked: Example 1 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-aio.c:281: example_assign: Example 2: Assigning: "ret" = return value from "posix_fdstat(this, _fd, &postbuf)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-aio.c:282: example_checked: Example 2 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:749: example_assign: Example 3: Assigning: "ret" = return value from "posix_fdstat(this, pfd->fd, statpre)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:750: example_checked: Example 3 (cont.): "ret" has its value checked in "ret == -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:3007: example_assign: Example 4: Assigning: "op_ret" = return value from "posix_fdstat(this, _fd, &stbuf)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:3008: example_checked: Example 4 (cont.): "op_ret" has its value checked in "op_ret == -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:914: example_assign: Example 5: Assigning: "ret" = return value from "posix_fdstat(this, pfd->fd, statpre)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:915: example_checked: Example 5 (cont.): "ret" has its value checked in "ret == -1". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2681: cond_false: Condition "!buf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2685: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2687: cond_false: Condition "size == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2691: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2693: cond_false: Condition "!fill", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2697: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2699: cond_false: Condition "!*fill", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2703: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2705: cond_false: Condition "buf + 4 > orig_buf + size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2712: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2718: cond_false: Condition "count < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2722: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2727: cond_true: Condition "i < count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2728: cond_false: Condition "buf + 4 > orig_buf + size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2736: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2741: cond_false: Condition "buf + 4 > orig_buf + size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2749: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2754: cond_false: Condition "buf + keylen > orig_buf + size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2762: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2766: cond_false: Condition "buf + vallen > orig_buf + size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2774: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2777: cond_false: Condition "!value", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2780: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2786: check_return: Calling "dict_add" without checking return value (as is done elsewhere 13 out of 14 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2250: example_assign: Example 1: Assigning: "ret" = return value from "dict_add(this, key, data)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2251: example_checked: Example 1 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:788: example_assign: Example 2: Assigning: "ret" = return value from "dict_add(xattr, "trusted.glusterfs.quota.limit-set", data)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:789: example_checked: Example 2 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1442: example_assign: Example 3: Assigning: "ret" = return value from "dict_add(ctr_ipc_in_dict, "gfdb.ipc-ctr-get-qfile-path", data)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1442: example_checked: Example 3 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1243: example_assign: Example 4: Assigning: "ret" = return value from "dict_add(params_dict, (char *)(*gfdb_methods.get_db_path_key)(), data)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1243: example_checked: Example 4 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1333: example_assign: Example 5: Assigning: "ret" = return value from "dict_add(ctr_ipc_dict, "gfdb.ipc-ctr-op", data)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1333: example_checked: Example 5 (cont.): "ret" has its value checked in "ret". Error: CHECKED_RETURN: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:198: check_return: Calling "__inode_ctx_get0" without checking return value (as is done elsewhere 31 out of 35 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:134: example_assign: Example 1: Assigning: "ret" = return value from "__inode_ctx_get0(inode, this, &ctx_int)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:135: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:2411: example_assign: Example 2: Assigning: "ret" = return value from "__inode_ctx_get0(inode, this, &value)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:2412: example_checked: Example 2 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:715: example_checked: Example 3: "__inode_ctx_get0(inode, xl, &value)" has its value checked in "__inode_ctx_get0(inode, xl, &value) != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:119: example_checked: Example 4: "__inode_ctx_get0(inode, this, &ctx_int)" has its value checked in "__inode_ctx_get0(inode, this, &ctx_int) == 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/arbiter/src/arbiter.c:25: example_assign: Example 5: Assigning: "ret" = return value from "__inode_ctx_get0(inode, this, &ctx_addr)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/arbiter/src/arbiter.c:26: example_checked: Example 5 (cont.): "ret" has its value checked in "ret == 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:473: cond_true: Condition "fd_dup != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:473: cond_true: Condition "fp", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:473: cond_true: Condition "fgets(buffer, 1024, fp)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:473: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:473: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:475: cond_false: Condition "encoding == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:476: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:478: cond_false: Condition "major_version == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:479: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:481: cond_false: Condition "minor_version == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:482: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:484: cond_true: Condition "encoding > CHANGELOG_ENCODE_MIN", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:484: cond_true: Condition "encoding < CHANGELOG_ENCODE_MAX", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:485: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:487: cond_false: Condition "elen == stbuf->st_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:490: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:492: cond_true: Condition "major_version == 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:492: cond_true: Condition "minor_version == 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:494: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:496: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:498: cond_false: Condition "version_idx == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:499: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:504: check_return: Calling "sys_lseek(from_fd, elen, 0)" without checking return value. It wraps a library function that may fail and return an error code. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:351:9: return_wrapper: The function wraps and returns the value of "lseek(fd, offset, whence)". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3233: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3233: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3234: cond_false: Condition "!fdctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3234: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3238: cond_false: Condition "fdctx->remote_fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3241: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3251: cond_true: Condition "lk_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3254: cond_true: Condition "!parent_down", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3255: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3257: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3260: cond_false: Condition "fr == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3262: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3266: cond_true: Condition "fdctx->is_dir", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3271: check_return: Calling "client_submit_request" without checking return value (as is done elsewhere 52 out of 58 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:377: example_assign: Example 1: Assigning: "ret" = return value from "client_submit_request(this, &req, frame, conf->fops, GFS3_OP_RELEASE, clnt_release_reopen_fd_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_releasedir_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:383: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:579: example_assign: Example 2: Assigning: "ret" = return value from "client_submit_request(this, &req, frame, conf->fops, GFS3_OP_LK, client_reacquire_lock_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_lk_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:584: example_checked: Example 2 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:871: example_assign: Example 3: Assigning: "ret" = return value from "client_submit_request(this, &req, frame, conf->fops, GFS3_OP_OPENDIR, client3_3_reopendir_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_opendir_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:876: example_checked: Example 3 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:931: example_assign: Example 4: Assigning: "ret" = return value from "client_submit_request(this, &req, frame, conf->fops, GFS3_OP_OPEN, client3_3_reopen_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_open_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:935: example_checked: Example 4 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3642: example_assign: Example 5: Assigning: "ret" = return value from "client_submit_request(this, &req, frame, conf->fops, GFS3_OP_ACCESS, client3_3_access_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_access_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3647: example_checked: Example 5 (cont.): "ret" has its value checked in "ret". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3233: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3233: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3234: cond_false: Condition "!fdctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3234: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3238: cond_false: Condition "fdctx->remote_fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3241: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3251: cond_true: Condition "lk_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3254: cond_true: Condition "!parent_down", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3255: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3257: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3260: cond_false: Condition "fr == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3262: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3266: cond_false: Condition "fdctx->is_dir", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3276: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3281: check_return: Calling "client_submit_request" without checking return value (as is done elsewhere 52 out of 58 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:377: example_assign: Example 1: Assigning: "ret" = return value from "client_submit_request(this, &req, frame, conf->fops, GFS3_OP_RELEASE, clnt_release_reopen_fd_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_releasedir_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:383: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:579: example_assign: Example 2: Assigning: "ret" = return value from "client_submit_request(this, &req, frame, conf->fops, GFS3_OP_LK, client_reacquire_lock_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_lk_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:584: example_checked: Example 2 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:871: example_assign: Example 3: Assigning: "ret" = return value from "client_submit_request(this, &req, frame, conf->fops, GFS3_OP_OPENDIR, client3_3_reopendir_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_opendir_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:876: example_checked: Example 3 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:931: example_assign: Example 4: Assigning: "ret" = return value from "client_submit_request(this, &req, frame, conf->fops, GFS3_OP_OPEN, client3_3_reopen_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_open_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:935: example_checked: Example 4 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3642: example_assign: Example 5: Assigning: "ret" = return value from "client_submit_request(this, &req, frame, conf->fops, GFS3_OP_ACCESS, client3_3_access_cbk, NULL, NULL, 0, NULL, 0, NULL, (xdrproc_t)xdr_gfs3_access_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3647: example_checked: Example 5 (cont.): "ret" has its value checked in "ret". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:506: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:506: cond_false: Condition "!((exportbuf.st_mode & 61440) == 16384)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:511: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:519: switch: Switch case value "0". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:538: switch_case: Reached case "0". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:539: cond_false: Condition "!((stbuf.st_mode & 61440) == 16384)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:545: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:546: break: Breaking from switch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:549: switch_end: Reached end of switch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:551: check_return: Calling "sys_stat(handle_pfx, &priv->handledir)" without checking return value. It wraps a library function that may fail and return an error code. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:32:9: return_wrapper: The function wraps and returns the value of "stat(path, buf)". [Note: The source code implementation of the function has been overridden by a builtin model.] Error: CHECKED_RETURN: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:268: check_return: Calling "xmlTextWriterEndElement" without checking return value (as is done elsewhere 116 out of 121 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:94: example_assign: Example 1: Assigning: "ret" = return value from "xmlTextWriterEndElement(writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:95: example_checked: Example 1 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:181: example_assign: Example 2: Assigning: "ret" = return value from "xmlTextWriterEndElement(glfsh_writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:182: example_checked: Example 2 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:185: example_assign: Example 3: Assigning: "ret" = return value from "xmlTextWriterEndElement(glfsh_writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:186: example_checked: Example 3 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2679: example_assign: Example 4: Assigning: "ret" = return value from "xmlTextWriterEndElement(writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2680: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2801: example_assign: Example 5: Assigning: "ret" = return value from "xmlTextWriterEndElement(writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2802: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:264: check_return: Calling "xmlTextWriterStartElement" without checking return value (as is done elsewhere 117 out of 121 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:80: example_assign: Example 1: Assigning: "ret" = return value from "xmlTextWriterStartElement(*writer, (xmlChar *)"cliOutput")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:81: example_checked: Example 1 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:299: example_assign: Example 2: Assigning: "x_ret" = return value from "xmlTextWriterStartElement(glfsh_writer, (xmlChar *)"brick")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:300: example_checked: Example 2 (cont.): "x_ret" has its value checked in "x_ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:146: example_assign: Example 3: Assigning: "ret" = return value from "xmlTextWriterStartElement(glfsh_writer, (xmlChar *)"cliOutput")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:148: example_checked: Example 3 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2735: example_assign: Example 4: Assigning: "ret" = return value from "xmlTextWriterStartElement(*writer, (xmlChar *)"options")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2736: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2762: example_assign: Example 5: Assigning: "ret" = return value from "xmlTextWriterStartElement(writer, (xmlChar *)"option")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2763: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:265: check_return: Calling "xmlTextWriterWriteFormatAttribute" without checking return value (as is done elsewhere 4 out of 5 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2934: example_assign: Example 1: Assigning: "ret" = return value from "xmlTextWriterWriteFormatAttribute(local->writer, (xmlChar *)"uuid", "%s", uuid)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2937: example_checked: Example 1 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3046: example_assign: Example 2: Assigning: "ret" = return value from "xmlTextWriterWriteFormatAttribute(local->writer, (xmlChar *)"uuid", "%s", uuid)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3049: example_checked: Example 2 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3098: example_assign: Example 3: Assigning: "ret" = return value from "xmlTextWriterWriteFormatAttribute(local->writer, (xmlChar *)"uuid", "%s", uuid)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3101: example_checked: Example 3 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:301: example_assign: Example 4: Assigning: "x_ret" = return value from "xmlTextWriterWriteFormatAttribute(glfsh_writer, (xmlChar *)"hostUuid", "%s", (uuid ? uuid : "-"))". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:303: example_checked: Example 4 (cont.): "x_ret" has its value checked in "x_ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:224: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:224: cond_true: Condition "num_entries == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:225: check_return: Calling "xmlTextWriterWriteFormatElement" without checking return value (as is done elsewhere 275 out of 309 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10977: example_assign: Example 1: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(local->writer, (xmlChar *)"snapCount", "%d", snapcount)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10980: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:118: example_assign: Example 2: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"opRet", "%d", op_ret)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:120: example_checked: Example 2 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:305: example_assign: Example 3: Assigning: "x_ret" = return value from "xmlTextWriterWriteFormatElement(glfsh_writer, (xmlChar *)"name", "%s:%s", (remote_host ? remote_host : "-"), (remote_subvol ? remote_subvol : "-"))". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:309: example_checked: Example 3 (cont.): "x_ret" has its value checked in "x_ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2771: example_assign: Example 4: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"defaultValue", "%s", def_val)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2773: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2791: example_assign: Example 5: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"name", "%s", name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2793: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:224: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:224: cond_true: Condition "num_entries == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:228: cond_true: Condition "fmt_str", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:229: check_return: Calling "xmlTextWriterWriteFormatElement" without checking return value (as is done elsewhere 275 out of 309 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10977: example_assign: Example 1: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(local->writer, (xmlChar *)"snapCount", "%d", snapcount)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10980: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:118: example_assign: Example 2: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"opRet", "%d", op_ret)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:120: example_checked: Example 2 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:305: example_assign: Example 3: Assigning: "x_ret" = return value from "xmlTextWriterWriteFormatElement(glfsh_writer, (xmlChar *)"name", "%s:%s", (remote_host ? remote_host : "-"), (remote_subvol ? remote_subvol : "-"))". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:309: example_checked: Example 3 (cont.): "x_ret" has its value checked in "x_ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2771: example_assign: Example 4: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"defaultValue", "%s", def_val)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2773: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2791: example_assign: Example 5: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"name", "%s", name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2793: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:224: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:234: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:234: cond_true: Condition "ret == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:235: check_return: Calling "xmlTextWriterWriteFormatElement" without checking return value (as is done elsewhere 275 out of 309 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10977: example_assign: Example 1: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(local->writer, (xmlChar *)"snapCount", "%d", snapcount)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10980: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:118: example_assign: Example 2: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"opRet", "%d", op_ret)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:120: example_checked: Example 2 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:305: example_assign: Example 3: Assigning: "x_ret" = return value from "xmlTextWriterWriteFormatElement(glfsh_writer, (xmlChar *)"name", "%s:%s", (remote_host ? remote_host : "-"), (remote_subvol ? remote_subvol : "-"))". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:309: example_checked: Example 3 (cont.): "x_ret" has its value checked in "x_ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2771: example_assign: Example 4: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"defaultValue", "%s", def_val)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2773: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2791: example_assign: Example 5: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"name", "%s", name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2793: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:224: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:224: cond_false: Condition "num_entries == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:234: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:234: cond_false: Condition "ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:238: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:240: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:241: cond_true: Condition "fmt_str", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:242: check_return: Calling "xmlTextWriterWriteFormatElement" without checking return value (as is done elsewhere 275 out of 309 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10977: example_assign: Example 1: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(local->writer, (xmlChar *)"snapCount", "%d", snapcount)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10980: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:118: example_assign: Example 2: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"opRet", "%d", op_ret)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:120: example_checked: Example 2 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:305: example_assign: Example 3: Assigning: "x_ret" = return value from "xmlTextWriterWriteFormatElement(glfsh_writer, (xmlChar *)"name", "%s:%s", (remote_host ? remote_host : "-"), (remote_subvol ? remote_subvol : "-"))". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:309: example_checked: Example 3 (cont.): "x_ret" has its value checked in "x_ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2771: example_assign: Example 4: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"defaultValue", "%s", def_val)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2773: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2791: example_assign: Example 5: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"name", "%s", name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2793: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:224: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:234: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:234: cond_true: Condition "ret == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:240: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:249: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:250: cond_true: Condition "fmt_str", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:251: check_return: Calling "xmlTextWriterWriteFormatElement" without checking return value (as is done elsewhere 275 out of 309 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10977: example_assign: Example 1: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(local->writer, (xmlChar *)"snapCount", "%d", snapcount)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10980: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:118: example_assign: Example 2: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"opRet", "%d", op_ret)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:120: example_checked: Example 2 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:305: example_assign: Example 3: Assigning: "x_ret" = return value from "xmlTextWriterWriteFormatElement(glfsh_writer, (xmlChar *)"name", "%s:%s", (remote_host ? remote_host : "-"), (remote_subvol ? remote_subvol : "-"))". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:309: example_checked: Example 3 (cont.): "x_ret" has its value checked in "x_ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2771: example_assign: Example 4: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"defaultValue", "%s", def_val)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2773: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2791: example_assign: Example 5: Assigning: "ret" = return value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"name", "%s", name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2793: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:137: cond_false: Condition "glfsh_writer == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:139: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:143: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:143: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:148: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:148: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:151: check_return: Calling "xmlTextWriterStartElement" without checking return value (as is done elsewhere 117 out of 121 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:80: example_assign: Example 1: Assigning: "ret" = return value from "xmlTextWriterStartElement(*writer, (xmlChar *)"cliOutput")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:81: example_checked: Example 1 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:299: example_assign: Example 2: Assigning: "x_ret" = return value from "xmlTextWriterStartElement(glfsh_writer, (xmlChar *)"brick")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:300: example_checked: Example 2 (cont.): "x_ret" has its value checked in "x_ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:146: example_assign: Example 3: Assigning: "ret" = return value from "xmlTextWriterStartElement(glfsh_writer, (xmlChar *)"cliOutput")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:148: example_checked: Example 3 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2735: example_assign: Example 4: Assigning: "ret" = return value from "xmlTextWriterStartElement(*writer, (xmlChar *)"options")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2736: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2762: example_assign: Example 5: Assigning: "ret" = return value from "xmlTextWriterStartElement(writer, (xmlChar *)"option")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2763: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:137: cond_false: Condition "glfsh_writer == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:139: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:143: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:143: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:148: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:148: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:153: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:153: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:155: check_return: Calling "xmlTextWriterStartElement" without checking return value (as is done elsewhere 117 out of 121 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:80: example_assign: Example 1: Assigning: "ret" = return value from "xmlTextWriterStartElement(*writer, (xmlChar *)"cliOutput")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:81: example_checked: Example 1 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:299: example_assign: Example 2: Assigning: "x_ret" = return value from "xmlTextWriterStartElement(glfsh_writer, (xmlChar *)"brick")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:300: example_checked: Example 2 (cont.): "x_ret" has its value checked in "x_ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:146: example_assign: Example 3: Assigning: "ret" = return value from "xmlTextWriterStartElement(glfsh_writer, (xmlChar *)"cliOutput")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:148: example_checked: Example 3 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2735: example_assign: Example 4: Assigning: "ret" = return value from "xmlTextWriterStartElement(*writer, (xmlChar *)"options")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2736: example_checked: Example 4 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2762: example_assign: Example 5: Assigning: "ret" = return value from "xmlTextWriterStartElement(writer, (xmlChar *)"option")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2763: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1275: cond_false: Condition "argc < 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1279: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1282: switch: Switch case value "2". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1283: switch_case: Reached case "2". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1285: break: Breaking from switch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1337: switch_end: Reached end of switch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1340: cond_true: Condition "is_xml", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1350: cond_false: Condition "heal_op == GF_SHD_OP_GRANULAR_ENTRY_HEAL_ENABLE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1351: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1354: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1355: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1358: cond_false: Condition "!fs", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1363: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1365: cond_true: Condition "sys_access("/var/lib/glusterd/secure-access", 0) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1370: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1375: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1378: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1382: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1386: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1391: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1394: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1404: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1407: cond_false: Condition "!top_subvol", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1420: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1423: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1429: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1431: check_return: Calling "glfs_loc_touchup" without checking return value (as is done elsewhere 17 out of 19 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:357: example_assign: Example 1: Assigning: "ret" = return value from "glfs_loc_touchup(&loc)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:357: example_checked: Example 1 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:1197: example_assign: Example 2: Assigning: "ret" = return value from "glfs_loc_touchup(&loc)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:1197: example_checked: Example 2 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:528: example_assign: Example 3: Assigning: "ret" = return value from "glfs_loc_touchup(&loc)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:528: example_checked: Example 3 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:760: example_assign: Example 4: Assigning: "ret" = return value from "glfs_loc_touchup(&loc)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:760: example_checked: Example 4 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:1641: example_assign: Example 5: Assigning: "ret" = return value from "glfs_loc_touchup(&oldloc)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:1641: example_checked: Example 5 (cont.): "ret" has its value checked in "ret != 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-helpers.c:24: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-helpers.c:26: check_return: Calling "__fd_ctx_get" without checking return value (as is done elsewhere 17 out of 20 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:3132: example_assign: Example 1: Assigning: "ret" = return value from "__fd_ctx_get(fd, this, &ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:3134: example_checked: Example 1 (cont.): "ret" has its value checked in "ret == 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:138: example_assign: Example 2: Assigning: "ret" = return value from "__fd_ctx_get(fd, this, &tmp_val)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:139: example_checked: Example 2 (cont.): "ret" has its value checked in "ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:758: example_checked: Example 3: "__fd_ctx_get(fd, xl, &value)" has its value checked in "__fd_ctx_get(fd, xl, &value) != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:817: example_checked: Example 4: "__fd_ctx_get(fd, this, &ctx_int)" has its value checked in "__fd_ctx_get(fd, this, &ctx_int) == 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:424: example_assign: Example 5: Assigning: "ret" = return value from "__fd_ctx_get(fd, this, &tmp)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:425: example_checked: Example 5 (cont.): "ret" has its value checked in "ret != 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:1866: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:1869: cond_true: Condition "priv->health_check_active == _gf_true", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:1870: check_return: Calling "pthread_cancel" without checking return value (as is done elsewhere 4 out of 5 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:283: example_assign: Example 1: Assigning: "ret" = return value from "pthread_cancel(base->runner)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:284: example_checked: Example 1 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3548: example_assign: Example 2: Assigning: "ret" = return value from "pthread_cancel(thread)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3549: example_checked: Example 2 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-helpers.c:192: example_assign: Example 3: Assigning: "ret" = return value from "pthread_cancel(thread)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-helpers.c:193: example_checked: Example 3 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:42: example_assign: Example 4: Assigning: "ret" = return value from "pthread_cancel(thr_id)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:43: example_checked: Example 4 (cont.): "ret" has its value checked in "ret != 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:774: cond_true: Condition "!ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:775: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:863: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:864: cond_true: Condition "gf_dump_fd != -1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:866: check_return: Calling "sys_rename(tmp_dump_name, path)" without checking return value. It wraps a library function that may fail and return an error code. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:197:9: return_wrapper: The function wraps and returns the value of "rename(oldpath, newpath)". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:2884: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:2886: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:2890: check_return: Calling "quota_inode_ctx_get" without checking return value (as is done elsewhere 5 out of 6 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:1524: example_assign: Example 1: Assigning: "ret" = return value from "quota_inode_ctx_get(inode, this, &ctx, '\1')". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:1525: example_checked: Example 1 (cont.): "ret" has its value checked in "ret == -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:2040: example_assign: Example 2: Assigning: "ret" = return value from "quota_inode_ctx_get(inode, this, &ctx, '\1')". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:2041: example_checked: Example 2 (cont.): "ret" has its value checked in "ret == -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:4072: example_assign: Example 3: Assigning: "op_ret" = return value from "quota_inode_ctx_get(local->loc.inode, this, &ctx, '\1')". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:4073: example_checked: Example 3 (cont.): "op_ret" has its value checked in "op_ret < 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:3828: example_assign: Example 4: Assigning: "ret" = return value from "quota_inode_ctx_get(inode, this, &ctx, '\1')". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:3829: example_checked: Example 4 (cont.): "ret" has its value checked in "ret == -1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:3968: example_assign: Example 5: Assigning: "ret" = return value from "quota_inode_ctx_get(local->loc.inode, this, &ctx, '\1')". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:3969: example_checked: Example 5 (cont.): "ret" has its value checked in "ret < 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:189: cond_false: Condition "ctx == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:193: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:195: cond_false: Condition "ctx->cleanup_started", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:200: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:202: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:205: cond_false: Condition "reg", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:208: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:211: cond_false: Condition "!reg", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:214: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:216: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:219: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/timer.c:220: check_return: Calling "gf_thread_create" without checking return value (as is done elsewhere 33 out of 34 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs.c:982: example_assign: Example 1: Assigning: "ret" = return value from "gf_thread_create(&fs->poller, NULL, glfs_poller, fs)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs.c:983: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3607: example_assign: Example 2: Assigning: "ret" = return value from "gf_thread_create(thread, &attr, start_routine, arg)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3608: example_checked: Example 2 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:827: example_assign: Example 3: Assigning: "ret" = return value from "gf_thread_create(&newenv->proc[i].processor, NULL, syncenv_processor, &newenv->proc[i])". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:829: example_checked: Example 3 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/throttle-tbf.c:152: example_assign: Example 4: Assigning: "ret" = return value from "gf_thread_create(&curr->tokener, NULL, tbf_tokengenerator, curr)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/throttle-tbf.c:154: example_checked: Example 4 (cont.): "ret" has its value checked in "ret != 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4595: example_assign: Example 5: Assigning: "ret" = return value from "gf_thread_create(&rdma_ctx->rdma_cm_thread, NULL, gf_rdma_cm_event_handler, rdma_ctx->rdma_cm_event_channel)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4598: example_checked: Example 5 (cont.): "ret" has its value checked in "ret != 0". Error: CHECKED_RETURN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3216: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3217: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3220: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3221: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3240: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3241: check_return: Calling "gf_store_iter_destroy" without checking return value (as is done elsewhere 6 out of 7 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:2533: example_assign: Example 1: Assigning: "ret" = return value from "gf_store_iter_destroy(iter)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:2535: example_checked: Example 1 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:2355: example_assign: Example 2: Assigning: "ret" = return value from "gf_store_iter_destroy(iter)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:2356: example_checked: Example 2 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3046: example_assign: Example 3: Assigning: "ret" = return value from "gf_store_iter_destroy(iter)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3047: example_checked: Example 3 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:2736: example_assign: Example 4: Assigning: "ret" = return value from "gf_store_iter_destroy(iter)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:2738: example_checked: Example 4 (cont.): "ret" has its value checked in "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3673: example_assign: Example 5: Assigning: "ret" = return value from "gf_store_iter_destroy(iter)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3674: example_checked: Example 5 (cont.): "ret" has its value checked in "ret". Error: CONSTANT_EXPRESSION_RESULT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: pointless_string_compare: "strcmp("all", "all")" is always 0 because ""all"" is compared against itself. Error: CONSTANT_EXPRESSION_RESULT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1384: result_independent_of_operands: "l <= 9223372036854775807L" is always true regardless of the values of its operands. This occurs as the logical operand of "if". Error: CONSTANT_EXPRESSION_RESULT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:189: always_true_or: The "or" condition "op_errno != 2 || op_errno != 116" will always be true because "op_errno" cannot be equal to two different values at the same time, so it must be not equal to at least one of them. Error: CONSTANT_EXPRESSION_RESULT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:3683: result_independent_of_operands: "(local->op_ret < 0) ? -1 : (1 /* 0 == 0 */)" is always true regardless of the values of its operands. This occurs as the logical operand of "if". Error: CONSTANT_EXPRESSION_RESULT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2294: result_independent_of_operands: "size > 18446744073709551615UL /* 9223372036854775807L * 2UL + 1UL */" is always false regardless of the values of its operands. This occurs as the logical second operand of "||". Error: CONSTANT_EXPRESSION_RESULT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:879: result_independent_of_operands: "trav->dict.dict_len > 4294967295U /* 2147483647 * 2U + 1U */" is always false regardless of the values of its operands. This occurs as the logical operand of "if". Error: CONSTANT_EXPRESSION_RESULT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-helper.h:637: logical_vs_bitwise: The expression "fop_path == GFDB_FOP_UNDEL || GFDB_FOP_UNDEL_ALL" is suspicious because it performs a Boolean operation on a constant other than 0 or 1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-helper.h:637: remediation: Did you intend to also compare "fop_path" to "GFDB_FOP_UNDEL_ALL"? Error: CONSTANT_EXPRESSION_RESULT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:2017: always_true_or: The "or" condition "op_errno != 28 || op_errno != 107" will always be true because "op_errno" cannot be equal to two different values at the same time, so it must be not equal to at least one of them. Error: CONSTANT_EXPRESSION_RESULT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:788: result_independent_of_operands: "rsp->dict.dict_len > 4294967295U /* 2147483647 * 2U + 1U */" is always false regardless of the values of its operands. This occurs as the logical operand of "if". Error: COPY_PASTE_ERROR: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:2777: original: "ret = -1" looks like the original copy. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:2766: copy_paste_error: "ret" in "ret = -1" looks like a copy-paste error. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:2766: remediation: Should it say "err" instead? Error: COPY_PASTE_ERROR: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:1085: original: "head->total_size" looks like the original copy. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:1088: copy_paste_error: "head" in "head->total_size" looks like a copy-paste error. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:1088: remediation: Should it say "req" instead? Error: COPY_PASTE_ERROR: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:327: original: "stbuf->ia_atime" looks like the original copy. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:319: copy_paste_error: "ia_atime" in "stbuf->ia_atime" looks like a copy-paste error. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:319: remediation: Should it say "ia_mtime" instead? Error: COPY_PASTE_ERROR: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:247: original: "stbuf->ia_atime" looks like the original copy. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:239: copy_paste_error: "ia_atime" in "stbuf->ia_atime" looks like a copy-paste error. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:239: remediation: Should it say "ia_mtime" instead? Error: DC.STREAM_BUFFER: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1370: dont_call: "fscanf" assumes an arbitrarily large string, so callers must use correct precision specifiers or never use "fscanf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1370: remediation: Use correct precision specifiers or do your own parsing. Error: DC.STREAM_BUFFER: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3928: dont_call: "fscanf" assumes an arbitrarily large string, so callers must use correct precision specifiers or never use "fscanf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3928: remediation: Use correct precision specifiers or do your own parsing. Error: DC.STREAM_BUFFER: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:94: dont_call: "fscanf" assumes an arbitrarily large string, so callers must use correct precision specifiers or never use "fscanf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:94: remediation: Use correct precision specifiers or do your own parsing. Error: DC.STREAM_BUFFER: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:99: dont_call: "fscanf" assumes an arbitrarily large string, so callers must use correct precision specifiers or never use "fscanf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:99: remediation: Use correct precision specifiers or do your own parsing. Error: DC.STREAM_BUFFER: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:106: dont_call: "fscanf" assumes an arbitrarily large string, so callers must use correct precision specifiers or never use "fscanf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:106: remediation: Use correct precision specifiers or do your own parsing. Error: DC.STREAM_BUFFER: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:731: dont_call: "fscanf" assumes an arbitrarily large string, so callers must use correct precision specifiers or never use "fscanf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:731: remediation: Use correct precision specifiers or do your own parsing. Error: DC.STREAM_BUFFER: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:736: dont_call: "fscanf" assumes an arbitrarily large string, so callers must use correct precision specifiers or never use "fscanf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:736: remediation: Use correct precision specifiers or do your own parsing. Error: DC.STREAM_BUFFER: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:743: dont_call: "fscanf" assumes an arbitrarily large string, so callers must use correct precision specifiers or never use "fscanf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:743: remediation: Use correct precision specifiers or do your own parsing. Error: DC.WEAK_CRYPTO: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:449: dont_call: "random" should not be used for security related applications, as linear congruential algorithms are too easy to break. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:449: remediation: Use a compliant random number generator, such as "/dev/random" or "/dev/urandom" on Unix-like systems, and "CryptGenRandom" on Windows. Error: DC.WEAK_CRYPTO: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:182: dont_call: "rand" should not be used for security related applications, as linear congruential algorithms are too easy to break. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:182: remediation: Use a compliant random number generator, such as "/dev/random" or "/dev/urandom" on Unix-like systems, and "CryptGenRandom" on Windows. Error: DC.WEAK_CRYPTO: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:372: dont_call: "rand" should not be used for security related applications, as linear congruential algorithms are too easy to break. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:372: remediation: Use a compliant random number generator, such as "/dev/random" or "/dev/urandom" on Unix-like systems, and "CryptGenRandom" on Windows. Error: DC.WEAK_CRYPTO: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:1125: dont_call: "random" should not be used for security related applications, as linear congruential algorithms are too easy to break. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:1125: remediation: Use a compliant random number generator, such as "/dev/random" or "/dev/urandom" on Unix-like systems, and "CryptGenRandom" on Windows. Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:163: assignment: Assigning: "local" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:184: null: At condition "local", the value of "local" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:184: dead_error_condition: The condition "local" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:185: dead_error_line: Execution cannot reach this statement: "mem_put(local);". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:185: effectively_constant: Local variable "local" is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make "local" not remain constant. Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2493: notnull: At condition "ptr1", the value of "ptr1" cannot be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2493: dead_error_condition: The condition "!ptr1" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2494: dead_error_line: Execution cannot reach this statement: "goto out;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2495: notnull: At condition "ptr2", the value of "ptr2" cannot be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2495: dead_error_condition: The condition "!ptr2" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2496: dead_error_line: Execution cannot reach this statement: "goto out;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:28: assignment: Assigning: "inode_ctx" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:65: null: At condition "inode_ctx", the value of "inode_ctx" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:65: dead_error_condition: The condition "inode_ctx" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:66: dead_error_begin: Execution cannot reach this statement: "memcpy(buf, &inode_ctx->buf...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6635: assignment: Assigning: "snap" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6674: null: At condition "snap", the value of "snap" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6674: dead_error_condition: The condition "snap" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6675: dead_error_line: Execution cannot reach this statement: "glusterd_snap_remove(rsp_di...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:7314: notnull: At condition "token", the value of "token" cannot be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:7314: dead_error_condition: The condition "!token" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:7315: dead_error_begin: Execution cannot reach this statement: "ret = -1;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1018: cond_at_least: Condition "wordcount < 4", taking false branch. Now the value of "wordcount" is at least 4. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1209: at_least: At condition "wordcount < 4", the value of "wordcount" must be at least 4. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1209: dead_error_condition: The condition "wordcount < 4" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1210: dead_error_begin: Execution cannot reach this statement: "ret = -1;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:494: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:522: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:522: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:522: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:206: assignment: Assigning: "op_errno" = "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:236: const: At condition "op_errno == -1", the value of "op_errno" must be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:236: dead_error_condition: The condition "op_errno == -1" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:236: dead_error_line: Execution cannot reach the expression "*__errno_location()" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:33: assignment: Assigning: "op_errno" = "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:44: assignment: Assigning: "op_errno" = "12". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:57: assignment: Assigning: "op_errno" = "12". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:81: intervals: At condition "op_errno == -1", the value of "op_errno" must be in one of the following intervals: {[0,0], [12,12]}. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:81: dead_error_condition: The condition "op_errno == -1" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:81: dead_error_line: Execution cannot reach the expression "*__errno_location()" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:157: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:186: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:186: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:186: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:392: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:422: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:422: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:422: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:339: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:368: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:368: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:368: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:289: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:318: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:318: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:318: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:444: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:473: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:473: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:473: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:104: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:133: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:133: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:133: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:848: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:877: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:877: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:877: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:546: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:575: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:575: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:575: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:797: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:826: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:826: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:826: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:746: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:775: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:775: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:775: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:896: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:925: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:925: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:925: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:695: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:724: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:724: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:724: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:597: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:624: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:624: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:624: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:645: assignment: Assigning: "op_errno" = "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:674: const: At condition "op_errno == -1", the value of "op_errno" must be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:674: dead_error_condition: The condition "op_errno == -1" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:674: dead_error_line: Execution cannot reach the expression "op_errno" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:976: assignment: Assigning: "op_errno" = "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1025: const: At condition "op_errno", the value of "op_errno" must be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1025: dead_error_condition: The condition "op_errno" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1026: dead_error_line: Execution cannot reach this statement: "rsp.op_errno = gf_errno_to_...". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1026: effectively_constant: Local variable "op_errno" is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make "op_errno" not remain constant. Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:191: assignment: Assigning: "local" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:216: null: At condition "local", the value of "local" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:216: dead_error_condition: The condition "local" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:217: dead_error_line: Execution cannot reach this statement: "mem_put(local);". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:217: effectively_constant: Local variable "local" is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make "local" not remain constant. Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:3611: assignment: Assigning: "xml_err_flag" = "_gf_false". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:3655: const: At condition "xml_err_flag", the value of "xml_err_flag" must be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:3655: dead_error_condition: The condition "xml_err_flag" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:3656: dead_error_begin: Execution cannot reach this statement: "ret = cli_xml_output_str("v...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:2730: assignment: Assigning: "dict" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:2966: null: At condition "dict", the value of "dict" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:2966: dead_error_condition: The condition "dict" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:2967: dead_error_line: Execution cannot reach this statement: "dict_unref(dict);". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:2967: effectively_constant: Local variable "dict" is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make "dict" not remain constant. Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4201: assignment: Assigning: "op_errno" = "107". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4214: assignment: Assigning: "op_errno" = "107". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4233: assignment: Assigning: "op_errno" = "107". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4058: assignment: Assigning: "op_errno" = "12". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4130: assignment: Assigning: "op_errno" = "17". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4053: assignment: Assigning: "op_errno" = "1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4032: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4067: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4075: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4100: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4112: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4123: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4162: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4085: assignment: Assigning: "op_errno" = "95". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4171: assignment: Assigning: "op_errno" = "95". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4241: assignment: Assigning: "op_errno" = "95". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4281: intervals: At condition "op_errno == -1", the value of "op_errno" must be in one of the following intervals: {[1,1], [12,12], [17,17], [22,22], [95,95], [107,107]}. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4281: dead_error_condition: The condition "op_errno == -1" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4281: dead_error_line: Execution cannot reach the expression "*__errno_location()" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7458: assignment: Assigning: "stub" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7489: cond_null: Condition "stub == NULL", taking true branch. Now the value of "stub" is "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7553: null: At condition "stub", the value of "stub" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7553: dead_error_condition: The condition "stub" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7554: dead_error_line: Execution cannot reach this statement: "call_stub_destroy(stub);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3812: assignment: Assigning: "op_errno" = "12". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3807: assignment: Assigning: "op_errno" = "1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3791: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3820: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3828: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3869: intervals: At condition "op_errno == -1", the value of "op_errno" must be in one of the following intervals: {[1,1], [12,12], [22,22]}. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3869: dead_error_condition: The condition "op_errno == -1" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3869: dead_error_line: Execution cannot reach the expression "*__errno_location()" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8833: assignment: Assigning: "op_errno" = "12". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8817: assignment: Assigning: "op_errno" = "22". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8853: intervals: At condition "op_errno == -1", the value of "op_errno" must be in one of the following intervals: {[12,12], [22,22]}. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8853: dead_error_condition: The condition "op_errno == -1" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8853: dead_error_line: Execution cannot reach the expression "*__errno_location()" inside this statement: "op_errno = ((op_errno == -1...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-transaction.c:1191: assignment: Assigning: "xdata2" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-transaction.c:1272: assignment: Assigning: "xdata2" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-transaction.c:1255: cond_null: Condition "xdata2", taking false branch. Now the value of "xdata2" is "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-transaction.c:1276: null: At condition "xdata2", the value of "xdata2" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-transaction.c:1276: dead_error_condition: The condition "xdata2" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-transaction.c:1277: dead_error_line: Execution cannot reach this statement: "dict_unref(xdata2);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:1380: assignment: Assigning: "dict" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:1426: null: At condition "dict", the value of "dict" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:1426: dead_error_condition: The condition "dict" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:1427: dead_error_line: Execution cannot reach this statement: "dict_unref(dict);". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:1427: effectively_constant: Local variable "dict" is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make "dict" not remain constant. Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4833: assignment: Assigning: "ret" = "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4850: const: At condition "ret", the value of "ret" must be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4850: dead_error_condition: The condition "ret" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4851: dead_error_line: Execution cannot reach this statement: "goto out;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:11250: assignment: Assigning: "dict" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:11278: null: At condition "dict", the value of "dict" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:11278: dead_error_condition: The condition "dict" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:11279: dead_error_line: Execution cannot reach this statement: "dict_unref(dict);". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:11279: effectively_constant: Local variable "dict" is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make "dict" not remain constant. Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:1394: assignment: Assigning: "new_local" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:1411: cond_null: Condition "new_local == NULL", taking true branch. Now the value of "new_local" is "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:1434: null: At condition "new_local", the value of "new_local" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:1434: dead_error_condition: The condition "new_local" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:1435: dead_error_line: Execution cannot reach this statement: "quota_local_cleanup(new_loc...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:96: assignment: Assigning: "xdata" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:159: null: At condition "xdata", the value of "xdata" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:159: dead_error_condition: The condition "xdata" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:160: dead_error_line: Execution cannot reach this statement: "dict_unref(xdata);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mgmt.c:628: assignment: Assigning: "volname" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mgmt.c:704: null: At condition "volname", the value of "volname" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mgmt.c:704: dead_error_condition: The condition "volname" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mgmt.c:705: dead_error_line: Execution cannot reach this statement: "ret = gf_asprintf(op_errstr...". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mgmt.c:705: effectively_constant: Local variable "volname" is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make "volname" not remain constant. Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1752: arith_non_null: The result of pointer arithmetic "cli_rpc_prog->proctable + GLUSTER_CLI_BITROT" is never null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1752: assignment: Assigning: "proc" = "cli_rpc_prog->proctable + GLUSTER_CLI_BITROT". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1753: notnull: At condition "proc == NULL", the value of "proc" cannot be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1753: dead_error_condition: The condition "proc == NULL" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1754: dead_error_begin: Execution cannot reach this statement: "ret = -1;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c:1190: assignment: Assigning: "frame" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c:1260: null: At condition "frame", the value of "frame" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c:1260: dead_error_condition: The condition "frame" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c:1261: dead_error_line: Execution cannot reach this statement: "STACK_DESTROY(frame->root);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1637: cond_at_least: Condition "ret < 0", taking false branch. Now the value of "ret" is at least 1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1639: at_least: At condition "ret == 0", the value of "ret" must be at least 1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1653: cond_cannot_single: Condition "ret", taking true branch. Now the value of "ret" cannot be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1635: cond_cannot_single: Condition "ret = syncop_readdir(child->xl, fd, 131072UL, offset, &entries, NULL, NULL)", taking true branch. Now the value of "ret" cannot be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1639: cannot_single: At condition "ret == 0", the value of "ret" cannot be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1639: dead_error_condition: The condition "ret == 0" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1640: dead_error_line: Execution cannot reach this statement: "break;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:544: assignment: Assigning: "weight" = "4294967295U". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:594: const: At condition "weight == 0U", the value of "weight" must be equal to 4294967295. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:594: dead_error_condition: The condition "weight == 0U" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:597: dead_error_line: Execution cannot reach this statement: "fd_ctx_set(fd, this, 1UL);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:1021: assignment: Assigning: "listener" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:1246: null: At condition "listener != NULL", the value of "listener" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:1246: dead_error_condition: The condition "listener != NULL" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:1247: dead_error_line: Execution cannot reach this statement: "rpcsvc_listener_destroy(lis...". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:1247: effectively_constant: Local variable "listener" is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make "listener" not remain constant. Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5087: assignment: Assigning: "rsp_iobuf" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5119: cond_null: Condition "rsp_iobuf == NULL", taking true branch. Now the value of "rsp_iobuf" is "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5158: null: At condition "rsp_iobuf", the value of "rsp_iobuf" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5158: dead_error_condition: The condition "rsp_iobuf" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5159: dead_error_line: Execution cannot reach this statement: "iobuf_unref(rsp_iobuf);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5598: assignment: Assigning: "rsp_iobuf" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5644: assignment: Assigning: "rsp_iobuf" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5632: cond_null: Condition "rsp_iobuf == NULL", taking true branch. Now the value of "rsp_iobuf" is "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5675: null: At condition "rsp_iobuf", the value of "rsp_iobuf" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5675: dead_error_condition: The condition "rsp_iobuf" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5676: dead_error_line: Execution cannot reach this statement: "iobuf_unref(rsp_iobuf);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5698: assignment: Assigning: "rsp_iobuf" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5739: cond_null: Condition "rsp_iobuf == NULL", taking true branch. Now the value of "rsp_iobuf" is "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5775: null: At condition "rsp_iobuf", the value of "rsp_iobuf" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5775: dead_error_condition: The condition "rsp_iobuf" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5776: dead_error_line: Execution cannot reach this statement: "iobuf_unref(rsp_iobuf);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4368: arith_non_null: The result of pointer arithmetic "(char *)peerinfo->hostnames.next - 8UL" is never null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4368: assignment: Assigning: "address" = "(glusterd_peer_hostname_t *)((char *)peerinfo->hostnames.next - 8UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4371: notnull: At condition "address", the value of "address" cannot be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4371: dead_error_condition: The condition "!address" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4372: dead_error_begin: Execution cannot reach this statement: "ret = -1;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:9891: cond_notnull: Condition "aggr", taking true branch. Now the value of "aggr" is not "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:9892: assignment: Assigning: "ctx_dict" = "aggr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:9901: notnull: At condition "ctx_dict", the value of "ctx_dict" cannot be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:9901: dead_error_condition: The condition "!ctx_dict" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:9902: dead_error_line: Execution cannot reach this statement: "goto out;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2389: assignment: Assigning: "cr_cond_init" = "_gf_false". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2481: const: At condition "cr_cond_init", the value of "cr_cond_init" must be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2481: dead_error_condition: The condition "cr_cond_init" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2482: dead_error_line: Execution cannot reach this statement: "pthread_cond_destroy(&priv-...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1556: arith_non_null: The result of pointer arithmetic "(char *)svc->programs.next - 104UL" is never null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1556: assignment: Assigning: "prog" = "(rpcsvc_program_t *)((char *)svc->programs.next - 104UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1565: notnull: At condition "prog == NULL", the value of "prog" cannot be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1565: dead_error_condition: The condition "prog == NULL" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1566: dead_error_begin: Execution cannot reach this statement: "ret = -1;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:484: cond_at_least: Condition "encoding > CHANGELOG_ENCODE_MIN", taking true branch. Now the value of "encoding" is at least 1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:484: cond_between: Condition "encoding < CHANGELOG_ENCODE_MAX", taking true branch. Now the value of "encoding" is between 1 and 2. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:506: between: When switching on "encoding", the value of "encoding" must be between 1 and 2. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:475: cond_cannot_single: Condition "encoding == -1", taking false branch. Now the value of "encoding" cannot be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:506: cannot_single: When switching on "encoding", the value of "encoding" cannot be equal to -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:506: dead_error_condition: The switch value "encoding" cannot reach the default case. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:522: dead_error_begin: Execution cannot reach this statement: "default:". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4779: assignment: Assigning: "rsp_iobuf" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4804: cond_null: Condition "rsp_iobuf == NULL", taking true branch. Now the value of "rsp_iobuf" is "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4843: null: At condition "rsp_iobuf", the value of "rsp_iobuf" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4843: dead_error_condition: The condition "rsp_iobuf" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4844: dead_error_line: Execution cannot reach this statement: "iobuf_unref(rsp_iobuf);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4870: assignment: Assigning: "rsp_iobuf" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4915: assignment: Assigning: "rsp_iobuf" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4902: cond_null: Condition "rsp_iobuf == NULL", taking true branch. Now the value of "rsp_iobuf" is "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4961: null: At condition "rsp_iobuf", the value of "rsp_iobuf" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4961: dead_error_condition: The condition "rsp_iobuf" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4962: dead_error_line: Execution cannot reach this statement: "iobuf_unref(rsp_iobuf);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3402: assignment: Assigning: "rsp_iobuf" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3437: cond_null: Condition "rsp_iobuf == NULL", taking true branch. Now the value of "rsp_iobuf" is "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3483: null: At condition "rsp_iobuf", the value of "rsp_iobuf" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3483: dead_error_condition: The condition "rsp_iobuf" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3484: dead_error_line: Execution cannot reach this statement: "iobuf_unref(rsp_iobuf);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1293: assignment: Assigning: "heal_op" = "GF_SHD_OP_GRANULAR_ENTRY_HEAL_ENABLE". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1284: assignment: Assigning: "heal_op" = "GF_SHD_OP_INDEX_SUMMARY". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1290: assignment: Assigning: "heal_op" = "GF_SHD_OP_INDEX_SUMMARY". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1306: assignment: Assigning: "heal_op" = "GF_SHD_OP_SBRAIN_HEAL_FROM_BIGGER_FILE". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1312: assignment: Assigning: "heal_op" = "GF_SHD_OP_SBRAIN_HEAL_FROM_BRICK". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1323: assignment: Assigning: "heal_op" = "GF_SHD_OP_SBRAIN_HEAL_FROM_BRICK". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1309: assignment: Assigning: "heal_op" = "GF_SHD_OP_SBRAIN_HEAL_FROM_LATEST_MTIME". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1288: assignment: Assigning: "heal_op" = "GF_SHD_OP_SPLIT_BRAIN_FILES". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1303: assignment: Assigning: "heal_op" = "GF_SHD_OP_SPLIT_BRAIN_FILES". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1433: intervals: When switching on "heal_op", the value of "heal_op" must be in one of the following intervals: {[3,3], [6,6], [10,11], [14,15]}. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1433: dead_error_condition: The switch value "heal_op" cannot reach the default case. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1449: dead_error_begin: Execution cannot reach this statement: "default:". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:775: assignment: Assigning: "next_offset" = "0L". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:811: const: At condition "next_offset != 0L", the value of "next_offset" must be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:811: dead_error_condition: The condition "next_offset != 0L" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:812: dead_error_line: Execution cannot reach this statement: "next_subvol = prev;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:38: cond_at_least: Condition "idx < 256UL", taking false branch. Now the value of "idx" is at least 256. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:41: cond_at_least: Condition "idx < 16384UL", taking false branch. Now the value of "idx" is at least 16384. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:44: cond_at_least: Condition "idx < 1048576UL", taking false branch. Now the value of "idx" is at least 1048576. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:47: cond_at_least: Condition "idx < 67108864UL", taking false branch. Now the value of "idx" is at least 67108864. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:50: at_least: At condition "idx < 0UL", the value of "idx" must be at least 67108864. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:50: dead_error_condition: The condition "idx < 0UL" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:51: dead_error_line: Execution cannot reach this statement: "vec = &base->tv1.vec[base->...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:2017: cond_const: Condition "op_errno != 28", taking false branch. Now the value of "op_errno" is equal to 28. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:2017: const: At condition "op_errno != 107", the value of "op_errno" must be equal to 28. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:2017: dead_error_condition: The condition "op_errno != 107" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:2020: dead_error_line: Execution cannot reach this statement: "if (op_errno == 107) { de...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:822: assignment: Assigning: "cookie" = "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:950: const: At condition "cookie", the value of "cookie" must be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:950: dead_error_condition: The condition "cookie" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:951: dead_error_line: Execution cannot reach this statement: "rsp.op_errno = cookie;". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:951: effectively_constant: Local variable "cookie" is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make "cookie" not remain constant. Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:1616: cond_at_most: Condition "ret < 0", taking true branch. Now the value of "ret" is at most -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:1620: cond_at_most: Condition "ret < 0", taking true branch. Now the value of "ret" is at most -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:1658: at_most: At condition "ret < 0", the value of "ret" must be at most -1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:1658: dead_error_condition: The condition "ret < 0" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:1658: dead_error_line: Execution cannot reach the expression "prev_dirty" inside this statement: "if (ret < 0 || prev_dirty) ...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1072: assignment: Assigning: "add_section" = "_gf_true". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1088: const: At condition "add_section == _gf_false", the value of "add_section" must be equal to 1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1088: dead_error_condition: The condition "add_section == _gf_false" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1089: dead_error_line: Execution cannot reach this statement: "gf_proc_dump_add_section(ke...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:390: assignment: Assigning: "client" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:817: null: At condition "client != NULL", the value of "client" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:817: dead_error_condition: The condition "client != NULL" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:824: dead_error_begin: Execution cannot reach this statement: "gf_client_put(client, NULL);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:786: assignment: Assigning: "from" = "0UL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:979: const: At condition "from", the value of "from" must be equal to 0. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:979: dead_error_condition: The condition "!from" must be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:979: dead_error_line: Execution cannot reach the expression "to" inside this statement: "if (!from || !to) ret = -1;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4988: assignment: Assigning: "rsp_iobuf" = "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5015: cond_null: Condition "rsp_iobuf == NULL", taking true branch. Now the value of "rsp_iobuf" is "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5062: null: At condition "rsp_iobuf", the value of "rsp_iobuf" must be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5062: dead_error_condition: The condition "rsp_iobuf" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5063: dead_error_line: Execution cannot reach this statement: "iobuf_unref(rsp_iobuf);". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.c:192: assignment: Assigning: "section_added" = "_gf_true". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.c:218: const: At condition "_gf_false == section_added", the value of "section_added" must be equal to 1. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.c:218: dead_error_condition: The condition "_gf_false == section_added" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.c:219: dead_error_line: Execution cannot reach this statement: "gf_proc_dump_add_section("g...". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-peer-utils.c:594: arith_non_null: The result of pointer arithmetic "(char *)&friend->hostnames - 8UL" is never null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-peer-utils.c:594: assignment: Assigning: "address" = "(glusterd_peer_hostname_t *)((char *)&friend->hostnames - 8UL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-peer-utils.c:596: notnull: At condition "address", the value of "address" cannot be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-peer-utils.c:596: dead_error_condition: The condition "!address" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-peer-utils.c:597: dead_error_begin: Execution cannot reach this statement: "ret = -1;". Error: DEADCODE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-snapshot.c:37: arith_non_null: The result of pointer arithmetic "cli_rpc_prog->proctable + GLUSTER_CLI_SNAP" is never null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-snapshot.c:37: assignment: Assigning: "proc" = "cli_rpc_prog->proctable + GLUSTER_CLI_SNAP". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-snapshot.c:38: notnull: At condition "proc == NULL", the value of "proc" cannot be "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-snapshot.c:38: dead_error_condition: The condition "proc == NULL" cannot be true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-snapshot.c:39: dead_error_begin: Execution cannot reach this statement: "ret = -1;". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:870: assign_zero: Assigning: "this" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:873: cond_false: Condition "!req", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:873: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:876: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:879: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:950: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:951: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:952: cond_true: Condition "op_errstr[0] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:955: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:157: assign_zero: Assigning: "cbk" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:166: cond_true: Condition "type == 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:168: cond_false: Condition "fd == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:170: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:173: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:176: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:178: cond_true: Condition "fd != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:180: var_deref_model: Passing null pointer "cbk" to "ec_finodelk", which dereferences it. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:845:5: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:845:5: cond_false: Condition "this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:845:5: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:908:1: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:909:5: cond_false: Condition "fop != NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:911:12: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:912:9: deref_parm: Directly dereferencing parameter "func". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:157: assign_zero: Assigning: "cbk" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:166: cond_true: Condition "type == 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:168: cond_true: Condition "fd == NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:170: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:172: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:173: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:176: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:178: cond_false: Condition "fd != NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:186: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:187: var_deref_model: Passing null pointer "cbk" to "ec_inodelk", which dereferences it. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:708:5: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:708:5: cond_false: Condition "this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:708:5: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:767:1: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:768:5: cond_false: Condition "fop != NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:770:12: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:771:9: deref_parm: Directly dereferencing parameter "func". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3338: assign_zero: Assigning: "ip" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3353: cond_false: Condition "ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3357: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3359: cond_true: Condition "res != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3360: no_write_call: Although "get_ip_from_addrinfo" does overwrite "ip" on some paths, it also contains at least one feasible path which does not overwrite it. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3363: cond_false: Condition "gf_is_loopback_localhost(res->ai_addr, hostname)", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3363: var_deref_model: Passing null pointer "ip" to "gf_interface_search", which dereferences it. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3201:9: cond_false: Condition "ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3205:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3207:9: cond_true: Condition "ifa != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3208:17: cond_true: Condition "!ifa->ifa_addr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3214:25: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3250:9: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3207:9: cond_true: Condition "ifa != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3208:17: cond_false: Condition "!ifa->ifa_addr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3215:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3218:17: cond_true: Condition "family != 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3218:17: cond_false: Condition "family != 10", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3219:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3221:17: cond_false: Condition "family == 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3226:17: cond_false: Condition "ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3231:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3240:17: cond_true: Condition "pct", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3244:17: deref_parm_in_call: Function "strncmp" dereferences "ip". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4636: assign_zero: Assigning: "svc" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4642: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4642: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4645: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4650: cond_false: Condition "strcmp(server, priv->shd_svc.name) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4652: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4652: cond_false: Condition "strcmp(server, priv->nfs_svc.name) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4654: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4654: cond_false: Condition "strcmp(server, priv->quotad_svc.name) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4656: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4656: cond_false: Condition "strcmp(server, priv->bitd_svc.name) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4658: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4658: cond_false: Condition "strcmp(server, priv->scrub_svc.name) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4659: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:4662: var_deref_op: Dereferencing null pointer "svc". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7375: assign_zero: Assigning: "tmpptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7382: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7382: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7385: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7387: cond_false: Condition "0 == option_cnt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7387: cond_true: Condition "option_cnt == 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7387: cond_false: Condition "!strcmp(options, "nfs ")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7391: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7394: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7397: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7403: cond_true: Condition "1 /* 1 && (size_t)(void const *)&" "[1] - (size_t)(void const *)" " == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7403: cond_true: Condition "(char const *)" "[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7403: cond_true: Condition "(char const *)" "[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7403: var_deref_model: Passing "&tmpptr" to "__strtok_r_1c", which dereferences null "tmpptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:758: cond_false: Condition "__fd_ctx_get(fd, xl, &value) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:758: cond_true: Condition "value == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:761: cond_false: Condition "ctx != NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:772: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:761: var_compare_op: Comparing "ctx" to null implies that "ctx" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:773: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:777: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:780: cond_true: Condition "fd->anonymous", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.c:782: var_deref_op: Dereferencing null pointer "ctx". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1652: assign_zero: Assigning: "local" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1656: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1656: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1708: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: cond_true: Condition "op_errno != frame->root->error", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: cond_true: Condition "frame->this->ctx->measure_latency", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1709: var_deref_op: Dereferencing null pointer "local". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4234: cond_true: Condition "!local", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4234: var_compare_op: Comparing "local" to null implies that "local" might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4235: var_deref_op: Dereferencing null pointer "local". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:676: assign_zero: Assigning: "inode" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:681: cond_true: Condition "local->fd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:681: cond_false: Condition "local->fd->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:683: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:683: cond_false: Condition "local->loc.inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:684: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:686: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:693: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:695: cond_false: Condition "shard_modify_size_and_block_count(&local->postbuf, dict)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:699: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:701: cond_true: Condition "local->fop == GF_FOP_FTRUNCATE", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:702: var_deref_model: Passing null pointer "inode" to "shard_inode_ctx_set", which dereferences it. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:170:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:170:9: deref_parm_field_in_call: Function "pthread_spin_lock" dereferences an offset off "inode". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:157: assign_zero: Assigning: "strtokptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:159: cond_false: Condition "eliminate == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:162: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:164: cond_true: Condition "1 /* 1 && (size_t)(void const *)&","[1] - (size_t)(void const *)"," == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:164: cond_true: Condition "(char const *)","[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:164: cond_true: Condition "(char const *)","[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:164: var_deref_model: Passing "&strtokptr" to "__strtok_r_1c", which dereferences null "strtokptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:332: cond_true: Condition "frame == NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:332: var_compare_op: Comparing "frame" to null implies that "frame" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:333: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:333: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:336: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:395: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:396: var_deref_op: Dereferencing null pointer "frame". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3162: assign_zero: Assigning: "savPtr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3169: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"("[1] - (size_t)(void const *)"(" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3169: cond_true: Condition "(char const *)"("[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3169: cond_true: Condition "(char const *)"("[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:3169: var_deref_model: Passing "&savPtr" to "__strtok_r_1c", which dereferences null "savPtr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5511: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5511: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5512: cond_false: Condition "!op_errno", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5512: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5514: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5514: cond_true: Condition "!op_errstr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5514: var_compare_op: Comparing "op_errstr" to null implies that "op_errstr" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5517: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5591: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5593: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5593: cond_true: Condition "err_str[0] != 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:5596: var_deref_op: Dereferencing null pointer "op_errstr". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4015: assign_zero: Assigning: "this" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4021: cond_true: Condition "!peerinfo", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4023: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4058: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4059: cond_false: Condition "peerinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4062: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4063: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:5780: assign_zero: Assigning: "save_ptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:5787: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:5791: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:5799: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:5801: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:5801: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:5801: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:5801: var_deref_model: Passing "&save_ptr" to "__strtok_r_1c", which dereferences null "save_ptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2062: cond_true: Condition "!this", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2062: var_compare_op: Comparing "this" to null implies that "this" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2063: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2122: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2123: cond_true: Condition "_gf_true == is_alloc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2123: cond_false: Condition "req.buf.buf_val", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2124: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2126: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1738: cond_true: Condition "!dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1738: cond_true: Condition "!this", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1738: var_compare_op: Comparing "this" to null implies that "this" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1738: cond_false: Condition "!peerinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1739: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1741: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1738: cond_true: Condition "!dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1738: cond_true: Condition "!this", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1738: var_compare_op: Comparing "this" to null implies that "this" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1738: cond_true: Condition "!peerinfo", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1739: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1768: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1769: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:175: assign_zero: Assigning: "local" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:181: cond_true: Condition "!frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:181: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:227: label: Reached label "err". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:228: var_deref_op: Dereferencing null pointer "local". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:238: assign_zero: Assigning: "local" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:242: cond_true: Condition "!frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:242: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:303: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:304: var_deref_op: Dereferencing null pointer "local". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2702: assign_zero: Assigning: "save_ptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2706: cond_false: Condition "!words", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2706: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2707: cond_true: Condition "!options", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2710: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2711: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2724: cond_false: Condition "wordcount < 3", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2725: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2727: cond_true: Condition "i <= 3", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2727: cond_true: Condition "i < wordcount - 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2728: cond_true: Condition "gsyncd_glob_check(words[i])", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2730: cond_true: Condition "gsyncd_url_check(words[i])", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2732: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2734: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2736: cond_true: Condition "glob", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2736: cond_false: Condition "!slavei", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2746: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2747: cond_true: Condition "slavei", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2749: cond_false: Condition "slavei == 3", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2750: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2751: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2768: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2775: cond_false: Condition "masteri", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2776: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2777: cond_true: Condition "slavei", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2777: cond_false: Condition "!glob", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2778: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2781: cond_false: Condition "!w", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2782: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2784: cond_false: Condition "strcmp(w, "create") == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2789: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2789: cond_false: Condition "strcmp(w, "status") == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2794: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2794: cond_true: Condition "strcmp(w, "config") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2797: cond_false: Condition "!slavei", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2798: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2799: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2825: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2828: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2829: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2831: cond_false: Condition "strtail("detail", (char *)words[wordcount - 1])", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2841: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2843: cond_false: Condition "type == GF_GSYNC_OPTION_TYPE_DELETE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2853: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2855: cond_false: Condition "type != GF_GSYNC_OPTION_TYPE_CONFIG", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2857: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2863: cond_false: Condition "masteri", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2868: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2869: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2869: cond_true: Condition "slavei", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2875: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"@"[1] - (size_t)(void const *)"@" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2875: cond_true: Condition "(char const *)"@"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2875: cond_true: Condition "(char const *)"@"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2875: var_deref_model: Passing "&save_ptr" to "__strtok_r_1c", which dereferences null "save_ptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:954: cond_true: Condition "!child", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:954: var_compare_op: Comparing "child" to null implies that "child" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:955: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:979: label: Reached label "err". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:980: var_deref_model: Passing null pointer "child" to "loc_wipe", which dereferences it. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.c:765:9: deref_parm: Directly dereferencing parameter "loc". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:259: assign_zero: Assigning: "local" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:263: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:263: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:264: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:264: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:288: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:290: cond_true: Condition "this_call_cnt == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:291: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:291: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:291: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:291: var_deref_op: Dereferencing null pointer "local". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4960: cond_false: Condition "local->fd", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4960: var_compare_op: Comparing "local->fd" to null implies that "local->fd" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4963: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4963: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4967: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4968: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4970: cond_true: Condition "!local->layout", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:4971: var_deref_op: Dereferencing null pointer "local->fd". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8050: assign_zero: Assigning: "local" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8054: cond_true: Condition "!this->private", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8054: cond_true: Condition "this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8054: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8083: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8086: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8086: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8086: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:8086: var_deref_op: Dereferencing null pointer "local". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2358: cond_true: Condition "!priv", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2358: var_compare_op: Comparing "priv" to null implies that "priv" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2362: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2393: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2394: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2395: var_deref_op: Dereferencing null pointer "priv". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7449: assign_zero: Assigning: "local" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7460: cond_true: Condition "!this->private", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7460: cond_true: Condition "this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7460: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7547: label: Reached label "err". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7548: var_deref_op: Dereferencing null pointer "local". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4327: cond_true: Condition "!frame", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4327: var_compare_op: Comparing "frame" to null implies that "frame" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4329: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4342: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4343: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4350: var_deref_op: Dereferencing null pointer "frame". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3011: assign_zero: Assigning: "saveptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3015: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3015: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3016: cond_false: Condition "!frame->local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3016: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3022: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3025: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3032: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3036: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3043: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3045: cond_true: Condition "1 /* 1 && (size_t)(void const *)&" "[1] - (size_t)(void const *)" " == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3045: cond_true: Condition "(char const *)" "[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3045: cond_true: Condition "(char const *)" "[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3045: var_deref_model: Passing "&saveptr" to "__strtok_r_1c", which dereferences null "saveptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3237: assign_zero: Assigning: "local" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3240: cond_true: Condition "!frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3240: cond_true: Condition "this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3240: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3277: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3278: cond_true: Condition "this_call_cnt == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:3282: var_deref_op: Dereferencing null pointer "local". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:166: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:169: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:172: cond_false: Condition "!newval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:175: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:178: cond_false: Condition "!tok", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:181: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:183: cond_true: Condition "tok", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:185: cond_false: Condition "i == 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:186: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:188: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:183: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:183: cond_false: Condition "tok", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:188: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:183: var_compare_op: Comparing "tok" to null implies that "tok" might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:190: var_deref_model: Passing null pointer "tok" to "gf_strdup", which dereferences it. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:185:9: deref_parm_in_call: Function "strlen" dereferences "src". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4864: cond_true: Condition "!this", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4864: var_compare_op: Comparing "this" to null implies that "this" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4867: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4900: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4901: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4903: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:54: cond_false: Condition "local->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:78: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:80: cond_false: Condition "local->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:87: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:80: var_compare_op: Comparing "local->inode" to null implies that "local->inode" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:94: cond_true: Condition "i < priv->child_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:95: cond_true: Condition "!(local->replies + i).valid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:96: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:132: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:94: cond_true: Condition "i < priv->child_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:95: cond_true: Condition "!(local->replies + i).valid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:96: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:132: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:94: cond_true: Condition "i < priv->child_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:95: cond_false: Condition "!(local->replies + i).valid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:96: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:97: cond_false: Condition "(local->replies + i).op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:98: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:107: cond_true: Condition "local->op_ret < (local->replies + i).op_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:119: cond_true: Condition "(local->replies + i).xdata", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:120: cond_false: Condition "local->xdata_rsp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:121: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:125: cond_true: Condition "(local->replies + i).xattr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:126: cond_true: Condition "local->xattr_rsp", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:132: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:94: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:94: cond_false: Condition "i < priv->child_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:132: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-write.c:135: var_deref_model: Passing null pointer "local->inode" to "afr_set_in_flight_sb_status", which dereferences it. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: cond_true: Condition "__i < priv->child_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: cond_true: Condition "local->transaction.failed_subvols[__i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: cond_true: Condition "__i < priv->child_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: cond_true: Condition "local->transaction.failed_subvols[__i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: cond_true: Condition "__i < priv->child_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: cond_false: Condition "local->transaction.failed_subvols[__i]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: cond_false: Condition "__i < priv->child_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:13: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:290:9: cond_false: Condition "({...}) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:292:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:294:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:294:9: deref_parm_field_in_call: Function "pthread_spin_lock" dereferences an offset off "inode". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5334: assign_zero: Assigning: "local" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5336: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5336: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5337: cond_true: Condition "!frame->local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5337: cond_true: Condition "this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5337: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5358: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5359: cond_true: Condition "!call_cnt", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5360: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5360: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5360: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5360: var_deref_op: Dereferencing null pointer "local". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3793: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3793: cond_true: Condition "!frame", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3793: var_compare_op: Comparing "frame" to null implies that "frame" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3794: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3794: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3795: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3841: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3842: var_deref_op: Dereferencing null pointer "frame". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3960: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3960: cond_true: Condition "!frame", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3960: var_compare_op: Comparing "frame" to null implies that "frame" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3961: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3961: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3962: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4008: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4009: var_deref_op: Dereferencing null pointer "frame". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:29: assign_zero: Assigning: "cbk" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:33: cond_true: Condition "&ans->list != &fop->cbk_list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:34: cond_false: Condition "ans->op_ret >= 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:40: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:41: cond_true: Condition "ans->op_errno == 11", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:42: switch: Switch case value "0U". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:43: switch_case: Reached case "0U". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:48: break: Breaking from switch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:49: switch_end: Reached end of switch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:52: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:33: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:33: cond_false: Condition "&ans->list != &fop->cbk_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:52: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:54: cond_true: Condition "error == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:55: cond_true: Condition "gf_bits_count(locked | notlocked) >= ec->fragments", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:56: cond_true: Condition "notlocked == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:57: cond_true: Condition "fop->answer == NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:58: alias_transfer: Assigning: "fop->answer" = "cbk". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-locks.c:61: var_deref_model: Passing "fop" to "ec_update_good", which dereferences null "fop->answer". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:188:5: cond_true: Condition "fop->expected != 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:188:5: cond_true: Condition "fop->parent == NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:189:9: deref_parm_in_call: Function "ec_check_status" dereferences "fop->answer". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:138:5: cond_true: Condition "!ec_fop_needs_name_heal(fop)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:138:5: cond_false: Condition "!ec_fop_needs_heal(fop)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:140:5: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-common.c:142:5: deref_parm: Directly dereferencing parameter "fop->answer". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:50: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:50: cond_true: Condition "!frame->this", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:50: var_compare_op: Comparing "frame->this" to null implies that "frame->this" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:55: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:83: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: cond_true: Condition "rsp.op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: cond_true: Condition "rsp.op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: cond_true: Condition "rsp.op_errno != frame->root->error", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c:84: var_deref_op: Dereferencing null pointer "frame->this". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4890: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4891: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4895: cond_false: Condition "gf_rdma_init(this)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4902: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4906: cond_false: Condition "rdma_ctx != NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4915: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4906: var_compare_op: Comparing "rdma_ctx" to null implies that "rdma_ctx" might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4917: var_deref_model: Passing null pointer "&rdma_ctx->lock" to "pthread_mutex_unlock", which dereferences it. Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4862: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4862: cond_true: Condition "!frame", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4862: var_compare_op: Comparing "frame" to null implies that "frame" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4863: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4863: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4864: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4948: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4949: cond_true: Condition "!count", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:4951: var_deref_op: Dereferencing null pointer "frame". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:392: assign_zero: Assigning: "tmp_str" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:397: cond_false: Condition "!tail", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:398: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:400: cond_false: Condition "strncmp(tail, "addr.", 5) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:404: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:408: cond_false: Condition "!tail", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:409: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:413: cond_false: Condition "!tail", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:414: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:416: cond_true: Condition "*tail == '.'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:421: cond_false: Condition "!strcmp(v->data, "*")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:424: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:427: cond_true: Condition "1 /* 1 && (size_t)(void const *)&","[1] - (size_t)(void const *)"," == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:427: cond_true: Condition "(char const *)","[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:427: cond_true: Condition "(char const *)","[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:427: var_deref_model: Passing "&tmp_str" to "__strtok_r_1c", which dereferences null "tmp_str". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:288: assign_zero: Assigning: "saveptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:293: cond_true: Condition "i < 4", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:294: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"."[1] - (size_t)(void const *)"." == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:294: cond_true: Condition "(char const *)"."[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:294: cond_true: Condition "(char const *)"."[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:294: var_deref_model: Passing "&saveptr" to "__strtok_r_1c", which dereferences null "saveptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:176: assign_zero: Assigning: "real_path" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:185: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:185: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:186: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:186: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:187: cond_false: Condition "!loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:187: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:193: cond_true: Condition "__is_root_gfid(loc->pargfid)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:193: cond_true: Condition "loc->name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:193: cond_false: Condition "strcmp(loc->name, ".glusterfs") == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:201: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:205: cond_false: Condition "gf_uuid_is_null(loc->pargfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:205: cond_false: Condition "loc->name == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:208: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:209: cond_false: Condition "gf_uuid_is_null(loc->pargfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:209: cond_false: Condition "!loc->name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:209: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:209: cond_true: Condition "loc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:209: cond_true: Condition "loc->path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:209: cond_false: Condition "loc->path[0] == '/'", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:209: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:209: cond_false: Condition "*__errno_location() != 40", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:209: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:211: cond_true: Condition "gf_uuid_is_null(loc->inode->gfid)", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:212: var_deref_model: Passing null pointer "real_path" to "posix_gfid_heal", which dereferences it. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:1482:9: cond_false: Condition "!xattr_req", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:1483:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:1485:9: deref_parm_in_call: Function "sys_lstat" dereferences "path". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:25:9: deref_parm_in_call: Function "lstat" dereferences "path". [Note: The source code implementation of the function has been overridden by a builtin model.] Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7631: assign_zero: Assigning: "tmpptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7637: cond_true: Condition "1 /* 1 && (size_t)(void const *)&" "[1] - (size_t)(void const *)" " == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7637: cond_true: Condition "(char const *)" "[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7637: cond_true: Condition "(char const *)" "[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7637: var_deref_model: Passing "&tmpptr" to "__strtok_r_1c", which dereferences null "tmpptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7554: assign_zero: Assigning: "tmpptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7559: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7559: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7561: cond_true: Condition "!conf", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7564: cond_true: Condition "1 /* 1 && (size_t)(void const *)&" "[1] - (size_t)(void const *)" " == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7564: cond_true: Condition "(char const *)" "[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7564: cond_true: Condition "(char const *)" "[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7564: var_deref_model: Passing "&tmpptr" to "__strtok_r_1c", which dereferences null "tmpptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7679: assign_zero: Assigning: "tmpptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7684: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7684: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7686: cond_true: Condition "!conf", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7689: cond_true: Condition "1 /* 1 && (size_t)(void const *)&" "[1] - (size_t)(void const *)" " == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7689: cond_true: Condition "(char const *)" "[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7689: cond_true: Condition "(char const *)" "[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:7689: var_deref_model: Passing "&tmpptr" to "__strtok_r_1c", which dereferences null "tmpptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6699: assign_zero: Assigning: "curdir" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6705: cond_true: Condition "!path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6706: cond_true: Condition "!path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6707: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6738: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6739: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6745: cond_true: Condition "*in_use", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6746: var_deref_model: Passing null pointer "curdir" to "strcmp", which dereferences it. Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6705: cond_true: Condition "!path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6706: cond_true: Condition "!path", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6706: var_compare_op: Comparing "path" to null implies that "path" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6707: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6738: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6739: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6745: cond_true: Condition "*in_use", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6746: var_deref_model: Passing null pointer "path" to "strcmp", which dereferences it. Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client.c:1267: assign_zero: Assigning: "tmp" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client.c:1272: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client.c:1272: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client.c:1272: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client.c:1272: var_deref_model: Passing "&tmp" to "__strtok_r_1c", which dereferences null "tmp". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:1093: assign_zero: Assigning: "ptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:1103: cond_false: Condition "!handle", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:1106: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:1107: cond_true: Condition "*brick->vg == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:1109: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:1109: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:1109: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:1109: var_deref_model: Passing "&ptr" to "__strtok_r_1c", which dereferences null "ptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:2511: assign_zero: Assigning: "fd" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:2518: cond_false: Condition "!state", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:2518: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:2519: cond_false: Condition "(fd_t *)(uintptr_t)fri->fh", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:2524: cond_true: Condition "this->history", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:2524: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:2524: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:2524: var_deref_op: Dereferencing null pointer "fd". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:481: cond_false: Condition "!wb_inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:481: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:482: cond_false: Condition "!stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:482: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:485: cond_false: Condition "!req", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:486: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:501: cond_false: Condition "stub->args.fd != NULL", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:501: var_compare_op: Comparing "stub->args.fd" to null implies that "stub->args.fd" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:504: cond_true: Condition "inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:507: cond_true: Condition "stub->fop == GF_FOP_WRITE", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:525: var_deref_op: Dereferencing null pointer "stub->args.fd". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:97: cond_true: Condition "post == NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:97: var_compare_op: Comparing "post" to null implies that "post" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:98: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:126: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:127: cond_true: Condition "ret != 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:128: var_deref_op: Dereferencing null pointer "post". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4583: cond_true: Condition "rdma_ctx == NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4583: var_compare_op: Comparing "rdma_ctx" to null implies that "rdma_ctx" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4584: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4605: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4606: cond_true: Condition "ret < 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4607: var_deref_op: Dereferencing null pointer "rdma_ctx". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:143: cond_false: Condition "!path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:143: cond_true: Condition "!parent", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:143: var_compare_op: Comparing "parent" to null implies that "parent" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:145: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:230: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:231: var_deref_op: Dereferencing null pointer "parent". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:181: cond_true: Condition "!local", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:181: var_compare_op: Comparing "local" to null implies that "local" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:184: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:237: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:238: var_deref_op: Dereferencing null pointer "local". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:967: cond_false: Condition "ctx->mgmt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:968: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:970: cond_true: Condition "cmd_args->volfile_server_port", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:973: cond_false: Condition "cmd_args->volfile_server", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:975: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:975: cond_false: Condition "cmd_args->volfile_server_transport", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:978: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:975: var_compare_op: Comparing "cmd_args->volfile_server_transport" to null implies that "cmd_args->volfile_server_transport" might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:982: var_deref_model: Passing null pointer "cmd_args->volfile_server_transport" to "strcmp", which dereferences it. Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1781: cond_true: Condition "!this", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1781: var_compare_op: Comparing "this" to null implies that "this" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1782: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1840: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1841: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1860: cond_true: Condition "!this", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1860: var_compare_op: Comparing "this" to null implies that "this" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1861: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1921: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1922: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1981: cond_true: Condition "!this", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1981: var_compare_op: Comparing "this" to null implies that "this" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1982: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2042: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2043: cond_true: Condition "_gf_true == is_alloc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2043: cond_false: Condition "req.buf.buf_val", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2044: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2046: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:527: assign_zero: Assigning: "tmp_str1" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:535: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:535: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:535: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:536: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:540: cond_true: Condition "1 /* 1 && (size_t)(void const *)&","[1] - (size_t)(void const *)"," == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:540: cond_true: Condition "(char const *)","[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:540: cond_true: Condition "(char const *)","[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:541: cond_true: Condition "stripe_str", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:545: cond_false: Condition "!stripe_opt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:547: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:549: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:549: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:549: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:549: var_deref_model: Passing "&tmp_str1" to "__strtok_r_1c", which dereferences null "tmp_str1". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:3501: assign_zero: Assigning: "defrag" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:3507: cond_true: Condition "!tier_fix_layout_arg", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:3507: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:3580: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:3581: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:3582: var_deref_op: Dereferencing null pointer "defrag". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:272: cond_false: Condition "!tokens", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:273: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:277: cond_true: Condition "token = *tokenp", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:278: cond_false: Condition "!tokenp[1]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:281: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:285: cond_false: Condition "!word", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:286: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:287: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:277: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:277: cond_false: Condition "token = *tokenp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:287: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:277: var_compare_op: Comparing "token" to null implies that "token" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:289: cond_false: Condition "!word", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:290: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:292: var_deref_model: Passing null pointer "token" to "cli_rl_get_matches", which dereferences it. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rl.c:235:9: deref_parm_in_call: Function "strlen" dereferences "text". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2098: assign_zero: Assigning: "contribution" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2101: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2101: cond_false: Condition "loc.parent == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2102: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2104: cond_false: Condition "!loc_is_root(&loc)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2114: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2116: cond_false: Condition "buf.ia_type == IA_IFDIR", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2120: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2120: var_deref_model: Passing null pointer "contribution" to "mq_inspect_file_xattr", which dereferences it. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2045:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2055:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2057:9: cond_true: Condition "contribution->gfid != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2057:9: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2057:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2057:9: cond_true: Condition "_priv->version > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2057:9: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2057:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2058:9: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2059:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2063:9: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2065:16: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2066:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker-quota.c:2066:17: deref_parm_field_in_call: Function "pthread_spin_lock" dereferences an offset off "contribution". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-system.c:443: assign_zero: Assigning: "saveptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-system.c:454: cond_false: Condition "wordcount < 3", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-system.c:457: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-system.c:460: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-system.c:461: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-system.c:463: cond_true: Condition "1 /* 1 && (size_t)(void const *)&" "[1] - (size_t)(void const *)" " == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-system.c:463: cond_true: Condition "(char const *)" "[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-system.c:463: cond_true: Condition "(char const *)" "[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-system.c:463: var_deref_model: Passing "&saveptr" to "__strtok_r_1c", which dereferences null "saveptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1218: assign_zero: Assigning: "args" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1221: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1221: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1263: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1264: cond_false: Condition "rsp.op_errstr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1265: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1267: cond_false: Condition "req->rpc_status != -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1268: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1269: var_deref_op: Dereferencing null pointer "args". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1215: assign_zero: Assigning: "frame" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1221: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1221: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1263: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1264: cond_false: Condition "rsp.op_errstr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1265: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1267: cond_true: Condition "req->rpc_status != -1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1268: var_deref_op: Dereferencing null pointer "frame". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:279: assign_zero: Assigning: "tmpstr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:283: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:283: cond_false: Condition "!bricks", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:284: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:287: cond_true: Condition "1 /* 1 && (size_t)(void const *)&","[1] - (size_t)(void const *)"," == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:287: cond_true: Condition "(char const *)","[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:287: cond_true: Condition "(char const *)","[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:287: var_deref_model: Passing "&tmpstr" to "__strtok_r_1c", which dereferences null "tmpstr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:512: assign_zero: Assigning: "tmp_str1" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:520: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:520: cond_false: Condition "!defrag", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:520: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:521: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:526: cond_true: Condition "1 /* 1 && (size_t)(void const *)&","[1] - (size_t)(void const *)"," == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:526: cond_true: Condition "(char const *)","[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:526: cond_true: Condition "(char const *)","[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:527: cond_true: Condition "pattern_str", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:531: cond_false: Condition "!pattern_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:533: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:534: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:534: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:534: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c:534: var_deref_model: Passing "&tmp_str1" to "__strtok_r_1c", which dereferences null "tmp_str1". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:359: cond_true: Condition "!frame", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:359: var_compare_op: Comparing "frame" to null implies that "frame" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:360: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:360: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:361: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:374: label: Reached label "err". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:379: var_deref_op: Dereferencing null pointer "frame". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2060: cond_true: Condition "!this", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2060: var_compare_op: Comparing "this" to null implies that "this" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2061: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2079: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2080: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2080: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2080: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:788: assign_zero: Assigning: "this" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:802: cond_true: Condition "ret != 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:803: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-xlator-ctx.c:23: cond_false: Condition "!ctr_hard_link", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-xlator-ctx.c:23: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-xlator-ctx.c:25: cond_false: Condition "*ctr_hard_link", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-xlator-ctx.c:26: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-xlator-ctx.c:25: var_compare_op: Comparing "*ctr_hard_link" to null implies that "*ctr_hard_link" might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-xlator-ctx.c:27: var_deref_op: Dereferencing null pointer "*ctr_hard_link". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:613: assign_zero: Assigning: "tmp_str1" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_false: Condition "trav_xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:635: cond_false: Condition "!switch_buf_array", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:636: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_false: Condition "trav_xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "1 /* 1 && (size_t)(void const *)&";"[1] - (size_t)(void const *)";" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "(char const *)";"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "(char const *)";"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:654: cond_true: Condition "switch_str", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:658: cond_false: Condition "!switch_opt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:661: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: var_deref_model: Passing "&tmp_str1" to "__strtok_r_1c", which dereferences null "tmp_str1". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:612: assign_zero: Assigning: "tmp_str" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_false: Condition "trav_xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:635: cond_false: Condition "!switch_buf_array", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:636: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_false: Condition "trav_xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "1 /* 1 && (size_t)(void const *)&";"[1] - (size_t)(void const *)";" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "(char const *)";"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "(char const *)";"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: var_deref_model: Passing "&tmp_str" to "__strtok_r_1c", which dereferences null "tmp_str". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:609: assign_zero: Assigning: "tmp" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_false: Condition "trav_xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:635: cond_false: Condition "!switch_buf_array", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:636: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_false: Condition "trav_xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "1 /* 1 && (size_t)(void const *)&";"[1] - (size_t)(void const *)";" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "(char const *)";"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "(char const *)";"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:654: cond_true: Condition "switch_str", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:658: cond_false: Condition "!switch_opt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:661: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:664: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:664: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:664: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:665: cond_false: Condition "strncmp(pattern, "*", 2) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:675: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:678: cond_true: Condition "childs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:680: cond_true: Condition "1 /* 1 && (size_t)(void const *)&","[1] - (size_t)(void const *)"," == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:680: cond_true: Condition "(char const *)","[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:680: cond_true: Condition "(char const *)","[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:680: var_deref_model: Passing "&tmp" to "__strtok_r_1c", which dereferences null "tmp". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:824: assign_zero: Assigning: "tmp_str" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:831: switch: Switch case value "ARGP_BRICK_PORT_KEY". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1094: switch_case: Reached case "ARGP_BRICK_PORT_KEY". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1097: cond_true: Condition "1 /* 1 && (size_t)(void const *)&","[1] - (size_t)(void const *)"," == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1097: cond_true: Condition "(char const *)","[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1097: cond_true: Condition "(char const *)","[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1097: var_deref_model: Passing "&tmp_str" to "__strtok_r_1c", which dereferences null "tmp_str". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3558: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3558: cond_true: Condition "!frame", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3558: var_compare_op: Comparing "frame" to null implies that "frame" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3559: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3559: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3560: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3632: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:3633: var_deref_op: Dereferencing null pointer "frame". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:816: assign_zero: Assigning: "saveptr" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:819: cond_false: Condition "path == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:819: cond_false: Condition "table == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:821: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:826: cond_true: Condition "1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:827: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:827: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:827: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:827: var_deref_model: Passing "&saveptr" to "__strtok_r_1c", which dereferences null "saveptr". path:/usr/include/bits/string2.h:198:3: cond_true: Condition "__s == NULL", taking true branch. /usr/include/bits/string2.h:199:5: var_assign_parm: Assigning: "__s" = "*__nextp". /usr/include/bits/string2.h:200:3: deref_var: Dereferencing "__s" (which is a copy of "__nextp*"). Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc.c:431: assign_zero: Assigning: "this" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc.c:437: cond_true: Condition "!data", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc.c:437: var_deref_op: Dereferencing null pointer "this". Error: FORWARD_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:90: assign_zero: Assigning: "frame" = "NULL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:102: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:106: cond_true: Condition "!iobref", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:107: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:143: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:147: var_deref_op: Dereferencing null pointer "frame". Error: FORWARD_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:102: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:106: cond_false: Condition "!iobref", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:107: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:110: cond_true: Condition "!frame", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:110: var_compare_op: Comparing "frame" to null implies that "frame" might be null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:111: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:143: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/gf_attach.c:147: var_deref_op: Dereferencing null pointer "frame". Error: IDENTICAL_BRANCHES: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:911: implicit_else: The code from the above if-then branch is identical to the code after the if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:909: identical_branches: The same code is executed when the condition "ret < 0" is true or false, because the code in the if-then branch and after the if statement is identical. Should the if statement be removed? Error: IDENTICAL_BRANCHES: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:436: implicit_else: The code from the above if-then branch is identical to the code after the if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:434: identical_branches: The same code is executed when the condition "ret < 0" is true or false, because the code in the if-then branch and after the if statement is identical. Should the if statement be removed? Error: IDENTICAL_BRANCHES: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:2830: implicit_else: The code from the above if-then branch is identical to the code after the if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:2828: identical_branches: The same code is executed when the condition "ret < 0" is true or false, because the code in the if-then branch and after the if statement is identical. Should the if statement be removed? Error: INFINITE_LOOP: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop-utils.c:419: loop_top: Top of the loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop-utils.c:420: loop_bottom: Bottom of the loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop-utils.c:419: loop_condition: If "qlen == max_qlen" is initially true then it will remain true. Error: INTEGER_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.h:63: cond_false: Condition "value != 0", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.h:63: overflow: Subtract operation overflows on operands "value" and "1U". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-helpers.h:63: overflow_sink: Overflowed or truncated value (or a value computed from an overflowed or truncated value) "value != 0U && (value & value - 1U) == 0U" used as return value. Error: LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1874: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1874: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1875: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1875: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1877: cond_false: Condition "!priv->_db_conn", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1877: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1878: cond_false: Condition "!in_dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1878: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1879: cond_false: Condition "!out_dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1879: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1881: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1881: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1885: cond_false: Condition "strncmp(ctr_ipc_ops, "gfdb.ipc-ctr-clear-op", strlen("gfdb.ipc-ctr-clear-op")) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1893: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1893: cond_false: Condition "strncmp(ctr_ipc_ops, "gfdb.ipc-ctr-query-op", strlen("gfdb.ipc-ctr-query-op")) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1924: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1924: cond_false: Condition "strncmp(ctr_ipc_ops, "gfdb.ipc-ctr-get-db-version", strlen("gfdb.ipc-ctr-get-db-version")) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1939: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1939: cond_false: Condition "strncmp(ctr_ipc_ops, "gfdb.ipc-ctr-get-db-parm", strlen("gfdb.ipc-ctr-get-db-parm")) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1959: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1959: cond_true: Condition "strncmp(ctr_ipc_ops, "gfdb.ipc-ctr-set-compact-pragma", strlen("gfdb.ipc-ctr-set-compact-pragma")) == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1962: lock: "pthread_mutex_lock" locks "priv->compact_lock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1963: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1967: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1969: cond_false: Condition "priv->compact_active", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1969: cond_false: Condition "priv->compact_mode_switched", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1975: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1981: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1985: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1987: cond_true: Condition "result", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1993: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:1996: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:2036: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/changetimerecorder.c:2037: missing_unlock: Returning without unlocking "priv->compact_lock". Error: LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1751: cond_true: Condition "local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1752: cond_true: Condition "local->color == FOP_COLOR_BLACK", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1753: lock: "pthread_mutex_lock" locks "priv->dm.drain_black_mutex". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1754: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1754: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1757: cond_true: Condition "priv->dm.black_fop_cnt == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1757: cond_true: Condition "priv->dm.drain_wait_black == _gf_true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1761: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1761: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1790: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1791: missing_unlock: Returning without unlocking "priv->dm.drain_black_mutex". Error: LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1751: cond_true: Condition "local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1752: cond_false: Condition "local->color == FOP_COLOR_BLACK", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1770: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1771: lock: "pthread_mutex_lock" locks "priv->dm.drain_white_mutex". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1772: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1772: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1775: cond_true: Condition "priv->dm.white_fop_cnt == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1775: cond_true: Condition "priv->dm.drain_wait_white == _gf_true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1779: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1779: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1790: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1791: missing_unlock: Returning without unlocking "priv->dm.drain_white_mutex". Error: LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2105: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2106: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2108: cond_true: Condition "event == GF_EVENT_TRANSLATOR_OP", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2114: switch: Switch case value "1". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2180: switch_case: Reached case "1". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2185: cond_false: Condition "!priv->active", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2185: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2186: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2190: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2192: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2194: cond_false: Condition "priv->bflags.barrier_ext == _gf_true", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2197: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2199: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2201: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2208: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2211: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2211: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2217: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2217: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2221: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2225: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2226: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2229: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2236: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2243: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2245: lock: "pthread_mutex_lock" locks "priv->bn.bnotify_mutex". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2246: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2246: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2252: cond_true: Condition "priv->bn.bnotify == _gf_true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2256: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2256: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2292: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2293: cond_true: Condition "bclean_req", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2296: missing_unlock: Returning without unlocking "priv->bn.bnotify_mutex". Error: LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:65: cond_false: Condition "use_spinlocks", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:65: lock: "pthread_mutex_lock" locks "cache->gc_lock.mutex". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:69: cond_true: Condition "i < 4", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:70: cond_true: Condition "!agl->gl_list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:71: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:101: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:69: cond_true: Condition "i < 4", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:70: cond_false: Condition "!agl->gl_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:71: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:72: cond_false: Condition "agl->gl_id != id", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:73: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:83: cond_false: Condition "agl->gl_uid != uid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:83: cond_false: Condition "agl->gl_gid != gid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:84: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:92: cond_true: Condition "now < agl->gl_deadline", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:93: missing_unlock: Returning without unlocking "cache->gc_lock.mutex". Error: LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:65: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:65: lock: "pthread_spin_lock" locks "cache->gc_lock.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:69: cond_true: Condition "i < 4", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:70: cond_true: Condition "!agl->gl_list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:71: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:101: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:69: cond_true: Condition "i < 4", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:70: cond_true: Condition "!agl->gl_list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:71: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:101: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:69: cond_true: Condition "i < 4", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:70: cond_false: Condition "!agl->gl_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:71: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:72: cond_false: Condition "agl->gl_id != id", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:73: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:83: cond_false: Condition "agl->gl_uid != uid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:83: cond_false: Condition "agl->gl_gid != gid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:84: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:92: cond_true: Condition "now < agl->gl_deadline", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gidcache.c:93: missing_unlock: Returning without unlocking "cache->gc_lock.spinlock". Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:1130: unterminated_case: The case for value "IA_IFREG" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:1144: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2167: unterminated_case: The case for value "GF_OP_CMD_DETACH_START" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2177: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:3322: unterminated_case: The case for value "GD_OP_REMOVE_BRICK" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:3331: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:2089: unterminated_case: The case for value "GF_UPCALL_RECALL_LEASE" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c:2092: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/name.c:450: unterminated_case: The case for value "2" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/name.c:453: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/name.c:513: unterminated_case: The case for value "27" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/name.c:517: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/name.c:685: unterminated_case: The case for value "27" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/name.c:689: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/name.c:586: unterminated_case: The case for value "27" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/name.c:590: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/name.c:461: unterminated_case: The case for value "2" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/name.c:464: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/name.c:720: unterminated_case: The case for value "27" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/name.c:724: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/name.c:529: unterminated_case: The case for value "27" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/name.c:532: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/name.c:618: unterminated_case: The case for value "27" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/name.c:621: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rebalance.c:673: unterminated_case: The case for value "GF_DEFRAG_CMD_START_LAYOUT_FIX" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rebalance.c:694: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rebalance.c:654: unterminated_case: The case for value "GF_DEFRAG_CMD_START_TIER" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rebalance.c:672: fallthrough: The above case falls through to this one. Error: MISSING_BREAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:511: unterminated_case: The case for value "GF_DEFRAG_CMD_DETACH_COMMIT" is not terminated by a 'break' statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:524: fallthrough: The above case falls through to this one. Error: MISSING_LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:672: cond_false: Condition "!mem_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:676: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:679: cond_false: Condition "!pool_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:679: cond_false: Condition "pool_list->poison", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:681: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:688: cond_false: Condition "!retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:690: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:692: missing_lock: Accessing "retval->magic" without holding lock "per_thread_pool_list.lock". Elsewhere, "pooled_obj_hdr.magic" is accessed with "per_thread_pool_list.lock" held 1 out of 2 times (1 of these accesses strongly imply that it is necessary). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:726: example_lock: Example 1: Locking "per_thread_pool_list.lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:727: example_access: Example 1 (cont.): "pooled_obj_hdr.magic" is accessed with lock "per_thread_pool_list.lock" held. Error: MISSING_LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1964: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1976: missing_lock: Accessing "scrub_monitor->done" without holding lock "br_monitor.donelock". Elsewhere, "br_monitor.done" is accessed with "br_monitor.donelock" held 4 out of 5 times. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:978: example_lock: Example 1: Locking "br_monitor.donelock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:980: example_access: Example 1 (cont.): "br_monitor.done" is accessed with lock "br_monitor.donelock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1069: example_lock: Example 2: Locking "br_monitor.donelock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1071: example_access: Example 2 (cont.): "br_monitor.done" is accessed with lock "br_monitor.donelock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1024: example_lock: Example 3: Locking "br_monitor.donelock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:1026: example_access: Example 3 (cont.): "br_monitor.done" is accessed with lock "br_monitor.donelock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:770: example_lock: Example 4: Locking "br_monitor.donelock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c:772: example_access: Example 4 (cont.): "br_monitor.done" is accessed with lock "br_monitor.donelock" held. Error: MISSING_LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1146: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1146: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1148: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1148: cond_false: Condition "this->children->next", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1154: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1156: cond_true: Condition "!this->parents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1163: cond_false: Condition "conf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1165: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1169: cond_false: Condition "val_ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1169: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1171: cond_false: Condition "val_ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1171: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1173: cond_false: Condition "val_ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1173: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1175: missing_lock: Accessing "conf->files.next" without holding lock "ra_conf.conf_lock". Elsewhere, "ra_file.next" is accessed with "ra_conf.conf_lock" held 5 out of 6 times. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:588: example_lock: Example 1: Locking "ra_conf.conf_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:590: example_access: Example 1 (cont.): "ra_file.next" is accessed with lock "ra_conf.conf_lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:146: example_lock: Example 2: Locking "ra_conf.conf_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:148: example_access: Example 2 (cont.): "ra_file.next" is accessed with lock "ra_conf.conf_lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:146: example_lock: Example 3: Locking "ra_conf.conf_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:149: example_access: Example 3 (cont.): "ra_file.next" is accessed with lock "ra_conf.conf_lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:68: example_lock: Example 4: Locking "ra_conf.conf_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:70: example_access: Example 4 (cont.): "ra_file.next" is accessed with lock "ra_conf.conf_lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:68: example_lock: Example 5: Locking "ra_conf.conf_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:71: example_access: Example 5 (cont.): "ra_file.next" is accessed with lock "ra_conf.conf_lock" held. Error: MISSING_LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1146: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1146: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1148: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1148: cond_false: Condition "this->children->next", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1154: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1156: cond_true: Condition "!this->parents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1163: cond_false: Condition "conf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1165: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1169: cond_false: Condition "val_ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1169: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1171: cond_false: Condition "val_ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1171: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1173: cond_false: Condition "val_ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1173: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1176: missing_lock: Accessing "conf->files.prev" without holding lock "ra_conf.conf_lock". Elsewhere, "ra_file.prev" is accessed with "ra_conf.conf_lock" held 5 out of 6 times. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:588: example_lock: Example 1: Locking "ra_conf.conf_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:591: example_access: Example 1 (cont.): "ra_file.prev" is accessed with lock "ra_conf.conf_lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:146: example_lock: Example 2: Locking "ra_conf.conf_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:150: example_access: Example 2 (cont.): "ra_file.prev" is accessed with lock "ra_conf.conf_lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:146: example_lock: Example 3: Locking "ra_conf.conf_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:151: example_access: Example 3 (cont.): "ra_file.prev" is accessed with lock "ra_conf.conf_lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:68: example_lock: Example 4: Locking "ra_conf.conf_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:72: example_access: Example 4 (cont.): "ra_file.prev" is accessed with lock "ra_conf.conf_lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:68: example_lock: Example 5: Locking "ra_conf.conf_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:73: example_access: Example 5 (cont.): "ra_file.prev" is accessed with lock "ra_conf.conf_lock" held. Error: MISSING_LOCK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3934: cond_false: Condition "this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3938: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3941: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3943: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3952: missing_lock: Accessing "priv->sock" without holding lock "socket_private_t.lock". Elsewhere, "socket_private_t.sock" is accessed with "socket_private_t.lock" held 10 out of 12 times. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3019: example_lock: Example 1: Locking "socket_private_t.lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3058: example_access: Example 1 (cont.): "socket_private_t.sock" is accessed with lock "socket_private_t.lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3353: example_lock: Example 2: Locking "socket_private_t.lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3364: example_access: Example 2 (cont.): "socket_private_t.sock" is accessed with lock "socket_private_t.lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3353: example_lock: Example 3: Locking "socket_private_t.lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3415: example_access: Example 3 (cont.): "socket_private_t.sock" is accessed with lock "socket_private_t.lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:2588: example_lock: Example 4: Locking "socket_private_t.lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:2593: example_access: Example 4 (cont.): "socket_private_t.sock" is accessed with lock "socket_private_t.lock" held. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:2672: example_lock: Example 5: Locking "socket_private_t.lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:2786: example_access: Example 5 (cont.): "socket_private_t.sock" is accessed with lock "socket_private_t.lock" held. Error: MISSING_LOCK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:511: missing_lock: Accessing "pool_list->poison" without holding lock "pool_lock". Elsewhere, "per_thread_pool_list.poison" is accessed with "pool_lock" held 1 out of 2 times (1 of these accesses strongly imply that it is necessary). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:628: example_lock: Example 1: Locking "pool_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:629: example_access: Example 1 (cont.): "per_thread_pool_list.poison" is accessed with lock "pool_lock" held. Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12664: switch_on_enum: Switching on "cmd". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12665: first_enum_type: This case, "GF_DEFRAG_CMD_DETACH_START", implies the effective type of "cmd" is "enum gf_cli_defrag_type". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12666: mixed_enums: But this case, "GF_OP_CMD_DETACH_COMMIT_FORCE", is of different type "enum gf1_op_commands". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12664: switch_on_enum: Switching on "cmd". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12665: first_enum_type: This case, "GF_DEFRAG_CMD_DETACH_START", implies the effective type of "cmd" is "enum gf_cli_defrag_type". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12667: mixed_enums: But this case, "GF_OP_CMD_DETACH_COMMIT", is of different type "enum gf1_op_commands". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12664: switch_on_enum: Switching on "cmd". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12665: first_enum_type: This case, "GF_DEFRAG_CMD_DETACH_START", implies the effective type of "cmd" is "enum gf_cli_defrag_type". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12668: mixed_enums: But this case, "GF_OP_CMD_DETACH_START", is of different type "enum gf1_op_commands". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1725: first_enum_type: Enum type for "cmd" is established as "enum gf1_op_commands" here. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1732: mixed_enums: Mixing enum types "enum gf1_op_commands" and "enum gf_cli_defrag_type" for "cmd". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1725: first_enum_type: Enum type for "cmd" is established as "enum gf1_op_commands" here. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1746: mixed_enums: Mixing enum types "enum gf1_op_commands" and "enum gf_cli_defrag_type" for "cmd". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:3045: first_enum_type: Enum type for "ret" is established as "enum tier_mode_" here. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:3016: mixed_enums: Mixing enum types "enum tier_mode_" and "enum _gf_boolean" for "ret". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:3045: first_enum_type: Enum type for "ret" is established as "enum tier_mode_" here. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:3026: mixed_enums: Mixing enum types "enum tier_mode_" and "enum _gf_boolean" for "ret". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2721: mixed_enums: Mixing enum types "enum gf1_op_commands" and "enum gf_cli_defrag_type" for "cmd". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2721: mixed_enums: Mixing enum types "enum gf_cli_defrag_type" and "enum gf1_op_commands" for "defrag_cmd". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:472: first_enum_type: Enum type for "rpc_err" is established as "enum accept_stat" here. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:506: mixed_enums: Mixing enum types "enum accept_stat" and "enum reject_stat" for "rpc_err". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:472: first_enum_type: Enum type for "rpc_err" is established as "enum accept_stat" here. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:516: mixed_enums: Mixing enum types "enum accept_stat" and "enum reject_stat" for "rpc_err". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:633: first_enum_type: Enum type for "rpc_err" is established as "enum reject_stat" here. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:673: mixed_enums: Mixing enum types "enum reject_stat" and "enum accept_stat" for "rpc_err". Error: MIXED_ENUMS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:633: first_enum_type: Enum type for "rpc_err" is established as "enum reject_stat" here. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:680: mixed_enums: Mixing enum types "enum reject_stat" and "enum accept_stat" for "rpc_err". Error: NEGATIVE_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2039: var_tested_neg: Assigning: "source" = a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2043: cond_false: Condition "!xattr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2046: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_true: Condition "__i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_true: Condition "sources[__i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_true: Condition "__i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_true: Condition "sources[__i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_false: Condition "__i < ec->nodes", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: cond_true: Condition "__i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: cond_true: Condition "healed_sinks[__i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: cond_true: Condition "__i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: cond_true: Condition "healed_sinks[__i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: cond_false: Condition "__i < ec->nodes", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_true: Condition "({...}) + ({...}) == ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2054: cond_true: Condition "i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2055: cond_false: Condition "sources[i]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2058: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2059: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2054: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2054: cond_true: Condition "i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2055: cond_false: Condition "sources[i]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2058: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2059: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2054: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2054: cond_false: Condition "i < ec->nodes", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2059: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2061: cond_true: Condition "i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2062: cond_true: Condition "healed_sinks[i]", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2063: negative_returns: Passing variable "source" to a parameter that cannot be negative. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:1995:9: index: Indexing "versions" with "source". Error: NEGATIVE_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2039: var_tested_neg: Assigning: "source" = a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2043: cond_false: Condition "!xattr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2046: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_true: Condition "__i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_true: Condition "sources[__i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_true: Condition "__i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_true: Condition "sources[__i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_false: Condition "__i < ec->nodes", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: cond_true: Condition "__i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: cond_true: Condition "healed_sinks[__i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: cond_true: Condition "__i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: cond_true: Condition "healed_sinks[__i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: cond_false: Condition "__i < ec->nodes", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2051: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2050: cond_true: Condition "({...}) + ({...}) == ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2054: cond_true: Condition "i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2055: cond_false: Condition "sources[i]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2058: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2059: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2054: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2054: cond_true: Condition "i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2055: cond_false: Condition "sources[i]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2058: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2059: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2054: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2054: cond_false: Condition "i < ec->nodes", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2059: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2061: cond_true: Condition "i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2062: cond_false: Condition "healed_sinks[i]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2068: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2070: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2061: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2061: cond_false: Condition "i < ec->nodes", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2070: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2072: cond_false: Condition "!erase_dirty", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2073: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2075: cond_true: Condition "i < ec->nodes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2076: cond_true: Condition "sources[i]", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2077: negative_returns: Passing variable "source" to a parameter that cannot be negative. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:1995:9: index: Indexing "versions" with "source". Error: NEGATIVE_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2139: var_tested_neg: Assigning: "op_errno" = a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2144: cond_false: Condition "!is_upcall_enabled(this)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2144: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2147: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2147: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2150: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2153: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2156: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2157: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2165: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2166: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2166: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2166: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2166: cond_true: Condition "1 /* -1 < 0 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2166: negative_returns: "op_errno" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2175: var_tested_neg: Assigning: "op_errno" = a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2180: cond_false: Condition "!is_upcall_enabled(this)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2180: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2183: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2183: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2186: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2189: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2192: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2193: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2201: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2202: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2202: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2202: cond_true: Condition "1 /* -1 < 0 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/upcall/src/upcall.c:2202: negative_returns: "op_errno" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:242: cond_false: Condition "!handle", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:242: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:244: cond_true: Condition "handle->locked == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:246: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:249: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:251: cond_false: Condition "handle->fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:255: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:256: cond_true: Condition "!handle->read", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:257: negative_return_fn: Function "dup(handle->fd)" returns a negative number. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:257: negative_returns: "dup(handle->fd)" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3475: var_tested_neg: Assigning: "overall_status" = a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3479: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3482: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3485: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3486: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3489: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3489: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3491: cond_true: Condition "i < count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3502: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3503: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3504: cond_true: Condition "GF_DEFRAG_STATUS_NOT_STARTED == status_rcd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3505: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3646: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3491: cond_true: Condition "i < count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3502: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3503: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3504: cond_true: Condition "GF_DEFRAG_STATUS_NOT_STARTED == status_rcd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3505: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3646: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3491: cond_false: Condition "i < count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3646: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3651: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3651: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3655: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3655: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3659: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3659: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3663: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3663: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3667: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3667: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3671: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3671: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3675: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3675: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3677: negative_returns: Using variable "overall_status" as an index to array "cli_vol_task_status_str". Error: NEGATIVE_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7602: var_tested_neg: Assigning: "op_errno" = a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7607: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7607: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7608: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7608: cond_false: Condition "this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7608: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7691: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7692: cond_false: Condition "local", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7692: var_assign: Assigning: signed variable "op_errno" = "op_errno". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7693: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7693: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7693: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7693: cond_true: Condition "1 /* -1 < 0 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7693: negative_returns: "op_errno" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7320: var_tested_neg: Assigning: "op_errno" = a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7326: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7326: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7327: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7327: cond_false: Condition "this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7327: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7426: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7429: cond_false: Condition "local", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7429: var_assign: Assigning: signed variable "op_errno" = "op_errno". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7430: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7430: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7430: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7430: cond_true: Condition "1 /* -1 < 0 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7430: negative_returns: "op_errno" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1055: negative_returns: A negative constant "-95" is passed as an argument to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2507: cond_true: Condition "master_alg_atomic(master)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2512: cond_true: Condition "(flags & 3) == 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2521: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2524: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2526: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2530: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2531: cond_false: Condition "data->len != 16UL /* sizeof (uuid_t) */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2537: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2539: cond_false: Condition "!info", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2542: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2549: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2552: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2559: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2562: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2564: cond_false: Condition "!local->xattr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2568: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2569: negative_return_fn: Function "dict_set_static_bin(local->xattr, "trusted.glusterfs.crypt.att.cfmt", local->format, new_format_size())" returns a negative number. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2328:9: negative_return: Calling "dict_set_bin_common", which might return a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2294:9: cond_true: Condition "!ptr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2295:17: assign_neg_constant: Assigning: "ret" = "-22", which is negative. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2296:17: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2314:1: label: Reached label "err". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2315:9: return_negative_variable: Explicitly returning negative variable "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2328:9: return_negative_fn: Returning the return value of "dict_set_bin_common", which might be negative. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2569: var_assign: Assigning: signed variable "ret" = "dict_set_static_bin". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2573: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2577: goto: Jumping to label "error". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2599: label: Reached label "error". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2600: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2600: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2601: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2601: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2601: cond_true: Condition "1 /* -1 < 0 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2601: negative_returns: "ret" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1089: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1092: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1095: cond_true: Condition "iobref", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1101: cond_false: Condition "!local->xattr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1104: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1108: cond_false: Condition "info == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1111: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1112: cond_false: Condition "!object_alg_atomic(&info->cinfo)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1115: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1116: cond_false: Condition "iovec_get_size(vec, count) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1117: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1119: negative_return_fn: Function "prepare_for_submit_data(frame, this, offset, iovec_get_size(vec, count), vec, count, 0)" returns a negative number. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:887:2: negative_return: Calling "set_config_avec_data", which might return a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:480:2: cond_false: Condition "!avec", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:481:3: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:483:2: cond_false: Condition "!pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:486:2: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:487:2: cond_false: Condition "!vec", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:498:7: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:499:3: negative_return: Calling "align_iov_by_atoms", which might return a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:384:2: cond_true: Condition "to_process > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:385:3: cond_true: Condition "off_in_head", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:399:4: cond_true: Condition "!blocks[*blocks_allocated]", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:400:5: return_negative_constant: Explicitly returning negative value "-12". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:499:3: var_assign: Assigning: "ret" = "align_iov_by_atoms(this, local, object, vec, vec_count, avec, pool, &blocks_in_pool, conf)", which might be negative. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:501:3: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:502:4: goto: Jumping to label "free". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:508:2: label: Reached label "free". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:511:2: return_negative_variable: Explicitly returning negative variable "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:887:2: var_assign: Assigning: "ret" = "set_config_avec_data(this, local, &local->data_conf, object, vec, vec_count)", which might be negative. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:891:2: return_negative_variable: Explicitly returning negative variable "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1119: var_assign: Assigning: signed variable "ret" = "prepare_for_submit_data". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1124: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1125: goto: Jumping to label "error". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1187: label: Reached label "error". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1188: cond_true: Condition "local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1188: cond_false: Condition "local->fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1189: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1190: cond_true: Condition "local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1190: cond_true: Condition "local->iobref", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1192: cond_true: Condition "local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1192: cond_true: Condition "local->xdata", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1194: cond_true: Condition "local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1194: cond_true: Condition "local->xattr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1196: cond_true: Condition "local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1196: cond_true: Condition "local->info", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1199: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1199: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1199: cond_true: Condition "1 /* -1 < 0 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:1199: negative_returns: "ret" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2180: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2181: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2183: cond_false: Condition "!local->loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2186: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2188: negative_return_fn: Function "loc_copy(local->loc, loc)" returns a negative number. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.c:938:17: assign_neg_constant: Assigning: "ret" = "-1", which is negative. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.c:940:9: cond_true: Condition "!dst", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.c:940:9: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.c:971:1: label: Reached label "err". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.c:972:9: return_negative_variable: Explicitly returning negative variable "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2188: var_assign: Assigning: signed variable "ret" = "loc_copy". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2189: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2191: goto: Jumping to label "error". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2225: label: Reached label "error". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2226: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2226: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2226: cond_true: Condition "1 /* -1 < 0 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:2226: negative_returns: "ret" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4126: cond_true: Condition "!xdata", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4128: cond_false: Condition "!xdata", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4129: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4130: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4132: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4136: negative_return_fn: Function "dict_set(xdata, "trusted.glusterfs.crypt.att.size", data_from_uint64(0UL))" returns a negative number. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:414:9: cond_true: Condition "!this", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:418:17: return_negative_constant: Explicitly returning negative value "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4136: var_assign: Assigning: signed variable "ret" = "dict_set". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4137: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4139: goto: Jumping to label "error". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4151: label: Reached label "error". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4152: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4152: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4152: cond_true: Condition "1 /* -1 < 0 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:4152: negative_returns: "ret" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:47: var_tested_neg: Assigning: "len" = a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:51: cond_true: Condition "op_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:57: cond_true: Condition "peerinfo", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:58: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:60: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:63: cond_true: Condition "op_errstr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:63: cond_false: Condition "strcmp(op_errstr, "")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:67: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:69: switch: Switch case default. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:98: switch_default: Reached end of switch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:99: negative_returns: Using variable "len" as an index to array "op_err". Error: NEGATIVE_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1098: var_tested_neg: Assigning: "op_errno" = a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1100: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1101: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1192: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1193: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1193: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1193: cond_true: Condition "1 /* -1 < 0 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-cache/src/io-cache.c:1193: negative_returns: "op_errno" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2215: cond_false: Condition "bd_inode_ctx_get(fd->inode, this, &bdatt) < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2220: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2222: negative_return_fn: Function "bd_do_zerofill(frame, this, fd, offset, len, &statpre, &statpost)" returns a negative number. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:971:28: assign_neg_constant: Assigning: "ret" = "-1", which is negative. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:976:9: cond_true: Condition "!frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:976:9: cond_true: Condition "this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:976:9: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:1017:1: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:1019:9: return_negative_variable: Explicitly returning negative variable "ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2222: var_assign: Assigning: signed variable "ret" = "bd_do_zerofill". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2224: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2225: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2230: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2231: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2231: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2231: cond_true: Condition "1 /* -1 < 0 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:2231: negative_returns: "ret" is passed to a parameter that cannot be negative. Error: NEGATIVE_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1975: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1975: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1976: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1976: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1977: cond_false: Condition "!loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1977: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: cond_false: Condition "gf_uuid_is_null(loc->pargfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: cond_false: Condition "!loc->name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: cond_true: Condition "loc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: cond_true: Condition "loc->path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: cond_true: Condition "loc->path[0] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: cond_true: Condition "((struct posix_private *)this->private)->path_max != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: cond_true: Condition "var_len >= ((struct posix_private *)this->private)->path_max", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: cond_true: Condition "loc->path[0] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1980: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1981: cond_false: Condition "!real_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1981: cond_false: Condition "!par_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1985: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1988: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:1994: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2000: cond_true: Condition "!op_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2000: cond_false: Condition "gf_uuid_compare(uuid, stbuf.ia_gfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2010: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2015: cond_true: Condition "!op_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2015: cond_true: Condition "check_open_fd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2017: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2019: cond_false: Condition "loc->inode->fd_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2021: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2023: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2029: cond_false: Condition "skip_unlink", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2033: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2044: cond_false: Condition "skip_unlink", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2044: cond_false: Condition "posix_skip_non_linkto_unlink(xdata, loc, "unlink-only-if-tier-linkto-file", "trusted.tier.tier-dht.linkto", &stbuf, real_path)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2048: cond_false: Condition "skip_unlink", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2052: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2054: cond_true: Condition "loc->inode->ia_type == IA_IFREG", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2054: cond_true: Condition "xdata", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2054: cond_false: Condition "dict_get(xdata, "dht-get-iatt-in-xattr")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2057: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2059: cond_false: Condition "fdstat_requested", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2059: cond_true: Condition "priv->background_unlink", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2059: cond_true: Condition "loc->inode->ia_type == IA_IFREG", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2062: cond_false: Condition "fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2069: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2072: cond_true: Condition "priv->update_pgfid_nlinks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2072: cond_false: Condition "stbuf.ia_nlink > 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2098: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2101: cond_true: Condition "!unwind_dict", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2102: var_tested_neg: Assigning: "op_errno" = a negative value. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2104: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2140: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2143: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2143: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2143: cond_true: Condition "op_ret < 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2143: negative_returns: "op_errno" is passed to a parameter that cannot be negative. Error: NO_EFFECT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:266: unsigned_compare: This less-than-zero comparison of an unsigned value is never true. "strlen(strfd->data) < 0UL". Error: NO_EFFECT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:163: unsigned_compare: This less-than-zero comparison of an unsigned value is never true. "copy_size < 0UL". Error: NO_EFFECT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3414: unsigned_compare: This less-than-zero comparison of an unsigned value is never true. "local->total_size < 0UL". Error: NO_EFFECT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:265: array_null: Comparing an array to null is not useful: "!xl->mem_acct->rec", since the test will always evaluate as true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:265: remediation: Was "xl->mem_acct->rec" formerly declared as a pointer? Error: NO_EFFECT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:265: array_null: Comparing an array to null is not useful: "xl->mem_acct->rec", since the test will always evaluate as true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:265: remediation: Was "xl->mem_acct->rec" formerly declared as a pointer? Error: NO_EFFECT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3093: unsigned_compare: This less-than-zero comparison of an unsigned value is never true. "local->total_size < 0UL". Error: NO_EFFECT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3960: array_null: Comparing an array to null is not useful: "old_brickinfo->real_path == NULL", since the test will always evaluate as true. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3960: remediation: Was "old_brickinfo->real_path" formerly declared as a pointer? Error: NO_EFFECT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/timer-wheel/timer-wheel.c:50: unsigned_compare: This less-than-zero comparison of an unsigned value is never true. "idx < 0UL". Error: NO_EFFECT: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/symlink-cache/src/symlink-cache.c:270: unsigned_compare: This less-than-zero comparison of an unsigned value is never true. "strlen(link) < 0UL". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:430: cond_true: Condition "strncmp(key, "user.", 5UL /* sizeof ("user.") - 1 */)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:430: cond_true: Condition "strncmp(key, "trusted.", 8UL /* sizeof ("trusted.") - 1 */)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:430: cond_true: Condition "strncmp(key, "security.", 9UL /* sizeof ("security.") - 1 */)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:430: cond_true: Condition "strncmp(key, "system.", 7UL /* sizeof ("system.") - 1 */)", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:435: returned_null: "__gf_malloc" returns null (checked 40 out of 48 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: null_return: Calling "__gf_default_malloc" which might return null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_true: Condition "!ptr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: var_tested_null: "ptr" is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_null_var: Returning "ptr", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_null_fn: Returning the return value of "__gf_default_malloc", which might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:484: example_assign: Example 1: Assigning: "newvec" = return value from "__gf_malloc(bytecount, gf_common_mt_iovec, "gf_common_mt_iovec")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:485: example_checked: Example 1 (cont.): "newvec" has its value checked in "newvec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1974: example_assign: Example 2: Assigning: "tmp_brick" = return value from "__gf_malloc(2048UL, gf_common_mt_char, "gf_common_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1976: example_checked: Example 2 (cont.): "tmp_brick" has its value checked in "tmp_brick". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4187: example_assign: Example 3: Assigning: "spec" = return value from "__gf_malloc(rsp.op_ret + 1, cli_mt_char, "cli_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4188: example_checked: Example 3 (cont.): "spec" has its value checked in "spec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:544: example_assign: Example 4: Assigning: "buf" = return value from "__gf_malloc(blk_size * 1UL, gf_common_mt_char, "gf_common_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:545: example_checked: Example 4 (cont.): "buf" has its value checked in "buf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:655: example_assign: Example 5: Assigning: "newptr" = return value from "__gf_malloc(size, gf_common_mt_memdup, "gf_common_mt_memdup")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:656: example_checked: Example 5 (cont.): "newptr" has its value checked in "newptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:435: var_assigned: Assigning: "*newkey" = null return value from "__gf_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:437: dereference: Dereferencing a pointer that might be null "*newkey" when calling "strcpy". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:448: cond_true: Condition "strncmp(key, ns, ns_length) == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:449: returned_null: "__gf_malloc" returns null (checked 40 out of 48 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: null_return: Calling "__gf_default_malloc" which might return null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_true: Condition "!ptr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: var_tested_null: "ptr" is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_null_var: Returning "ptr", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_null_fn: Returning the return value of "__gf_default_malloc", which might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:484: example_assign: Example 1: Assigning: "newvec" = return value from "__gf_malloc(bytecount, gf_common_mt_iovec, "gf_common_mt_iovec")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:485: example_checked: Example 1 (cont.): "newvec" has its value checked in "newvec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1974: example_assign: Example 2: Assigning: "tmp_brick" = return value from "__gf_malloc(2048UL, gf_common_mt_char, "gf_common_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1976: example_checked: Example 2 (cont.): "tmp_brick" has its value checked in "tmp_brick". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4187: example_assign: Example 3: Assigning: "spec" = return value from "__gf_malloc(rsp.op_ret + 1, cli_mt_char, "cli_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4188: example_checked: Example 3 (cont.): "spec" has its value checked in "spec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:544: example_assign: Example 4: Assigning: "buf" = return value from "__gf_malloc(blk_size * 1UL, gf_common_mt_char, "gf_common_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:545: example_checked: Example 4 (cont.): "buf" has its value checked in "buf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:655: example_assign: Example 5: Assigning: "newptr" = return value from "__gf_malloc(size, gf_common_mt_memdup, "gf_common_mt_memdup")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:656: example_checked: Example 5 (cont.): "newptr" has its value checked in "newptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:449: var_assigned: Assigning: "*newkey" = null return value from "__gf_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:451: dereference: Dereferencing a pointer that might be null "*newkey" when calling "strcpy". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:447: cond_false: Condition "!env", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:447: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:448: cond_false: Condition "!fn", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:448: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:460: cond_false: Condition "destroymode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:461: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:464: cond_false: Condition "!newtask", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:465: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:468: cond_true: Condition "!frame", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:469: returned_null: "create_frame" returns null (checked 104 out of 113 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.c:21:9: cond_false: Condition "!xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.c:21:9: cond_false: Condition "!pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.c:23:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.c:26:9: cond_true: Condition "!stack", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.c:27:17: return_null: Explicitly returning null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.h:324: example_assign: Example 1: Assigning: "frame" = return value from "create_frame(this, this->ctx->pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.h:325: example_checked: Example 1 (cont.): "frame" has its value checked in "frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:462: example_assign: Example 2: Assigning: "frame" = return value from "create_frame(*__glusterfs_this_location(), ctx->pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:463: example_checked: Example 2 (cont.): "frame" has its value checked in "frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-global.c:101: example_assign: Example 3: Assigning: "frame" = return value from "create_frame(*__glusterfs_this_location(), (*__glusterfs_this_location())->ctx->pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-global.c:102: example_checked: Example 3 (cont.): "frame" has its value checked in "frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-peer.c:123: example_assign: Example 4: Assigning: "frame" = return value from "create_frame(*__glusterfs_this_location(), (*__glusterfs_this_location())->ctx->pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-peer.c:124: example_checked: Example 4 (cont.): "frame" has its value checked in "frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-snapshot.c:43: example_assign: Example 5: Assigning: "frame" = return value from "create_frame(*__glusterfs_this_location(), (*__glusterfs_this_location())->ctx->pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-snapshot.c:44: example_checked: Example 5 (cont.): "frame" has its value checked in "frame == NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:469: var_assigned: Assigning: "newtask->opframe" = null return value from "create_frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:470: dereference: Dereferencing a null pointer "newtask->opframe". Error: NULL_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:379: returned_null: "__gf_malloc" returns null (checked 40 out of 48 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: null_return: Calling "__gf_default_malloc" which might return null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_true: Condition "!ptr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: var_tested_null: "ptr" is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_null_var: Returning "ptr", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_null_fn: Returning the return value of "__gf_default_malloc", which might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:484: example_assign: Example 1: Assigning: "newvec" = return value from "__gf_malloc(bytecount, gf_common_mt_iovec, "gf_common_mt_iovec")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:485: example_checked: Example 1 (cont.): "newvec" has its value checked in "newvec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1974: example_assign: Example 2: Assigning: "tmp_brick" = return value from "__gf_malloc(2048UL, gf_common_mt_char, "gf_common_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1976: example_checked: Example 2 (cont.): "tmp_brick" has its value checked in "tmp_brick". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4187: example_assign: Example 3: Assigning: "spec" = return value from "__gf_malloc(rsp.op_ret + 1, cli_mt_char, "cli_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4188: example_checked: Example 3 (cont.): "spec" has its value checked in "spec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:544: example_assign: Example 4: Assigning: "buf" = return value from "__gf_malloc(blk_size * 1UL, gf_common_mt_char, "gf_common_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:545: example_checked: Example 4 (cont.): "buf" has its value checked in "buf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:655: example_assign: Example 5: Assigning: "newptr" = return value from "__gf_malloc(size, gf_common_mt_memdup, "gf_common_mt_memdup")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:656: example_checked: Example 5 (cont.): "newptr" has its value checked in "newptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:379: var_assigned: Assigning: "cache" = null return value from "__gf_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:381: dereference: Dereferencing a null pointer "cache". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1663: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1663: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1666: returned_null: "pl_inode_get" returns null (checked 18 out of 21 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:411:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:414:17: cond_false: Condition "ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:417:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:420:17: cond_true: Condition "!pl_inode", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:420:17: var_tested_null: "pl_inode" is null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:421:25: goto: Jumping to label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:446:1: label: Reached label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:447:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:449:9: return_null_var: Returning "pl_inode", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:339: example_assign: Example 1: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:341: example_checked: Example 1 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/entrylk.c:534: example_assign: Example 2: Assigning: "pinode" = return value from "pl_inode_get(this, parent)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/entrylk.c:535: example_checked: Example 2 (cont.): "pinode" has its value checked in "pinode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/inodelk.c:859: example_assign: Example 3: Assigning: "pinode" = return value from "pl_inode_get(this, inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/inodelk.c:860: example_checked: Example 3 (cont.): "pinode" has its value checked in "pinode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:481: example_assign: Example 4: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:482: example_checked: Example 4 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1265: example_assign: Example 5: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1267: example_checked: Example 5 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1666: var_assigned: Assigning: "pl_inode" = null return value from "pl_inode_get". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1675: cond_true: Condition "priv->mandatory_mode == MLK_FILE_BASED", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1675: dereference: Dereferencing a null pointer "pl_inode". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1663: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1663: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1666: returned_null: "pl_inode_get" returns null (checked 18 out of 21 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:411:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:414:17: cond_false: Condition "ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:417:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:420:17: cond_true: Condition "!pl_inode", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:420:17: var_tested_null: "pl_inode" is null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:421:25: goto: Jumping to label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:446:1: label: Reached label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:447:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:449:9: return_null_var: Returning "pl_inode", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:339: example_assign: Example 1: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:341: example_checked: Example 1 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/entrylk.c:534: example_assign: Example 2: Assigning: "pinode" = return value from "pl_inode_get(this, parent)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/entrylk.c:535: example_checked: Example 2 (cont.): "pinode" has its value checked in "pinode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/inodelk.c:859: example_assign: Example 3: Assigning: "pinode" = return value from "pl_inode_get(this, inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/inodelk.c:860: example_checked: Example 3 (cont.): "pinode" has its value checked in "pinode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:481: example_assign: Example 4: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:482: example_checked: Example 4 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1265: example_assign: Example 5: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1267: example_checked: Example 5 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1666: var_assigned: Assigning: "pl_inode" = null return value from "pl_inode_get". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1675: cond_false: Condition "priv->mandatory_mode == MLK_FILE_BASED", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1675: cond_true: Condition "priv->mandatory_mode == MLK_FORCED", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1677: cond_true: Condition "fd->flags & 0x200", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1678: dereference: Dereferencing a pointer that might be null "&pl_inode->mutex" when calling "pthread_mutex_lock". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1663: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1663: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1666: returned_null: "pl_inode_get" returns null (checked 18 out of 21 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:411:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:414:17: cond_false: Condition "ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:417:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:420:17: cond_true: Condition "!pl_inode", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:420:17: var_tested_null: "pl_inode" is null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:421:25: goto: Jumping to label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:446:1: label: Reached label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:447:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:449:9: return_null_var: Returning "pl_inode", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:339: example_assign: Example 1: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:341: example_checked: Example 1 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/entrylk.c:534: example_assign: Example 2: Assigning: "pinode" = return value from "pl_inode_get(this, parent)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/entrylk.c:535: example_checked: Example 2 (cont.): "pinode" has its value checked in "pinode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/inodelk.c:859: example_assign: Example 3: Assigning: "pinode" = return value from "pl_inode_get(this, inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/inodelk.c:860: example_checked: Example 3 (cont.): "pinode" has its value checked in "pinode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:481: example_assign: Example 4: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:482: example_checked: Example 4 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1265: example_assign: Example 5: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1267: example_checked: Example 5 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1666: var_assigned: Assigning: "pl_inode" = null return value from "pl_inode_get". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1675: cond_false: Condition "priv->mandatory_mode == MLK_FILE_BASED", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1675: cond_false: Condition "priv->mandatory_mode == MLK_FORCED", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1687: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1687: cond_true: Condition "priv->mandatory_mode == MLK_OPTIMAL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1688: cond_true: Condition "fd->flags & 0x200", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1689: dereference: Dereferencing a pointer that might be null "&pl_inode->mutex" when calling "pthread_mutex_lock". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:4377: cond_false: Condition "defrag->defrag_status != GF_DEFRAG_STATUS_STARTED", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:4378: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:4391: cond_false: Condition "gf_defrag_get_pause_state(&defrag->tier_conf) == TIER_PAUSED", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:4392: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:4398: returned_null: "synctask_get" returns null (checked 52 out of 65 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/globals.c:272:9: null_return: Calling "pthread_getspecific" which might return null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/globals.c:272:9: var_assign: Assigning: "synctask" = "pthread_getspecific(synctask_key)", which might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/globals.c:274:9: return_null_var: Returning "synctask", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:473: example_assign: Example 1: Assigning: "args.task" = return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:473: example_checked: Example 1 (cont.): "args.task" has its value checked in "args.task". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop-utils.c:357: example_checked: Example 2: "synctask_get()" has its value checked in "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1230: example_assign: Example 3: Assigning: "task" = return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1230: example_assign: Example 3 (cont.): Assigning: "args.task" = "task". Both are now equal to the return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1230: example_checked: Example 3 (cont.): "task" has its value checked in "task". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1706: example_assign: Example 4: Assigning: "task" = return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1706: example_assign: Example 4 (cont.): Assigning: "args.task" = "task". Both are now equal to the return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1706: example_checked: Example 4 (cont.): "task" has its value checked in "task". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1618: example_assign: Example 5: Assigning: "task" = return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1618: example_assign: Example 5 (cont.): Assigning: "args.task" = "task". Both are now equal to the return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1618: example_checked: Example 5 (cont.): "task" has its value checked in "task". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:4398: var_assigned: Assigning: "defrag->tier_conf.pause_synctask" = null return value from "synctask_get". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:4406: dereference: Dereferencing a pointer that might be null "defrag->tier_conf.pause_synctask" when calling "synctask_yield". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:334:9: deref_parm: Directly dereferencing parameter "task". Error: NULL_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:5897: returned_null: "dht_local_init" returns null (checked 66 out of 67 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:651:9: cond_true: Condition "!local", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:651:9: var_tested_null: "local" is null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:652:17: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:680:1: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:681:9: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:685:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:686:9: return_null_var: Returning "local", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7089: example_assign: Example 1: Assigning: "local" = return value from "dht_local_init(frame, loc, fd, GF_FOP_CREATE)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:7090: example_checked: Example 1 (cont.): "local" has its value checked in "local". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:1214: example_assign: Example 2: Assigning: "local" = return value from "dht_local_init(frame, loc, NULL, GF_FOP_XATTROP)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-read.c:1215: example_checked: Example 2 (cont.): "local" has its value checked in "local". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-write.c:170: example_assign: Example 3: Assigning: "local" = return value from "dht_local_init(frame, NULL, fd, GF_FOP_WRITE)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-inode-write.c:171: example_checked: Example 3 (cont.): "local" has its value checked in "local". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/nufa.c:308: example_assign: Example 4: Assigning: "local" = return value from "dht_local_init(frame, loc, fd, GF_FOP_CREATE)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/nufa.c:309: example_checked: Example 4 (cont.): "local" has its value checked in "local". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:424: example_assign: Example 5: Assigning: "local" = return value from "dht_local_init(frame, loc, fd, GF_FOP_CREATE)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:425: example_checked: Example 5 (cont.): "local" has its value checked in "local". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:5897: var_assigned: Assigning: "refresh_local" = null return value from "dht_local_init". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:5900: dereference: Dereferencing a null pointer "refresh_local". Error: NULL_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:2465: returned_null: "pl_inode_get" returns null (checked 18 out of 21 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:411:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:414:17: cond_false: Condition "ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:417:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:420:17: cond_true: Condition "!pl_inode", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:420:17: var_tested_null: "pl_inode" is null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:421:25: goto: Jumping to label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:446:1: label: Reached label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:447:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:449:9: return_null_var: Returning "pl_inode", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:339: example_assign: Example 1: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:341: example_checked: Example 1 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/entrylk.c:534: example_assign: Example 2: Assigning: "pinode" = return value from "pl_inode_get(this, parent)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/entrylk.c:535: example_checked: Example 2 (cont.): "pinode" has its value checked in "pinode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/inodelk.c:859: example_assign: Example 3: Assigning: "pinode" = return value from "pl_inode_get(this, inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/inodelk.c:860: example_checked: Example 3 (cont.): "pinode" has its value checked in "pinode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:481: example_assign: Example 4: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:482: example_checked: Example 4 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1265: example_assign: Example 5: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1267: example_checked: Example 5 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:2465: var_assigned: Assigning: "pl_inode" = null return value from "pl_inode_get". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:2467: dereference: Dereferencing a pointer that might be null "&pl_inode->mutex" when calling "pthread_mutex_lock". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:135: cond_false: Condition "!nfsx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:136: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:138: returned_null: "mem_get" returns null (checked 58 out of 60 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:672:9: cond_false: Condition "!mem_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:676:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:679:9: cond_true: Condition "!pool_list", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:680:17: return_null: Explicitly returning null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:582: example_assign: Example 1: Assigning: "ptr" = return value from "mem_get(mem_pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:584: example_checked: Example 1 (cont.): "ptr" has its value checked in "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/rbthash.c:176: example_assign: Example 2: Assigning: "entry" = return value from "mem_get(tbl->entrypool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/rbthash.c:177: example_checked: Example 2 (cont.): "entry" has its value checked in "entry". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:82: example_assign: Example 3: Assigning: "saved_frame" = return value from "mem_get(rpcreq->conn->rpc_clnt->saved_frames_pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:83: example_checked: Example 3 (cont.): "saved_frame" has its value checked in "saved_frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:1622: example_assign: Example 4: Assigning: "rpcreq" = return value from "mem_get(rpc->reqpool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:1623: example_checked: Example 4 (cont.): "rpcreq" has its value checked in "rpcreq == NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:2023: example_assign: Example 5: Assigning: "request_ctx" = return value from "mem_get(device->request_ctx_pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:2024: example_checked: Example 5 (cont.): "request_ctx" has its value checked in "request_ctx == NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:138: var_assigned: Assigning: "l" = null return value from "mem_get". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:140: dereference: Dereferencing a pointer that might be null "l" when calling "memset". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:738: cond_false: Condition "!glusterd_is_quorum_option(fullkey)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:739: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:741: cond_false: Condition "key == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:744: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:746: returned_null: "xlator_volume_option_get" returns null (checked 33 out of 34 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:909:9: cond_true: Condition "&vol_list->list != &xl->volume_options", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:911:17: cond_false: Condition "found", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:912:25: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:911:17: var_tested_null: "found" is null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:913:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:909:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:909:9: cond_false: Condition "&vol_list->list != &xl->volume_options", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:913:9: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:915:9: return_null_var: Returning "found", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.c:356: example_assign: Example 1: Assigning: "found" = return value from "xlator_volume_option_get(xl, key)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.c:358: example_checked: Example 1 (cont.): "found" has its value checked in "found". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:1221: example_assign: Example 2: Assigning: "opt" = return value from "xlator_volume_option_get(this, key)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:1221: example_checked: Example 2 (cont.): "opt" has its value checked in "opt". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:1224: example_assign: Example 3: Assigning: "opt" = return value from "xlator_volume_option_get(this, key)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:1224: example_checked: Example 3 (cont.): "opt" has its value checked in "opt". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:1216: example_assign: Example 4: Assigning: "opt" = return value from "xlator_volume_option_get(this, key)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:1216: example_checked: Example 4 (cont.): "opt" has its value checked in "opt". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:1214: example_assign: Example 5: Assigning: "opt" = return value from "xlator_volume_option_get(this, key)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:1214: example_checked: Example 5 (cont.): "opt" has its value checked in "opt". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:746: var_assigned: Assigning: "opt" = null return value from "xlator_volume_option_get". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:747: dereference: Dereferencing a pointer that might be null "opt" when calling "xlator_option_validate". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/options.c:856:9: deref_parm: Directly dereferencing parameter "opt". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1069: cond_true: Condition "strlen(sample->identifier) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1072: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1085: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1088: cond_true: Condition "!xlator_name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1092: cond_true: Condition "!instance_name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1097: cond_true: Condition "!username", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1098: returned_null: "__gf_malloc" returns null (checked 40 out of 48 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: null_return: Calling "__gf_default_malloc" which might return null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_true: Condition "!ptr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: var_tested_null: "ptr" is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_null_var: Returning "ptr", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_null_fn: Returning the return value of "__gf_default_malloc", which might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:484: example_assign: Example 1: Assigning: "newvec" = return value from "__gf_malloc(bytecount, gf_common_mt_iovec, "gf_common_mt_iovec")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:485: example_checked: Example 1 (cont.): "newvec" has its value checked in "newvec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1974: example_assign: Example 2: Assigning: "tmp_brick" = return value from "__gf_malloc(2048UL, gf_common_mt_char, "gf_common_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1976: example_checked: Example 2 (cont.): "tmp_brick" has its value checked in "tmp_brick". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4187: example_assign: Example 3: Assigning: "spec" = return value from "__gf_malloc(rsp.op_ret + 1, cli_mt_char, "cli_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4188: example_checked: Example 3 (cont.): "spec" has its value checked in "spec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:544: example_assign: Example 4: Assigning: "buf" = return value from "__gf_malloc(blk_size * 1UL, gf_common_mt_char, "gf_common_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:545: example_checked: Example 4 (cont.): "buf" has its value checked in "buf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:655: example_assign: Example 5: Assigning: "newptr" = return value from "__gf_malloc(size, gf_common_mt_memdup, "gf_common_mt_memdup")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:656: example_checked: Example 5 (cont.): "newptr" has its value checked in "newptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1098: var_assigned: Assigning: "username" = null return value from "__gf_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1099: dereference: Dereferencing a pointer that might be null "username" when calling "sprintf". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1069: cond_true: Condition "strlen(sample->identifier) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1072: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1085: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1088: cond_true: Condition "!xlator_name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1092: cond_true: Condition "!instance_name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1097: cond_false: Condition "!username", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1100: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1104: cond_true: Condition "!group_name", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1105: returned_null: "__gf_malloc" returns null (checked 40 out of 48 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: null_return: Calling "__gf_default_malloc" which might return null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_true: Condition "!ptr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: var_tested_null: "ptr" is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_null_var: Returning "ptr", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_null_fn: Returning the return value of "__gf_default_malloc", which might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:484: example_assign: Example 1: Assigning: "newvec" = return value from "__gf_malloc(bytecount, gf_common_mt_iovec, "gf_common_mt_iovec")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:485: example_checked: Example 1 (cont.): "newvec" has its value checked in "newvec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1974: example_assign: Example 2: Assigning: "tmp_brick" = return value from "__gf_malloc(2048UL, gf_common_mt_char, "gf_common_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:1976: example_checked: Example 2 (cont.): "tmp_brick" has its value checked in "tmp_brick". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4187: example_assign: Example 3: Assigning: "spec" = return value from "__gf_malloc(rsp.op_ret + 1, cli_mt_char, "cli_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:4188: example_checked: Example 3 (cont.): "spec" has its value checked in "spec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:544: example_assign: Example 4: Assigning: "buf" = return value from "__gf_malloc(blk_size * 1UL, gf_common_mt_char, "gf_common_mt_char")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:545: example_checked: Example 4 (cont.): "buf" has its value checked in "buf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:655: example_assign: Example 5: Assigning: "newptr" = return value from "__gf_malloc(size, gf_common_mt_memdup, "gf_common_mt_memdup")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:656: example_checked: Example 5 (cont.): "newptr" has its value checked in "newptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1105: var_assigned: Assigning: "group_name" = null return value from "__gf_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:1106: dereference: Dereferencing a pointer that might be null "group_name" when calling "sprintf". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4109: cond_false: Condition "!dirp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4114: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4116: cond_true: Condition "count > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4119: cond_false: Condition "!entry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4119: cond_false: Condition "*__errno_location() != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4120: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4122: cond_false: Condition "entry->d_ino != stbuf->st_ino", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4123: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4138: cond_true: Condition "type & (2 /* 1 << 1 */)", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4147: returned_null: "gf_dirent_for_name" returns null (checked 15 out of 17 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.c:156:9: cond_true: Condition "!gf_dirent", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.c:157:17: return_null: Explicitly returning null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/default-args.c:1102: example_assign: Example 1: Assigning: "stub_entry" = return value from "gf_dirent_for_name(entry->d_name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/default-args.c:1103: example_checked: Example 1 (cont.): "stub_entry" has its value checked in "stub_entry". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.c:207: example_assign: Example 2: Assigning: "sink" = return value from "gf_dirent_for_name(source->d_name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.c:208: example_checked: Example 2 (cont.): "sink" has its value checked in "sink". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:5215: example_assign: Example 3: Assigning: "entry" = return value from "gf_dirent_for_name(orig_entry->d_name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:5216: example_checked: Example 3 (cont.): "entry" has its value checked in "entry". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:788: example_assign: Example 4: Assigning: "entry" = return value from "gf_dirent_for_name(orig_entry->d_name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:789: example_checked: Example 4 (cont.): "entry" has its value checked in "entry". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:870: example_assign: Example 5: Assigning: "entry" = return value from "gf_dirent_for_name(orig_entry->d_name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier-common.c:871: example_checked: Example 5 (cont.): "entry" has its value checked in "entry". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4147: var_assigned: Assigning: "gf_entry" = null return value from "gf_dirent_for_name". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4148: dereference: Dereferencing a null pointer "gf_entry". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1664: cond_false: Condition "!graph", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1664: cond_false: Condition "!volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1664: cond_false: Condition "!set_dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1664: cond_false: Condition "!brickinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1665: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1669: returned_null: "volgen_graph_add" returns null (checked 32 out of 33 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:216:9: cond_true: Condition "!shorttype", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:218:9: cond_true: Condition "!*shorttype", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:220:9: null_return: Calling "volgen_graph_add_as" which might return null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:178:9: cond_false: Condition "!xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:179:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:181:9: cond_true: Condition "volgen_graph_link(graph, xl)", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:184:17: return_null: Explicitly returning null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:220:9: return_null_fn: Returning the return value of "volgen_graph_add_as", which might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:5741: example_assign: Example 1: Assigning: "xl" = return value from "volgen_graph_add(graph, "features/snapview-server", volinfo->volname)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:5743: example_checked: Example 1 (cont.): "xl" has its value checked in "xl". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1732: example_assign: Example 2: Assigning: "xl" = return value from "volgen_graph_add(graph, "features/access-control", volinfo->volname)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1734: example_checked: Example 2 (cont.): "xl" has its value checked in "xl". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1559: example_assign: Example 3: Assigning: "xl" = return value from "volgen_graph_add(graph, "features/arbiter", volinfo->volname)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1560: example_checked: Example 3 (cont.): "xl" has its value checked in "xl". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2667: example_checked: Example 4: "volgen_graph_add(graph, vme->voltype, volname)" has its value checked in "volgen_graph_add(graph, vme->voltype, volname)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2644: example_checked: Example 5: "volgen_graph_add(graph, vme->voltype, volinfo->volname)" has its value checked in "volgen_graph_add(graph, vme->voltype, volinfo->volname)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1669: var_assigned: Assigning: "xl" = null return value from "volgen_graph_add". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:1673: dereference: Dereferencing a pointer that might be null "xl" when calling "xlator_set_option". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:232:9: cond_true: Condition "!dval", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:233:17: deref_parm: Directly dereferencing parameter "xl". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2702: cond_false: Condition "netaddr == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2703: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2706: cond_false: Condition "inet_pton(2, ipaddr, &sin1.sin_addr) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2707: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2710: returned_null: "strchr" returns null (checked 100 out of 111 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:5366: example_checked: Example 1: "strchr(volname, 47)" has its value checked in "strchr(volname, 47)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4098: example_assign: Example 2: Assigning: "v" = return value from "strchr(resbuf, 58)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4099: example_checked: Example 2 (cont.): "v" has its value checked in "v". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:497: example_assign: Example 3: Assigning: "s" = return value from "strchr(line, 35)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:498: example_checked: Example 3 (cont.): "s" has its value checked in "s != NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:746: example_assign: Example 4: Assigning: "equals" = return value from "strchr(arg, 61)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:747: example_checked: Example 4 (cont.): "equals" has its value checked in "equals". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2335: example_assign: Example 5: Assigning: "endptr" = return value from "strchr(tmp, 37)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2336: example_checked: Example 5 (cont.): "endptr" has its value checked in "endptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2710: var_assigned: Assigning: "slash" = null return value from "strchr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:2711: dereference: Dereferencing a null pointer "slash". Error: NULL_RETURNS: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:450: cond_false: Condition "!svc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:450: cond_false: Condition "!trans", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:451: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:459: returned_null: "mem_get" returns null (checked 58 out of 60 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:672:9: cond_false: Condition "!mem_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:676:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:679:9: cond_true: Condition "!pool_list", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:680:17: return_null: Explicitly returning null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:582: example_assign: Example 1: Assigning: "ptr" = return value from "mem_get(mem_pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:584: example_checked: Example 1 (cont.): "ptr" has its value checked in "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/rbthash.c:176: example_assign: Example 2: Assigning: "entry" = return value from "mem_get(tbl->entrypool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/rbthash.c:177: example_checked: Example 2 (cont.): "entry" has its value checked in "entry". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:82: example_assign: Example 3: Assigning: "saved_frame" = return value from "mem_get(rpcreq->conn->rpc_clnt->saved_frames_pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:83: example_checked: Example 3 (cont.): "saved_frame" has its value checked in "saved_frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:1622: example_assign: Example 4: Assigning: "rpcreq" = return value from "mem_get(rpc->reqpool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:1623: example_checked: Example 4 (cont.): "rpcreq" has its value checked in "rpcreq == NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:2023: example_assign: Example 5: Assigning: "request_ctx" = return value from "mem_get(device->request_ctx_pool)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:2024: example_checked: Example 5 (cont.): "request_ctx" has its value checked in "request_ctx == NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:459: var_assigned: Assigning: "req" = null return value from "mem_get". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:459: dereference: Dereferencing a pointer that might be null "req" when calling "memset". Error: NULL_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:378: returned_null: "pl_inode_get" returns null (checked 18 out of 21 times). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:411:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:414:17: cond_false: Condition "ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:417:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:420:17: cond_true: Condition "!pl_inode", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:420:17: var_tested_null: "pl_inode" is null. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:421:25: goto: Jumping to label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:446:1: label: Reached label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:447:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:449:9: return_null_var: Returning "pl_inode", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:339: example_assign: Example 1: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:341: example_checked: Example 1 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/entrylk.c:534: example_assign: Example 2: Assigning: "pinode" = return value from "pl_inode_get(this, parent)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/entrylk.c:535: example_checked: Example 2 (cont.): "pinode" has its value checked in "pinode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/inodelk.c:859: example_assign: Example 3: Assigning: "pinode" = return value from "pl_inode_get(this, inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/inodelk.c:860: example_checked: Example 3 (cont.): "pinode" has its value checked in "pinode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:481: example_assign: Example 4: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:482: example_checked: Example 4 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1265: example_assign: Example 5: Assigning: "pl_inode" = return value from "pl_inode_get(this, fd->inode)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:1267: example_checked: Example 5 (cont.): "pl_inode" has its value checked in "pl_inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:378: var_assigned: Assigning: "pl_inode" = null return value from "pl_inode_get". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/common.c:380: dereference: Dereferencing a pointer that might be null "&pl_inode->mutex" when calling "pthread_mutex_lock". Error: NULL_RETURNS: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:374: returned_null: "synctask_get" returns null (checked 52 out of 65 times). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/globals.c:272:9: null_return: Calling "pthread_getspecific" which might return null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/globals.c:272:9: var_assign: Assigning: "synctask" = "pthread_getspecific(synctask_key)", which might be null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/globals.c:274:9: return_null_var: Returning "synctask", which is null. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:473: example_assign: Example 1: Assigning: "args.task" = return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:473: example_checked: Example 1 (cont.): "args.task" has its value checked in "args.task". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop-utils.c:357: example_checked: Example 2: "synctask_get()" has its value checked in "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1230: example_assign: Example 3: Assigning: "task" = return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1230: example_assign: Example 3 (cont.): Assigning: "args.task" = "task". Both are now equal to the return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1230: example_checked: Example 3 (cont.): "task" has its value checked in "task". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1706: example_assign: Example 4: Assigning: "task" = return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1706: example_assign: Example 4 (cont.): Assigning: "args.task" = "task". Both are now equal to the return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1706: example_checked: Example 4 (cont.): "task" has its value checked in "task". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1618: example_assign: Example 5: Assigning: "task" = return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1618: example_assign: Example 5 (cont.): Assigning: "args.task" = "task". Both are now equal to the return value from "synctask_get()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:1618: example_checked: Example 5 (cont.): "task" has its value checked in "task". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:374: var_assigned: Assigning: "task" = null return value from "synctask_get". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syncop.c:375: dereference: Dereferencing a null pointer "task". Error: ORDER_REVERSAL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-drc.c:774: cond_false: Condition "!svc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-drc.c:775: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-drc.c:778: cond_false: Condition "!drc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-drc.c:779: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-drc.c:781: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-drc.c:781: lock_acquire: Calling "pthread_spin_lock" acquires lock "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-drc.c:782: lock_order: Calling "rpcsvc_unregister_notify" acquires lock "rpcsvc_state.rpclock" while holding lock "gf_lock_t.spinlock" (count: 1 / 2). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1791:9: cond_false: Condition "!svc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1791:9: cond_false: Condition "!notify", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1793:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1795:9: getlock: Acquiring lock named "rpcsvc_state.rpclock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1797:17: cond_true: Condition "&wrapper->list != &svc->notify", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1798:25: cond_true: Condition "wrapper->notify == notify", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1798:25: cond_true: Condition "mydata == wrapper->data", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1804:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1797:17: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1797:17: cond_true: Condition "&wrapper->list != &svc->notify", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1798:25: cond_true: Condition "wrapper->notify == notify", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1798:25: cond_true: Condition "mydata == wrapper->data", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1804:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1797:17: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1797:17: cond_false: Condition "&wrapper->list != &svc->notify", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1804:17: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1795: lock_acquire: Example 1: Calling "pthread_mutex_lock" acquires lock "rpcsvc_state.rpclock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1801: example_lock_order: Example 1 (cont.): Calling "__gf_free" acquires lock "gf_lock_t.spinlock" while holding "rpcsvc_state.rpclock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: cond_true: Condition "!(3131961357U == *((uint32_t *)((char *)free_ptr + header->size)))", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:318:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:318:9: getlock: Acquiring lock named "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:324:17: cond_true: Condition "!mem_acct->rec[header->type].num_allocs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:327:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:329:9: cond_true: Condition "__sync_sub_and_fetch(&mem_acct->refcnt, 1) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:330:17: cond_true: Condition "mem_acct != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:338:9: cond_true: Condition "ptr != NULL", taking true branch. Error: ORDER_REVERSAL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:337: lock_acquire: Calling "pthread_mutex_lock" acquires lock "_client_fd_ctx.mutex". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:339: lock_order: Calling "__insert_and_merge" acquires lock "gf_lock_t.spinlock" while holding lock "_client_fd_ctx.mutex" (count: 1 / 2). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:269:9: cond_true: Condition "&conf->list != &fdctx->lock_list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:270:17: cond_true: Condition "!locks_overlap(conf, lock)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:271:25: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:324:9: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:269:9: cond_false: Condition "&conf->list != &fdctx->lock_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:324:9: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:327:9: cond_false: Condition "lock->fl_type != 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:329:16: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:330:17: getlock: Acquiring lock named "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:151:2: getlock: Acquiring lock named "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: cond_true: Condition "!(3131961357U == *((uint32_t *)((char *)free_ptr + header->size)))", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:318:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:318:9: getlock: Acquiring lock named "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:324:17: cond_true: Condition "!mem_acct->rec[header->type].num_allocs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:327:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:329:9: cond_true: Condition "__sync_sub_and_fetch(&mem_acct->refcnt, 1) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:330:17: cond_true: Condition "mem_acct != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:338:9: cond_true: Condition "ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:73: lock_acquire: Example 1: Calling "pthread_spin_lock" acquires lock "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:85: example_lock_order: Example 1 (cont.): Calling "dump_client_locks_fd" acquires lock "_client_fd_ctx.mutex" while holding "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:46:9: getlock: Acquiring lock named "_client_fd_ctx.mutex". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:48:17: cond_true: Condition "&lock->list != &fdctx->lock_list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:51:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:48:17: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:48:17: cond_true: Condition "&lock->list != &fdctx->lock_list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:51:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:48:17: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:48:17: cond_false: Condition "&lock->list != &fdctx->lock_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-lk.c:51:17: loop_end: Reached end of loop. Error: ORDER_REVERSAL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:337: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:337: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:338: cond_false: Condition "!client", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:338: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:339: cond_false: Condition "!flags", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:339: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:343: cond_false: Condition "serv_ctx == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:348: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:350: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:350: lock_acquire: Calling "pthread_spin_lock" acquires lock "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:352: cond_true: Condition "serv_ctx->fdtable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:352: cond_true: Condition "flags & POSIX_LOCKS", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:353: lock_order: Calling "gf_fd_fdtable_get_all_fds" acquires lock "_fdtable.lock" while holding lock "gf_lock_t.spinlock" (count: 1 / 3). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:148:9: cond_true: Condition "fdtable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:149:17: getlock: Acquiring lock named "_fdtable.lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1088: lock_acquire: Example 1: Calling "pthread_mutex_trylock" acquires lock "_fdtable.lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1106: example_lock_order: Example 1 (cont.): Calling "fdentry_dump" acquires lock "gf_lock_t.spinlock" while holding "_fdtable.lock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1067:9: cond_false: Condition "!fdentry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1068:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1070:9: cond_false: Condition "-2 != fdentry->next_free", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1071:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1073:9: cond_true: Condition "fdentry->fd", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1074:17: getlock: Acquiring lock named "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1047:9: cond_false: Condition "!fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1048:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1055:9: cond_true: Condition "fd->inode", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:1058:17: getlock: Acquiring lock named "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2332:9: cond_false: Condition "!inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2333:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2338:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2338:9: getlock: Acquiring lock named "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2339:9: cond_false: Condition "ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2341:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2349:17: cond_true: Condition "inode->_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2353:25: cond_true: Condition "inode_ctx == NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2354:33: goto: Jumping to label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2380:1: label: Reached label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2381:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2383:9: cond_false: Condition "inode_ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.c:2391:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:225: lock_acquire: Example 2: Calling "pthread_mutex_lock" acquires lock "_fdtable.lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.c:228: example_lock_order: Example 2 (cont.): Calling "__gf_free" acquires lock "gf_lock_t.spinlock" while holding "_fdtable.lock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: cond_true: Condition "!(3131961357U == *((uint32_t *)((char *)free_ptr + header->size)))", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:318:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:318:9: getlock: Acquiring lock named "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:324:17: cond_true: Condition "!mem_acct->rec[header->type].num_allocs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:327:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:329:9: cond_true: Condition "__sync_sub_and_fetch(&mem_acct->refcnt, 1) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:330:17: cond_true: Condition "mem_acct != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:338:9: cond_true: Condition "ptr != NULL", taking true branch. Error: ORDER_REVERSAL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:143: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:143: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:153: cond_false: Condition "file == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:160: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:162: lock_acquire: Calling "ra_file_lock" acquires lock "ra_file.file_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.h:155:9: lock: "pthread_mutex_lock" locks "file->file_lock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:164: cond_true: Condition "op_ret >= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:169: cond_false: Condition "!page", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:175: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:190: cond_true: Condition "page->dirty", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:190: cond_false: Condition "page->poisoned", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:193: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:195: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:198: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:200: cond_true: Condition "page->vector", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/page.c:202: lock_order: Calling "__gf_free" acquires lock "gf_lock_t.spinlock" while holding lock "ra_file.file_lock" (count: 1 / 6). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: cond_true: Condition "!(3131961357U == *((uint32_t *)((char *)free_ptr + header->size)))", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:318:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:318:9: getlock: Acquiring lock named "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:324:17: cond_true: Condition "!mem_acct->rec[header->type].num_allocs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:327:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:329:9: cond_true: Condition "__sync_sub_and_fetch(&mem_acct->refcnt, 1) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:330:17: cond_true: Condition "mem_acct != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:338:9: cond_true: Condition "ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:975: lock_acquire: Example 1: Calling "pthread_spin_lock" acquires lock "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:983: example_lock_order: Example 1 (cont.): Calling "flush_region" acquires lock "ra_file.file_lock" while holding "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:222:9: getlock: Acquiring lock named "ra_file.file_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.h:155:9: lock: "pthread_mutex_lock" locks "file->file_lock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav != &file->pages", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav->offset < offset + size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:229:25: cond_true: Condition "trav->offset >= offset", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:230:33: cond_true: Condition "!trav->waitq", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:232:33: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:239:33: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:242:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav != &file->pages", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_false: Condition "trav->offset < offset + size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:242:17: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:877: lock_acquire: Example 2: Calling "pthread_spin_lock" acquires lock "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:885: example_lock_order: Example 2 (cont.): Calling "flush_region" acquires lock "ra_file.file_lock" while holding "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:222:9: getlock: Acquiring lock named "ra_file.file_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.h:155:9: lock: "pthread_mutex_lock" locks "file->file_lock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav != &file->pages", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav->offset < offset + size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:229:25: cond_true: Condition "trav->offset >= offset", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:230:33: cond_true: Condition "!trav->waitq", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:232:33: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:239:33: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:242:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav != &file->pages", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_false: Condition "trav->offset < offset + size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:242:17: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:917: lock_acquire: Example 3: Calling "pthread_spin_lock" acquires lock "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:932: example_lock_order: Example 3 (cont.): Calling "flush_region" acquires lock "ra_file.file_lock" while holding "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:222:9: getlock: Acquiring lock named "ra_file.file_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.h:155:9: lock: "pthread_mutex_lock" locks "file->file_lock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav != &file->pages", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav->offset < offset + size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:229:25: cond_true: Condition "trav->offset >= offset", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:230:33: cond_true: Condition "!trav->waitq", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:232:33: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:239:33: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:242:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav != &file->pages", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_false: Condition "trav->offset < offset + size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:242:17: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:737: lock_acquire: Example 4: Calling "pthread_spin_lock" acquires lock "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:753: example_lock_order: Example 4 (cont.): Calling "flush_region" acquires lock "ra_file.file_lock" while holding "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:222:9: getlock: Acquiring lock named "ra_file.file_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.h:155:9: lock: "pthread_mutex_lock" locks "file->file_lock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav != &file->pages", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav->offset < offset + size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:229:25: cond_true: Condition "trav->offset >= offset", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:230:33: cond_true: Condition "!trav->waitq", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:232:33: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:239:33: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:242:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav != &file->pages", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_false: Condition "trav->offset < offset + size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:242:17: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1025: lock_acquire: Example 5: Calling "pthread_spin_lock" acquires lock "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:1033: example_lock_order: Example 5 (cont.): Calling "flush_region" acquires lock "ra_file.file_lock" while holding "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:222:9: getlock: Acquiring lock named "ra_file.file_lock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.h:155:9: lock: "pthread_mutex_lock" locks "file->file_lock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav != &file->pages", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav->offset < offset + size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:229:25: cond_true: Condition "trav->offset >= offset", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:230:33: cond_true: Condition "!trav->waitq", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:232:33: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:239:33: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:242:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_true: Condition "trav != &file->pages", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:225:17: cond_false: Condition "trav->offset < offset + size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/read-ahead/src/read-ahead.c:242:17: loop_end: Reached end of loop. Error: ORDER_REVERSAL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2105: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2106: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2108: cond_true: Condition "event == GF_EVENT_TRANSLATOR_OP", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2114: switch: Switch case value "1". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2180: switch_case: Reached case "1". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2185: cond_false: Condition "!priv->active", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2185: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2186: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2190: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2192: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2194: cond_false: Condition "priv->bflags.barrier_ext == _gf_true", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2197: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2199: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2201: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2208: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2211: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2211: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2217: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2217: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2221: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2225: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2226: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2229: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2236: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2243: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2245: lock_acquire: Calling "pthread_mutex_lock" acquires lock "barrier_notify.bnotify_mutex". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2246: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2246: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2252: cond_true: Condition "priv->bn.bnotify == _gf_true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2256: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2256: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2292: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2293: cond_true: Condition "bclean_req", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog.c:2294: lock_order: Calling "changelog_barrier_cleanup" acquires lock "gf_lock_t.spinlock" while holding lock "barrier_notify.bnotify_mutex" (count: 1 / 2). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1818:9: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1818:9: getlock: Acquiring lock named "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1820:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1823:9: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1823:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1828:9: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1828:9: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1842:2: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-rt.c:58: lock_acquire: Example 1: Calling "pthread_spin_lock" acquires lock "gf_lock_t.spinlock". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-rt.c:60: example_lock_order: Example 1 (cont.): Calling "changelog_handle_change" acquires lock "barrier_notify.bnotify_mutex" while holding "gf_lock_t.spinlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1087:9: cond_true: Condition "cld->cld_type == CHANGELOG_TYPE_ROLLOVER", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1089:17: getlock: Acquiring lock named "barrier_notify.bnotify_mutex". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:981:9: getlock: Acquiring lock named "barrier_notify.bnotify_mutex". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:423:9: cond_true: Condition "priv->changelog_fd != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:425:17: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:431:17: cond_true: Condition "ret == 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:433:17: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:438:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:449:9: cond_true: Condition "cl_empty_flag == 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:451:17: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:460:9: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:473:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:475:9: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:475:9: cond_false: Condition "cl_empty_flag == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:477:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:479:9: cond_true: Condition "!ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:480:17: cond_true: Condition "cl_empty_flag", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:484:17: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:488:25: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:497:2: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:504:9: cond_true: Condition "priv->explicit_rollover", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:507:17: getlock: Acquiring lock named "barrier_notify.bnotify_mutex". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:509:25: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:515:25: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:520:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:983:9: cond_false: Condition "!ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:984:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1092:17: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1096:17: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:1123:2: label: Reached label "out". Error: OVERFLOW_BEFORE_WIDEN: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:649: overflow_before_widen: Potentially overflowing expression "options->send_count * 128" with type "int" (32 bits, signed) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "uint64_t" (64 bits, unsigned). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:649: remediation: To avoid overflow, cast either "options->send_count" or "128" to type "uint64_t". Error: OVERRUN: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs.c:1480: assignment: Assigning: "rem" = "1024UL". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs.c:1482: cond_false: Condition "!fs", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs.c:1482: cond_false: Condition "!fs->ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs.c:1486: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs.c:1490: switch: Switch case value "'h'". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs.c:1491: switch_case: Reached case "'h'". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs.c:1495: cond_true: Condition "usage->sysrq", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs.c:1496: overrun-buffer-arg: Overrunning array "msg" of 1024 bytes by passing it to a function which accesses it at byte offset 1024 using argument "rem" (which evaluates to 1024). Error: OVERRUN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:4540: cond_true: Condition "fop <= GF_FOP_MAXVALUE", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:4540: cond_at_most: Checking "fop <= GF_FOP_MAXVALUE" implies that "fop" may be up to 55 on the true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:4541: overrun-local: Overrunning array "str_map" of 55 8-byte elements at element index 55 (byte offset 440) using index "fop" (which evaluates to 55). Error: OVERRUN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:180: cond_true: Condition "op_no < GF_FOP_MAXVALUE", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:180: cond_at_most: Checking "op_no < GF_FOP_MAXVALUE" implies that "op_no" may be up to 54 on the true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:182: overrun-local: Overrunning array "error_no_list" of 46 84-byte elements at element index 54 (byte offset 4536) using index "op_no" (which evaluates to 54). Error: OVERRUN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:344: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:350: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:352: cond_true: Condition "count % failure_iter_no == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:353: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:357: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:359: cond_false: Condition "error_no", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:361: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:364: cond_false: Condition "op_no >= GF_FOP_MAXVALUE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:365: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:364: cond_at_most: Checking "op_no >= GF_FOP_MAXVALUE" implies that "op_no" may be up to 54 on the false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:366: overrun-local: Overrunning array "error_no_list" of 46 84-byte elements at element index 54 (byte offset 4536) using index "op_no" (which evaluates to 54). Error: OVERRUN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:143: cond_false: Condition "!path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:143: cond_false: Condition "!parent", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:143: cond_false: Condition "!priv_base_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:143: cond_false: Condition "gf_uuid_is_null(gfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:146: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:152: cond_true: Condition "top < 2048 /* 4096 / 2 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:155: cond_false: Condition "__is_root_gfid(tmp_gfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:163: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:169: cond_false: Condition "len < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:179: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:183: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:183: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:183: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:185: cond_true: Condition "1 /* 1 && (size_t)(void const *)&"/"[1] - (size_t)(void const *)"/" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:185: cond_true: Condition "(char const *)"/"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:185: cond_true: Condition "(char const *)"/"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:191: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:152: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:152: cond_true: Condition "top < 2048 /* 4096 / 2 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:152: cond_at_most: Checking "top < 2048" implies that "top" may be up to 2047 on the true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:154: incr: Incrementing "top". The value of "top" may now be up to 2048. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:155: cond_true: Condition "__is_root_gfid(tmp_gfid)", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:161: overrun-local: Overrunning array "dir_stack" of 2048 8-byte elements at element index 2048 (byte offset 16384) using index "top" (which evaluates to 2048). Error: OVERRUN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-code-x64.c:50: cond_true: Condition "builder->regs > 11", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-code-x64.c:50: cond_at_least: Checking "builder->regs > 11U" implies that "builder->regs" is at least 12 on the true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-code-x64.c:53: assignment: Assigning: "i" = "builder->regs". The value of "i" is now at least 12. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-code-x64.c:53: cond_true: Condition "i > 7", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-code-x64.c:54: overrun-local: Overrunning array "ec_code_x64_regmap" of 11 4-byte elements at element index 11 (byte offset 44) using index "i - 1U" (which evaluates to 11). Error: OVERRUN: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:464: cond_true: Condition "true", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:466: alias: Assigning: "state.death_row.next" = "&state.death_row". "state.death_row.next" now points to element 0 of "state.death_row" (which consists of 1 16-byte elements). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:472: cond_true: Condition "&pool_list->thr_list != &pool_threads", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:475: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:472: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:472: cond_true: Condition "&pool_list->thr_list != &pool_threads", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:475: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:472: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:472: cond_false: Condition "&pool_list->thr_list != &pool_threads", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:475: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:478: cond_true: Condition "elapsed.tv_usec < 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:484: alias: Assigning: "pool_list" = "(char *)state.death_row.next - 0UL". "pool_list" now points to byte 0 of "state.death_row" (which consists of 16 bytes). path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:484: cond_true: Condition "&pool_list->thr_list != &state.death_row", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:486: cond_true: Condition "i < 14U /* 20 - 7 + 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:491: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:486: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:486: cond_true: Condition "i < 14U /* 20 - 7 + 1 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:486: cond_at_most: Checking "i < 14U" implies that "i" may be up to 13 on the true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:487: alias: Assigning: "pt_pool" = "&pool_list->pools[i]". "pt_pool" may now point to as high as byte 312 of "state.death_row" (which consists of -8 bytes). /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:488: overrun-local: Overrunning array of -8 bytes at byte offset 312 by dereferencing pointer "pt_pool". Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2309: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2309: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2309: name_at_decl_position: variable "xl" (declared at line 2320) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2316: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2316: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2316: name_at_decl_position: variable "xl" (declared at line 2320) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3196: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3196: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3196: name_at_decl_position: variable "init_attr" (declared at line 3213) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3206: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3206: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3206: name_at_decl_position: variable "init_attr" (declared at line 3213) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:693: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:693: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:693: name_at_decl_position: variable "string" (declared at line 694) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:781: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:781: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:781: name_at_decl_position: variable "string" (declared at line 782) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:820: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:820: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:820: name_at_decl_position: variable "string" (declared at line 821) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:844: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:844: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:844: name_at_decl_position: variable "string" (declared at line 845) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2398: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2398: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2398: name_at_decl_position: variable "ictx" (declared at line 2407) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2400: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2400: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2400: name_at_decl_position: variable "ictx" (declared at line 2407) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2401: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2401: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2401: name_at_decl_position: variable "ictx" (declared at line 2407) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2403: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2403: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2403: name_at_decl_position: variable "ictx" (declared at line 2407) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2404: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2404: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:2404: name_at_decl_position: variable "ictx" (declared at line 2407) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11041: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11041: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11041: name_at_decl_position: variable "ictx" (declared at line 11050) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11043: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11043: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11043: name_at_decl_position: variable "ictx" (declared at line 11050) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11044: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11044: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11044: name_at_decl_position: variable "ictx" (declared at line 11050) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11046: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11046: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11046: name_at_decl_position: variable "ictx" (declared at line 11050) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11047: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11047: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:11047: name_at_decl_position: variable "ictx" (declared at line 11050) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2437: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2437: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2437: name_at_decl_position: variable "pid_file" (declared at line 2517) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2445: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2445: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2445: name_at_decl_position: variable "pid_file" (declared at line 2517) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2450: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2450: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2450: name_at_decl_position: variable "pid_file" (declared at line 2517) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2455: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2455: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2455: name_at_decl_position: variable "pid_file" (declared at line 2517) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2463: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2463: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2463: name_at_decl_position: variable "pid_file" (declared at line 2517) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2469: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2469: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2469: name_at_decl_position: variable "pid_file" (declared at line 2517) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2477: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2477: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2477: name_at_decl_position: variable "pid_file" (declared at line 2517) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2486: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2486: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2486: name_at_decl_position: variable "pid_file" (declared at line 2517) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2510: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2510: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2510: name_at_decl_position: variable "pid_file" (declared at line 2517) Error: PW.BRANCH_PAST_INITIALIZATION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client.c:44: branch_past_initialization: transfer of control bypasses initialization of: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client.c:44: caretline: ^ /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client.c:44: name_at_decl_position: variable "conf" (declared at line 46) Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: include_recursion: #include file "../../libglusterfs/src/xlator.h" includes itself: xlator.h -> gf-dirent.h -> inode.h -> xlator.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: include_recursion: #include file "../../libglusterfs/src/fd.h" includes itself: fd.h -> fd-lk.h -> fd.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: include_recursion: #include file "../../libglusterfs/src/stack.h" includes itself: stack.h -> xlator.h -> stack.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: caretline: ^ Error: PW.INCLUDE_RECURSION: /usr/include/libxml2/libxml/xmlregexp.h:42: include_recursion: #include file "/usr/include/libxml2/libxml/tree.h" includes itself: tree.h -> xmlregexp.h -> tree.h /usr/include/libxml2/libxml/xmlregexp.h:42: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-global.c' /usr/include/libxml2/libxml/xmlregexp.h:42: caretline: ^ Error: PW.INCLUDE_RECURSION: /usr/include/libxml2/libxml/globals.h:22: include_recursion: #include file "/usr/include/libxml2/libxml/xmlmemory.h" includes itself: xmlmemory.h -> threads.h -> globals.h -> xmlmemory.h /usr/include/libxml2/libxml/globals.h:22: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-global.c' /usr/include/libxml2/libxml/globals.h:22: caretline: ^ Error: PW.INCLUDE_RECURSION: /usr/include/libxml2/libxml/globals.h:173: include_recursion: #include file "/usr/include/libxml2/libxml/threads.h" includes itself: threads.h -> globals.h -> threads.h /usr/include/libxml2/libxml/globals.h:173: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-global.c' /usr/include/libxml2/libxml/globals.h:173: caretline: ^ Error: PW.INCLUDE_RECURSION: /usr/include/libxml2/libxml/parser.h:810: include_recursion: #include file "/usr/include/libxml2/libxml/encoding.h" includes itself: encoding.h -> tree.h -> xmlmemory.h -> threads.h -> globals.h -> parser.h -> encoding.h /usr/include/libxml2/libxml/parser.h:810: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-global.c' /usr/include/libxml2/libxml/parser.h:810: caretline: ^ Error: PW.INCLUDE_RECURSION: /usr/include/libxml2/libxml/hash.h:29: include_recursion: #include file "/usr/include/libxml2/libxml/parser.h" includes itself: parser.h -> hash.h -> parser.h /usr/include/libxml2/libxml/hash.h:29: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-global.c' /usr/include/libxml2/libxml/hash.h:29: caretline: ^ Error: PW.INCLUDE_RECURSION: /usr/include/libxml2/libxml/xmlIO.h:117: include_recursion: #include file "/usr/include/libxml2/libxml/globals.h" includes itself: globals.h -> parser.h -> xmlIO.h -> globals.h /usr/include/libxml2/libxml/xmlIO.h:117: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-global.c' /usr/include/libxml2/libxml/xmlIO.h:117: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: include_recursion: #include file "../../libglusterfs/src/globals.h" includes itself: globals.h -> xlator.h -> stack.h -> globals.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: include_recursion: #include file "xlator.h" includes itself: xlator.h -> gf-dirent.h -> inode.h -> xlator.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/call-stub.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: include_recursion: #include file "fd.h" includes itself: fd.h -> fd-lk.h -> fd.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/call-stub.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.h:16: include_recursion: #include file "inode.h" includes itself: inode.h -> xlator.h -> gf-dirent.h -> inode.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.h:16: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.h:16: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:28: include_recursion: #include file "xlator.h" includes itself: xlator.h -> stack.h -> xlator.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:28: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:28: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: include_recursion: #include file "stack.h" includes itself: stack.h -> xlator.h -> stack.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: include_recursion: #include file "globals.h" includes itself: globals.h -> xlator.h -> stack.h -> globals.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/ctx.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: include_recursion: #include file "xlator.h" includes itself: xlator.h -> gf-dirent.h -> inode.h -> xlator.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:35: include_recursion: #include file "fd.h" includes itself: fd.h -> xlator.h -> gf-dirent.h -> inode.h -> fd.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:35: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:35: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.h:19: include_recursion: #include file "fd-lk.h" includes itself: fd-lk.h -> fd.h -> fd-lk.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.h:19: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.h:19: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: include_recursion: #include file "../../../libglusterfs/src/xlator.h" includes itself: xlator.h -> gf-dirent.h -> inode.h -> xlator.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: include_recursion: #include file "../../../libglusterfs/src/fd.h" includes itself: fd.h -> fd-lk.h -> fd.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: include_recursion: #include file "../../../libglusterfs/src/stack.h" includes itself: stack.h -> xlator.h -> stack.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt-ping.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: include_recursion: #include file "../../../../libglusterfs/src/xlator.h" includes itself: xlator.h -> gf-dirent.h -> inode.h -> xlator.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/name.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: include_recursion: #include file "../../../../libglusterfs/src/fd.h" includes itself: fd.h -> fd-lk.h -> fd.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/name.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: include_recursion: #include file "../../../../libglusterfs/src/stack.h" includes itself: stack.h -> xlator.h -> stack.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/xlator.h:59: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.h:16: include_recursion: #include file "../../../../libglusterfs/src/inode.h" includes itself: inode.h -> xlator.h -> gf-dirent.h -> inode.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.h:16: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.h:16: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:28: include_recursion: #include file "../../../../libglusterfs/src/xlator.h" includes itself: xlator.h -> stack.h -> xlator.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:28: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-shared.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:28: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: include_recursion: #include file "../../../../../libglusterfs/src/xlator.h" includes itself: xlator.h -> gf-dirent.h -> inode.h -> xlator.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: include_recursion: #include file "../../../../../libglusterfs/src/fd.h" includes itself: fd.h -> fd-lk.h -> fd.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd-lk.h:14: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.h:16: include_recursion: #include file "../../../../../libglusterfs/src/inode.h" includes itself: inode.h -> xlator.h -> gf-dirent.h -> inode.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.h:16: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/dht2/dht2-common/src/dht2-common-map.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gf-dirent.h:16: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:28: include_recursion: #include file "../../../../../libglusterfs/src/xlator.h" includes itself: xlator.h -> stack.h -> xlator.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:28: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/dht2/dht2-common/src/dht2-common-map.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:28: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: include_recursion: #include file "../../../../../libglusterfs/src/globals.h" includes itself: globals.h -> xlator.h -> stack.h -> globals.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-api.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: include_recursion: #include file "../../../../libglusterfs/src/globals.h" includes itself: globals.h -> xlator.h -> stack.h -> globals.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-bitd-svc.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/stack.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-pmap.h:22: include_recursion: #include file "glusterd.h" includes itself: glusterd.h -> glusterd-pmap.h -> glusterd.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-pmap.h:22: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-bitd-svc.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-pmap.h:22: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-peer-utils.h:15: include_recursion: #include file "glusterd-utils.h" includes itself: glusterd-utils.h -> glusterd-peer-utils.h -> glusterd-utils.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-peer-utils.h:15: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-bitd-svc.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-peer-utils.h:15: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.h:27: include_recursion: #include file "glusterd-peer-utils.h" includes itself: glusterd-peer-utils.h -> glusterd-utils.h -> glusterd-peer-utils.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.h:27: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-peer-utils.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.h:27: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.h:25: include_recursion: #include file "mount3-auth.h" includes itself: mount3-auth.h -> mount3.h -> mount3-auth.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.h:25: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3-auth.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.h:25: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3-auth.h:21: include_recursion: #include file "mount3.h" includes itself: mount3.h -> mount3-auth.h -> mount3.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3-auth.h:21: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3-auth.h:21: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: include_recursion: #include file "../../../../libglusterfs/src/xlator.h" includes itself: xlator.h -> gf-dirent.h -> inode.h -> xlator.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:32: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:35: include_recursion: #include file "../../../../libglusterfs/src/fd.h" includes itself: fd.h -> xlator.h -> gf-dirent.h -> inode.h -> fd.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:35: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/inode.h:35: caretline: ^ Error: PW.INCLUDE_RECURSION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.h:19: include_recursion: #include file "../../../../libglusterfs/src/fd-lk.h" includes itself: fd-lk.h -> fd.h -> fd-lk.h /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.h:19: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-handshake.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/fd.h:19: caretline: ^ Error: PW.PARAM_SET_BUT_NOT_USED: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:968: param_set_but_not_used: parameter "op_ret" was set but never used /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/crypt.c:968: caretline: ^ Error: PW.PARAM_SET_BUT_NOT_USED: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:4355: param_set_but_not_used: parameter "op_errno" was set but never used /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:4355: caretline: ^ Error: PW.SIGNED_ONE_BIT_FIELD: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:161: signed_one_bit_field: signed bit field of length 1 /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:161: caretline: ^ Error: PW.SIGNED_ONE_BIT_FIELD: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:163: signed_one_bit_field: signed bit field of length 1 /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:163: caretline: ^ Error: PW.SIGNED_ONE_BIT_FIELD: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:164: signed_one_bit_field: signed bit field of length 1 /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:164: caretline: ^ Error: PW.SIGNED_ONE_BIT_FIELD: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:165: signed_one_bit_field: signed bit field of length 1 /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:165: caretline: ^ Error: PW.SIGNED_ONE_BIT_FIELD: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:166: signed_one_bit_field: signed bit field of length 1 /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/write-behind/src/write-behind.c:166: caretline: ^ Error: PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/glusterfs-acl.h:149: useless_type_qualifier_on_return_type: type qualifier on return type is meaningless /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/glusterfs-acl.h:149: primary_file: During compilation of file '/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-handleops.c' /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/glusterfs-acl.h:149: caretline: ^ Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:615: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:615: cond_false: Condition "this->children->next", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:619: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:621: cond_true: Condition "!this->parents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:622: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:622: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:625: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:625: var_assign: Assigning: "priv" = storage returned from "__gf_calloc(1UL, 96UL, gf_barrier_mt_priv_t, "gf_barrier_mt_priv_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:626: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:627: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:629: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:631: cond_true: Condition "val_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:631: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:645: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/barrier/src/barrier.c:646: leaked_storage: Variable "priv" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:967: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:967: cond_false: Condition "this->children->next", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:973: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:975: cond_true: Condition "!this->parents", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:981: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:981: var_assign: Assigning: "conf" = storage returned from "__gf_calloc(1UL, 448UL, gf_iot_mt_iot_conf_t, "gf_iot_mt_iot_conf_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:983: cond_false: Condition "conf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:987: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:989: cond_false: Condition "(ret = pthread_cond_init(&conf->cond, NULL)) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:994: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:997: cond_false: Condition "(ret = pthread_mutex_init(&conf->mutex, NULL)) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:1002: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:1005: noescape: Resource "conf" is not freed or pointed-to in "set_stack_size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:844:29: noescape: "set_stack_size(iot_conf_t *)" does not free or save its parameter "conf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:1007: cond_true: Condition "val_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:1007: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:1044: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:1045: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:1046: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/io-threads/src/io-threads.c:1048: leaked_storage: Variable "conf" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:172: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:174: cond_true: Condition "i < brick_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:176: cond_true: Condition "1 /* 1 && (size_t)(void const *)&" \n"[1] - (size_t)(void const *)" \n" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:176: cond_true: Condition "(char const *)" \n"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:176: cond_false: Condition "(char const *)" \n"[1] == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:178: cond_false: Condition "brick == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:179: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:180: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:180: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:180: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:181: cond_false: Condition "brick == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:182: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:183: alloc_arg: "getaddrinfo" allocates memory that is stored into "ai_info". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:184: cond_false: Condition "ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:191: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:193: cond_true: Condition "ai_list_tmp1 == NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:198: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:255: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:258: cond_true: Condition "&ai_list_tmp1->list != &ai_list->list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:259: cond_true: Condition "ai_list_tmp1->info", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:263: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:258: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:258: cond_false: Condition "&ai_list_tmp1->list != &ai_list->list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:263: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:265: leaked_storage: Variable "ai_info" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4024: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4025: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4026: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4033: alloc_arg: "_graph_get_decommissioned_children" allocates memory that is stored into "decommissioned_children". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3364:9: cond_true: Condition "xl_child", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3366:17: cond_false: Condition "_xl_has_decommissioned_clients(cxl, volinfo)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3378:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3381:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3364:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3364:9: cond_true: Condition "xl_child", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3366:17: cond_false: Condition "_xl_has_decommissioned_clients(cxl, volinfo)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3378:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3381:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3364:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3364:9: cond_true: Condition "xl_child", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3366:17: cond_true: Condition "_xl_has_decommissioned_clients(cxl, volinfo)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3367:25: cond_true: Condition "!*children", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3368:33: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3368:33: var_assign: Assigning: "*children" = "__gf_calloc(16384UL, 1UL, gf_common_mt_char, "gf_common_mt_char")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3370:33: cond_false: Condition "!*children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3371:41: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3374:25: cond_false: Condition "comma", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3375:33: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3381:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3364:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3364:9: cond_false: Condition "xl_child", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3381:9: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4035: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4036: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4037: cond_true: Condition "decommissioned_children", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4038: noescape: Resource "decommissioned_children" is not freed or pointed-to in "xlator_set_option". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:227:51: noescape: "xlator_set_option(xlator_t *, char *, char *)" does not free or save its parameter "value". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4040: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4041: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4044: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4052: cond_true: Condition "dup_volinfo", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4055: leaked_storage: Variable "decommissioned_children" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11970: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11970: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11973: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11973: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11975: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11975: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11978: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11983: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11985: cond_true: Condition "strcasecmp(key, "all") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11986: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12002: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_false: Condition "0 /* !_gf_true */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_true: Condition "valid_all_vol_opts[i].option", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_true: Condition "!strcmp(key, "all")", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_true: Condition "_all", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_false: Condition "!_is_valid_opt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_false: Condition "!_all", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12006: cond_true: Condition "valid_all_vol_opts[i].option", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12007: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12007: var_assign: Assigning: "allvolopt" = storage returned from "gf_strdup(valid_all_vol_opts[i].option)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12009: cond_false: Condition "!all_opts", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12010: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12013: noescape: Resource "allvolopt" is not freed or pointed-to in "strcmp". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12013: cond_true: Condition "strcmp(allvolopt, "cluster.max-op-version") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12017: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12018: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12074: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12075: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12075: cond_false: Condition "!all_opts", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12081: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12084: leaked_storage: Variable "allvolopt" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11970: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11970: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11973: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11973: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11975: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11975: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11978: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11983: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11985: cond_true: Condition "strcasecmp(key, "all") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11986: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12002: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_false: Condition "0 /* !_gf_true */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_true: Condition "valid_all_vol_opts[i].option", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_true: Condition "!strcmp(key, "all")", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_true: Condition "_all", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_false: Condition "!_is_valid_opt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_false: Condition "!_all", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12006: cond_true: Condition "valid_all_vol_opts[i].option", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12009: cond_false: Condition "!all_opts", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12010: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12013: cond_false: Condition "strcmp(allvolopt, "cluster.max-op-version") == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12021: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12028: cond_true: Condition "!def_val", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12029: cond_true: Condition "!strcmp(allvolopt, "cluster.op-version")", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12031: alloc_arg: "gf_asprintf" allocates memory that is stored into "def_val". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12033: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12035: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12041: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12045: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12074: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12075: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12075: cond_false: Condition "!all_opts", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12081: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12084: leaked_storage: Variable "def_val" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11970: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11970: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11973: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11973: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11975: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11975: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11978: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11983: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11985: cond_false: Condition "strcasecmp(key, "all") == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11987: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11988: alloc_arg: "glusterd_check_option_exists" allocates memory that is stored into "key_fixed". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:750:9: cond_true: Condition "!strchr(key, 46)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:751:17: cond_true: Condition "completion", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:752:25: alloc_arg: "option_complete" allocates memory that is stored into "*completion". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_true: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_false: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_false: Condition "*completion", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:632:25: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_false: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_true: Condition "*completion", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_false: Condition "strcmp(*completion, vme->key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:632:25: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_false: Condition "vme->key", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:635:9: cond_true: Condition "*completion", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:640:17: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:640:17: var_assign: Assigning: "*completion" = "gf_strdup(*completion)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:641:17: cond_false: Condition "!*completion", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:753:25: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:758:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:760:25: cond_true: Condition "!!*completion", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:761:25: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11989: cond_false: Condition "!exists", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11999: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12000: cond_true: Condition "key_fixed", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12001: var_assign: Assigning: "key" = "key_fixed". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_false: Condition "0 /* !_gf_true */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_true: Condition "valid_all_vol_opts[i].option", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: noescape: Resource "key" is not freed or pointed-to in "strcmp". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_true: Condition "!strcmp(key, "all")", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_true: Condition "_all", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_false: Condition "!_is_valid_opt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: cond_false: Condition "!_all", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12004: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12006: cond_true: Condition "valid_all_vol_opts[i].option", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12009: cond_true: Condition "!all_opts", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12009: noescape: Resource "key" is not freed or pointed-to in "strcmp". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12009: cond_true: Condition "strcmp(key, allvolopt) != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12010: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12066: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12006: cond_false: Condition "valid_all_vol_opts[i].option", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12066: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12069: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12075: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12075: cond_true: Condition "!all_opts", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12075: cond_true: Condition "!key_found", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12076: cond_true: Condition "err_str[0] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12077: noescape: Resource "key" is not freed or pointed-to in "snprintf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12079: cond_true: Condition "*op_errstr == NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12084: leaked_storage: Variable "key_fixed" going out of scope leaks the storage it points to. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12084: leaked_storage: Variable "key" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2258: cond_true: Condition "!volinfo", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2261: cond_true: Condition "!priv", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2263: open_fn: Returning handle opened by "open". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2263: var_assign: Assigning: "fd" = handle returned from "open(cksum_path, 1602, 384)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2265: cond_false: Condition "-1 == fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2271: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2273: cond_true: Condition "!is_quota_conf", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2280: cond_true: Condition "sort_fd < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2285: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2329: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2330: cond_false: Condition "fd > 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2331: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2330: off_by_one: Testing whether handle "fd" is strictly greater than zero is suspicious. "fd" leaks when it is zero. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2330: remediation: Did you intend to include equality with zero? path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2332: cond_false: Condition "unlink_sortfile", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2333: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2336: leaked_handle: Handle variable "fd" going out of scope leaks the handle. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:679: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:679: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:680: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:680: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:681: cond_false: Condition "!loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:681: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:682: cond_false: Condition "!loc->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:682: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:683: cond_false: Condition "!fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:683: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:685: alloc_fn: Storage is returned from allocation function "mem_get0". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:576:9: cond_false: Condition "!mem_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:580:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:582:9: alloc_fn: Storage is returned from allocation function "mem_get". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:672:9: cond_false: Condition "!mem_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:676:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:679:9: cond_false: Condition "!pool_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:679:9: cond_false: Condition "pool_list->poison", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:681:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:685:9: alloc_fn: Storage is returned from allocation function "mem_get_from_pool". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:643:9: cond_false: Condition "retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:647:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:650:9: cond_false: Condition "retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:654:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:657:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:657:9: return_alloc_fn: Directly returning storage allocated by "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:685:9: var_assign: Assigning: "retval" = "mem_get_from_pool(pt_pool)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:688:9: cond_false: Condition "!retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:690:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:697:9: return_alloc: Returning allocated memory "retval". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:582:9: var_assign: Assigning: "ptr" = "mem_get(mem_pool)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:584:9: cond_true: Condition "ptr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:585:17: noescape: Resource "ptr" is not freed or pointed-to in function "memset". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:588:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:685: var_assign: Assigning: "local" = storage returned from "mem_get0(this->local_pool)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:686: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:692: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:694: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:694: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:694: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:694: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:706: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:707: cond_true: Condition "!wind", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: cond_true: Condition "op_errno != frame->root->error", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:708: cond_true: Condition "frame->this->ctx->measure_latency", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:710: leaked_storage: Variable "local" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1906: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1906: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1907: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1907: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1908: cond_false: Condition "!fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1908: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1909: cond_false: Condition "!fd->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1909: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1911: alloc_fn: Storage is returned from allocation function "mem_get0". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:576:9: cond_false: Condition "!mem_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:580:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:582:9: alloc_fn: Storage is returned from allocation function "mem_get". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:672:9: cond_false: Condition "!mem_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:676:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:679:9: cond_false: Condition "!pool_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:679:9: cond_false: Condition "pool_list->poison", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:681:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:685:9: alloc_fn: Storage is returned from allocation function "mem_get_from_pool". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:643:9: cond_false: Condition "retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:647:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:650:9: cond_false: Condition "retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:654:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:657:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:657:9: return_alloc_fn: Directly returning storage allocated by "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:685:9: var_assign: Assigning: "retval" = "mem_get_from_pool(pt_pool)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:688:9: cond_false: Condition "!retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:690:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:697:9: return_alloc: Returning allocated memory "retval". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:582:9: var_assign: Assigning: "ptr" = "mem_get(mem_pool)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:584:9: cond_true: Condition "ptr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:585:17: noescape: Resource "ptr" is not freed or pointed-to in function "memset". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:588:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1911: var_assign: Assigning: "local" = storage returned from "mem_get0(this->local_pool)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1912: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1916: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1928: cond_false: Condition "!svc_fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1932: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1933: cond_true: Condition "svc_fd->entry_point_handled", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1933: cond_true: Condition "off == svc_fd->last_offset", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1936: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1952: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1953: cond_true: Condition "!wind", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: cond_true: Condition "op_ret == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1954: cond_true: Condition "frame->this->ctx->measure_latency", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-client/src/snapview-client.c:1959: leaked_storage: Variable "local" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4984: alloc_fn: Storage is returned from allocation function "gf_uint64_2human_readable". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1563:9: cond_true: Condition "n >= 1125899906842624ULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1564:17: alloc_arg: "gf_asprintf" allocates memory that is stored into "str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1565:17: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1566:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1567:9: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1587:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1588:9: return_alloc: Returning allocated memory "str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4984: noescape: Resource "gf_uint64_2human_readable(priv->block_size)" is not freed or pointed-to in "gf_proc_dump_write". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:4984: leaked_storage: Failing to save or free storage allocated by "gf_uint64_2human_readable(priv->block_size)" leaks it. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:159: cond_false: Condition "eliminate == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:162: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:164: cond_true: Condition "1 /* 1 && (size_t)(void const *)&","[1] - (size_t)(void const *)"," == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:164: cond_true: Condition "(char const *)","[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:164: cond_true: Condition "(char const *)","[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:165: cond_true: Condition "component", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:168: cond_false: Condition "!trav", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:171: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:172: cond_true: Condition "component[0] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:173: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:175: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:177: cond_true: Condition "component[strlen(component) - 1] != '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:181: cond_false: Condition "!trav->path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:185: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:188: cond_true: Condition "1 /* 1 && (size_t)(void const *)&","[1] - (size_t)(void const *)"," == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:188: cond_true: Condition "(char const *)","[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:188: cond_true: Condition "(char const *)","[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:189: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:165: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:165: cond_true: Condition "component", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:166: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:166: var_assign: Assigning: "trav" = storage returned from "__gf_calloc(1UL, 16UL, gf_trash_mt_trash_elim_path, "gf_trash_mt_trash_elim_path")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:168: cond_false: Condition "!trav", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:171: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:172: cond_true: Condition "component[0] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:173: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:175: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:177: cond_true: Condition "component[strlen(component) - 1] != '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:181: cond_true: Condition "!trav->path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:183: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:183: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:184: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:190: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:191: leaked_storage: Variable "trav" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4202: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4202: cond_true: Condition "&hostname->hostname_list != &peerinfo->hostnames", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4204: alloc_arg: "gf_asprintf" allocates memory that is stored into "key". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4206: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4207: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4208: noescape: Resource "key" is not freed or pointed-to in "gf_store_save_value". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/store.c:330:36: noescape: "gf_store_save_value(int, char *, char *)" does not free or save its parameter "key". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4209: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4210: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4216: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4218: leaked_storage: Variable "key" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3378: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3380: cond_true: Condition "!source", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3381: cond_true: Condition "!destination", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3385: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3389: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3393: open_fn: Returning handle opened by "open". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3393: var_assign: Assigning: "src_fd" = handle returned from "open(source, 0)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3394: cond_false: Condition "src_fd < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3400: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3403: cond_false: Condition "dest_fd < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3409: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3412: noescape: Resource "src_fd" is not freed or pointed-to in "sys_read". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:307:15: noescape: "sys_read(int, void *, size_t)" does not free or save its parameter "fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3413: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3418: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3420: cond_false: Condition "read_len == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3421: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3424: cond_false: Condition "ret != read_len", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3429: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3430: cond_true: Condition "ret > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3411: loop_begin: Jumped back to beginning of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3412: noescape: Resource "src_fd" is not freed or pointed-to in "sys_read". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:307:15: noescape: "sys_read(int, void *, size_t)" does not free or save its parameter "fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3413: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3418: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3420: cond_true: Condition "read_len == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3421: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3430: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3432: cond_false: Condition "src_fd > 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3433: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3432: off_by_one: Testing whether handle "src_fd" is strictly greater than zero is suspicious. "src_fd" leaks when it is zero. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3432: remediation: Did you intend to include equality with zero? path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3435: cond_true: Condition "dest_fd > 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:3437: leaked_handle: Handle variable "src_fd" going out of scope leaks the handle. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2149: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2149: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2151: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2152: cond_false: Condition "!req", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2152: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2158: cond_true: Condition "-1 == req->rpc_status", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2165: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2216: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2218: cond_true: Condition "req_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2218: cond_true: Condition "req_ctx->dict", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2225: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2225: var_assign: Assigning: "ev_ctx" = storage returned from "__gf_calloc(1UL, 40UL, gf_gld_mt_brick_rsp_ctx_t, "gf_gld_mt_brick_rsp_ctx_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2226: cond_false: Condition "!ev_ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2226: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2227: cond_true: Condition "op_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2231: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2233: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2237: noescape: Resource "ev_ctx" is not freed or pointed-to in "glusterd_op_sm_inject_event". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:8063:52: noescape: "glusterd_op_sm_inject_event(glusterd_op_sm_event_type_t, uuid_t *, void *)" does not free or save its parameter "ctx". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2238: cond_false: Condition "!ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2241: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2243: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2243: cond_false: Condition "dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2244: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2247: leaked_storage: Variable "ev_ctx" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7577: cond_false: Condition "ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7579: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7580: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7580: var_assign: Assigning: "req_ctx" = storage returned from "__gf_calloc(1UL, 40UL, gf_gld_mt_op_allack_ctx_t, "gf_gld_mt_op_allack_ctx_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7587: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7597: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7601: cond_false: Condition "proc->fn", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7605: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7607: cond_true: Condition "!opinfo.pending_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7607: cond_true: Condition "!opinfo.brick_pending_count", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7609: noescape: Resource "req_ctx" is not freed or pointed-to in "glusterd_op_sm_inject_event". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:8063:52: noescape: "glusterd_op_sm_inject_event(glusterd_op_sm_event_type_t, uuid_t *, void *)" does not free or save its parameter "ctx". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:7616: leaked_storage: Variable "req_ctx" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4266: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4266: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4269: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4270: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4272: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4272: var_assign: Assigning: "status_values" = storage returned from "__gf_calloc(count, 8UL, gf_common_mt_char, "gf_common_mt_char")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4274: cond_false: Condition "!status_values", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4277: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4279: cond_true: Condition "i < count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4282: cond_true: Condition "!status_values[i]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4284: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4418: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4419: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4419: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4420: leaked_storage: Variable "status_values" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2759: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2759: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2762: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2765: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2770: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2772: cond_false: Condition "dict_count == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2783: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2786: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2790: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2792: cond_true: Condition "strcasecmp(volname, "all") == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2793: alloc_arg: "glusterd_op_set_all_volume_options" allocates memory that is stored into "op_errstr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2466:9: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2467:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2470:9: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2475:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2478:9: cond_false: Condition "ret <= 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2483:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2485:9: cond_true: Condition "key_fixed", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2488:9: alloc_arg: "glusterd_set_shared_storage" allocates memory that is stored into "*op_errstr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2667:9: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2667:9: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2725:1: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2726:9: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2726:9: cond_true: Condition "strlen(errstr)", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2727:17: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2727:17: var_assign: Assigning: "*op_errstr" = "gf_strdup(errstr)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2489:9: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2493:17: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2625:1: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2628:9: cond_false: Condition "dup_opt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2629:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2632:9: cond_false: Condition "quorum_action", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2633:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:2795: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:3021: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:3024: cond_false: Condition "quorum_action", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:3025: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:3026: leaked_storage: Variable "op_errstr" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:511: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:512: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:224: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:225: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:38: cond_false: Condition "!is_leases_enabled(this)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:38: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:40: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:40: var_assign: Assigning: "fd_ctx" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fd_ctx_t, "gf_leases_mt_fd_ctx_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:43: cond_true: Condition "!fd_ctx->client_uid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:45: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:80: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:81: cond_false: Condition "op_errno == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: cond_true: Condition "1 /* -1 < 0 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: cond_true: Condition "1 /* -1 < 0 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: cond_true: Condition "op_errno != frame->root->error", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:82: cond_true: Condition "frame->this->ctx->measure_latency", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:83: leaked_storage: Variable "fd_ctx" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:174: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:175: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:410: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:411: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:356: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:357: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:306: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:307: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:461: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:462: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:121: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:122: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:865: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:866: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:814: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:815: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:763: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:764: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:914: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:915: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:712: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:713: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:614: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:615: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:662: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: cond_false: Condition "!__stub", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: var_assign: Assigning: "blk_fop" = storage returned from "__gf_calloc(1UL, 24UL, gf_leases_mt_fop_stub_t, "gf_leases_mt_fop_stub_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: cond_false: Condition "!blk_fop", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: cond_true: Condition "!lease_ctx", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: goto: Jumping to label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: label: Reached label "__out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/leases/src/leases.c:663: leaked_storage: Variable "blk_fop" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1385: cond_false: Condition "!gfdb_brick_info", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1385: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1388: cond_false: Condition "!query_cbk_args->this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1388: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1391: cond_false: Condition "!gfdb_brick_info->_query_cbk_args", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1391: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1394: cond_false: Condition "!local_brick", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1394: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1396: cond_false: Condition "!local_brick->xlator", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1396: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1398: cond_false: Condition "!local_brick->brick_db_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1398: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1403: cond_false: Condition "!ctr_ipc_in_dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1408: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1410: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1410: var_assign: Assigning: "ipc_ctr_params" = storage returned from "__gf_calloc(1UL, 40UL, gf_tier_mt_ipc_ctr_params_t, "gf_tier_mt_ipc_ctr_params_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1412: cond_false: Condition "!ipc_ctr_params", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1414: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1428: cond_true: Condition "!gfdb_brick_info->_gfdb_promote", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1428: cond_true: Condition "query_cbk_args->defrag->tier_conf.watermark_last == TIER_WM_HI", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1433: noescape: Resource "&ipc_ctr_params->time_stamp" is not freed or pointed-to in "memcpy". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1437: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1437: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1437: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1437: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1489: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1491: cond_true: Condition "ctr_ipc_in_dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1496: cond_false: Condition "ctr_ipc_out_dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1499: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/tier.c:1501: leaked_storage: Variable "ipc_ctr_params" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4994: cond_false: Condition "!volinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4994: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4995: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4995: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4997: cond_true: Condition "&snap_vol->snapvol_list != &volinfo->snap_volumes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5003: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5010: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5016: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5016: noescape: Resource "gf_strdup(uuid_utoa(snapinfo->snap_id))" is not freed or pointed-to in "fprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5016: leaked_storage: Failing to save or free storage allocated by "gf_strdup(uuid_utoa(snapinfo->snap_id))" leaks it. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5126: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5127: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5134: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5138: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5138: noescape: Resource "gf_strdup(uuid_utoa(priv->uuid))" is not freed or pointed-to in "fprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5138: leaked_storage: Failing to save or free storage allocated by "gf_strdup(uuid_utoa(priv->uuid))" leaks it. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5126: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5127: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5134: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5143: cond_true: Condition "priv->opts", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5149: cond_true: Condition "&peerinfo->uuid_list != &priv->peers", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5155: cond_true: Condition "peerinfo->connected", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5160: cond_true: Condition "&peer_hostname_info->hostname_list != &peerinfo->hostnames", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5162: cond_true: Condition "strcmp(peerinfo->hostname, peer_hostname_info->hostname) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5164: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5171: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5160: cond_false: Condition "&peer_hostname_info->hostname_list != &peerinfo->hostnames", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5171: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5174: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5149: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5149: cond_false: Condition "&peerinfo->uuid_list != &priv->peers", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5174: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5180: cond_true: Condition "&volinfo->vol_list != &priv->volumes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5182: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5188: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5191: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5197: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5201: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5207: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5211: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5217: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5221: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5227: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5230: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5230: noescape: Resource "gf_strdup(uuid_utoa(volinfo->volume_id))" is not freed or pointed-to in "fprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5230: leaked_storage: Failing to save or free storage allocated by "gf_strdup(uuid_utoa(volinfo->volume_id))" leaks it. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5126: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5127: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5134: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5143: cond_true: Condition "priv->opts", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5149: cond_true: Condition "&peerinfo->uuid_list != &priv->peers", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5155: cond_true: Condition "peerinfo->connected", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5160: cond_true: Condition "&peer_hostname_info->hostname_list != &peerinfo->hostnames", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5162: cond_true: Condition "strcmp(peerinfo->hostname, peer_hostname_info->hostname) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5164: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5171: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5160: cond_false: Condition "&peer_hostname_info->hostname_list != &peerinfo->hostnames", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5171: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5174: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5149: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5149: cond_false: Condition "&peerinfo->uuid_list != &priv->peers", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5174: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5180: cond_true: Condition "&volinfo->vol_list != &priv->volumes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5182: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5188: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5191: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5197: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5201: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5207: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5211: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5217: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5221: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5227: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5241: cond_true: Condition "&brickinfo->brick_list != &volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5250: cond_true: Condition "gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5251: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5267: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5241: cond_true: Condition "&brickinfo->brick_list != &volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5250: cond_true: Condition "gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5251: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5267: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5241: cond_false: Condition "&brickinfo->brick_list != &volinfo->bricks", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5267: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5272: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5273: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5292: cond_true: Condition "volinfo->snapd.svc.online", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5294: cond_true: Condition "volinfo->snapd.svc.inited", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5297: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5297: noescape: Resource "gf_strdup(uuid_utoa(volinfo->rebal.rebalance_id))" is not freed or pointed-to in "fprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5297: leaked_storage: Failing to save or free storage allocated by "gf_strdup(uuid_utoa(volinfo->rebal.rebalance_id))" leaks it. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5126: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5127: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5134: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5143: cond_true: Condition "priv->opts", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5149: cond_true: Condition "&peerinfo->uuid_list != &priv->peers", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5155: cond_true: Condition "peerinfo->connected", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5160: cond_true: Condition "&peer_hostname_info->hostname_list != &peerinfo->hostnames", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5162: cond_true: Condition "strcmp(peerinfo->hostname, peer_hostname_info->hostname) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5164: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5171: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5160: cond_false: Condition "&peer_hostname_info->hostname_list != &peerinfo->hostnames", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5171: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5174: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5149: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5149: cond_false: Condition "&peerinfo->uuid_list != &priv->peers", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5174: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5180: cond_true: Condition "&volinfo->vol_list != &priv->volumes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5182: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5188: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5191: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5197: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5201: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5207: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5211: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5217: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5221: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5227: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5241: cond_true: Condition "&brickinfo->brick_list != &volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5250: cond_true: Condition "gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5251: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5267: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5241: cond_true: Condition "&brickinfo->brick_list != &volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5250: cond_true: Condition "gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5251: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5267: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5241: cond_false: Condition "&brickinfo->brick_list != &volinfo->bricks", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5267: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5272: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5273: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5292: cond_true: Condition "volinfo->snapd.svc.online", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5294: cond_true: Condition "volinfo->snapd.svc.inited", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5309: alloc_fn: Storage is returned from allocation function "gf_uint64_2human_readable". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1563:9: cond_true: Condition "n >= 1125899906842624ULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1564:17: alloc_arg: "gf_asprintf" allocates memory that is stored into "str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1565:17: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1566:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1567:9: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1587:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:1588:9: return_alloc: Returning allocated memory "str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5309: noescape: Resource "gf_uint64_2human_readable(volinfo->rebal.rebalance_data)" is not freed or pointed-to in "fprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5309: leaked_storage: Failing to save or free storage allocated by "gf_uint64_2human_readable(volinfo->rebal.rebalance_data)" leaks it. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5066: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5066: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5069: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5069: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5071: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5071: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5074: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5082: cond_true: Condition "dp", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5084: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5099: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5102: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5106: alloc_arg: "gf_asprintf" allocates memory that is stored into "filename". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5108: noescape: Resource "filename" is not freed or pointed-to in "_gf_msg". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5114: cond_true: Condition "odir[odirlen - 1] != '/'", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5117: noescape: Resource "filename" is not freed or pointed-to in "gf_asprintf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5120: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5123: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5414: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5416: cond_false: Condition "fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5417: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5427: leaked_storage: Variable "filename" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5066: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5066: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5069: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5069: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5071: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5071: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5074: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5075: alloc_arg: "gf_asprintf" allocates memory that is stored into "odir". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5076: noescape: Resource "odir" is not freed or pointed-to in "_gf_msg". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5081: noescape: Resource "odir" is not freed or pointed-to in "sys_opendir". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:99:26: noescape: "sys_opendir(char const *)" does not free or save its parameter "name". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5082: cond_true: Condition "dp", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5084: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5099: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5102: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5113: noescape: Resource "odir" is not freed or pointed-to in "strlen". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5114: cond_true: Condition "odir[odirlen - 1] != '/'", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5115: noescape: Resource "odir" is not freed or pointed-to in "strcat". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5117: noescape: Resource "odir" is not freed or pointed-to in "gf_asprintf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5120: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5123: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5414: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5416: cond_false: Condition "fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5417: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:5427: leaked_storage: Variable "odir" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4615: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4615: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4618: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4620: cond_true: Condition "!req", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4621: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4621: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4624: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4630: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4632: cond_false: Condition "strcasecmp(volname, "all") == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4636: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4640: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4646: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4651: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4658: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4659: cond_true: Condition "strcmp(key, "all")", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4660: cond_false: Condition "fnmatch("user.*", key, 2 /* 1 << 1 */) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4684: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4685: alloc_arg: "glusterd_check_option_exists" allocates memory that is stored into "key_fixed". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:750:9: cond_true: Condition "!strchr(key, 46)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:751:17: cond_true: Condition "completion", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:752:25: alloc_arg: "option_complete" allocates memory that is stored into "*completion". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_true: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_false: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_false: Condition "*completion", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:632:25: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_false: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_true: Condition "*completion", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_false: Condition "strcmp(*completion, vme->key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:632:25: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_false: Condition "vme->key", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:635:9: cond_true: Condition "*completion", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:640:17: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:640:17: var_assign: Assigning: "*completion" = "gf_strdup(*completion)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:641:17: cond_false: Condition "!*completion", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:753:25: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:758:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:760:25: cond_true: Condition "!!*completion", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:761:25: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4686: cond_false: Condition "!exists", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4699: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4700: cond_true: Condition "key_fixed", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4702: var_assign: Assigning: "key" = "key_fixed". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4705: noescape: Resource "key" is not freed or pointed-to in "gd_is_global_option". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4580:28: noescape: "gd_is_global_option(char *)" does not free or save its parameter "opt_key". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4705: cond_true: Condition "gd_is_global_option(key)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4715: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4720: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4873: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4874: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4875: cond_true: Condition "!rsp.op_errstr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4878: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4882: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4889: leaked_storage: Variable "key_fixed" going out of scope leaks the storage it points to. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:4889: leaked_storage: Variable "key" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:833: cond_false: Condition "!options", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:833: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:834: cond_false: Condition "!words", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:834: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:837: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:838: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:840: cond_false: Condition "wordcount < 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:840: cond_false: Condition "wordcount > 6", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:844: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:846: cond_true: Condition "wordcount >= 1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:847: alloc_arg: "gf_asprintf" allocates memory that is stored into "daemon_name". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:849: cond_true: Condition "count < wordcount", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:850: cond_true: Condition "strcmp(words[count], "odir") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:852: cond_true: Condition "strcmp(words[count], "odir") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:853: cond_false: Condition "++count < wordcount", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:856: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:858: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:924: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:925: cond_true: Condition "dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:928: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:928: cond_true: Condition "dict", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:931: leaked_storage: Variable "daemon_name" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2107: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2112: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2115: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2119: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2123: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2127: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2130: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2131: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2134: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2139: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2143: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2147: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2150: cond_true: Condition "volinfo->brick_count == brick_count", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2151: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2151: var_assign: Assigning: "errstr" = storage returned from "gf_strdup("Deleting all the bricks of the volume is not allowed")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2154: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2366: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "errstr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2369: cond_false: Condition "op_errstr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2370: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2373: leaked_storage: Variable "errstr" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2107: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2112: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2115: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2119: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2123: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2127: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2130: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2131: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2134: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2139: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2143: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2147: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2150: cond_false: Condition "volinfo->brick_count == brick_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2155: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2158: switch: Switch case value "GF_OP_CMD_NONE". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2159: switch_case: Reached case "GF_OP_CMD_NONE". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2160: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2160: var_assign: Assigning: "errstr" = storage returned from "gf_strdup("no remove-brick command issued")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2161: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2366: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "errstr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2369: cond_false: Condition "op_errstr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2370: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2373: leaked_storage: Variable "errstr" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2107: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2112: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2115: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2119: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2123: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2127: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2130: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2131: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2134: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2139: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2143: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2147: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2150: cond_false: Condition "volinfo->brick_count == brick_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2155: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2158: switch: Switch case value "GF_OP_CMD_DETACH_START". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2167: switch_case: Reached case "GF_OP_CMD_DETACH_START". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2168: cond_true: Condition "volinfo->type != GF_CLUSTER_TYPE_TIER", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2171: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2171: var_assign: Assigning: "errstr" = storage returned from "gf_strdup(msg)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2172: noescape: Resource "errstr" is not freed or pointed-to in "_gf_msg". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2174: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2366: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "errstr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2369: cond_false: Condition "op_errstr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2370: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2373: leaked_storage: Variable "errstr" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2107: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2112: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2115: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2119: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2123: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2127: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2130: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2131: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2134: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2139: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2143: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2147: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2150: cond_false: Condition "volinfo->brick_count == brick_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2155: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2158: switch: Switch case value "GF_OP_CMD_DETACH_START". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2167: switch_case: Reached case "GF_OP_CMD_DETACH_START". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2168: cond_false: Condition "volinfo->type != GF_CLUSTER_TYPE_TIER", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2175: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2179: cond_false: Condition "volinfo->type == GF_CLUSTER_TYPE_REPLICATE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2188: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2190: cond_false: Condition "GLUSTERD_STATUS_STARTED != volinfo->status", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2208: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2209: cond_false: Condition "!gd_is_remove_brick_committed(volinfo)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2220: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2221: cond_true: Condition "glusterd_is_defrag_on(volinfo)", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2222: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2222: var_assign: Assigning: "errstr" = storage returned from "gf_strdup("Rebalance is in progress. Please retry after completion")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2224: noescape: Resource "errstr" is not freed or pointed-to in "_gf_msg". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2226: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2366: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "errstr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2369: cond_false: Condition "op_errstr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2370: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2373: leaked_storage: Variable "errstr" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2107: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2112: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2115: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2119: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2123: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2127: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2130: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2131: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2134: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2139: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2143: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2147: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2150: cond_false: Condition "volinfo->brick_count == brick_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2155: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2158: switch: Switch case value "GF_OP_CMD_DETACH_COMMIT". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2282: switch_case: Reached case "GF_OP_CMD_DETACH_COMMIT". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2283: cond_false: Condition "volinfo->type != GF_CLUSTER_TYPE_TIER", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2290: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2291: cond_true: Condition "volinfo->decommission_in_progress", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2292: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2292: var_assign: Assigning: "errstr" = storage returned from "gf_strdup("use 'force' option as migration is in progress")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2294: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2366: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "errstr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2369: cond_false: Condition "op_errstr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2370: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2373: leaked_storage: Variable "errstr" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2107: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2112: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2115: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2119: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2123: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2127: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2130: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2131: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2134: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2139: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2143: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2147: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2150: cond_false: Condition "volinfo->brick_count == brick_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2155: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2158: switch: Switch case value "GF_OP_CMD_DETACH_COMMIT". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2282: switch_case: Reached case "GF_OP_CMD_DETACH_COMMIT". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2283: cond_false: Condition "volinfo->type != GF_CLUSTER_TYPE_TIER", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2290: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2291: cond_false: Condition "volinfo->decommission_in_progress", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2295: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2296: cond_true: Condition "volinfo->rebal.defrag_status == GF_DEFRAG_STATUS_FAILED", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2297: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2297: var_assign: Assigning: "errstr" = storage returned from "gf_strdup("use 'force' option as migration has failed")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2299: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2366: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "errstr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2369: cond_false: Condition "op_errstr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2370: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2373: leaked_storage: Variable "errstr" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2107: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2112: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2115: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2119: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2123: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2127: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2130: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2131: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2134: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2139: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2143: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2147: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2150: cond_false: Condition "volinfo->brick_count == brick_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2155: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2158: switch: Switch case value "GF_OP_CMD_DETACH_START". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2167: switch_case: Reached case "GF_OP_CMD_DETACH_START". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2168: cond_false: Condition "volinfo->type != GF_CLUSTER_TYPE_TIER", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2175: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2179: cond_false: Condition "volinfo->type == GF_CLUSTER_TYPE_REPLICATE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2188: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2190: cond_false: Condition "GLUSTERD_STATUS_STARTED != volinfo->status", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2208: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2209: cond_false: Condition "!gd_is_remove_brick_committed(volinfo)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2220: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2221: cond_false: Condition "glusterd_is_defrag_on(volinfo)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2227: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2236: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2246: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2248: alloc_arg: "glusterd_remove_brick_validate_bricks" allocates memory that is stored into "errstr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1966:9: cond_true: Condition "i <= brick_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1969:17: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1972:25: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1972:25: var_assign: Assigning: "*errstr" = "gf_strdup(msg)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:1973:25: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2083:1: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2252: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2253: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2366: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2368: cond_true: Condition "errstr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2369: cond_false: Condition "op_errstr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2370: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-brick-ops.c:2373: leaked_storage: Variable "errstr" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta.c:231: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta.c:231: var_assign: Assigning: "priv" = storage returned from "__gf_calloc(8UL, 1UL, gf_meta_mt_priv_t, "gf_meta_mt_priv_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta.c:232: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta.c:233: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta.c:235: cond_true: Condition "val_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta.c:235: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta.c:238: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta.c:239: leaked_storage: Variable "priv" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1041: cond_true: Condition "!strncmp(file, "gfid:", 5)", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1042: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1042: var_assign: Assigning: "filename" = storage returned from "gf_strdup(file)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1043: noescape: Resource "filename" is not freed or pointed-to in "strtok". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1049: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1054: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1055: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1070: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1072: cond_true: Condition "iatt.ia_type == IA_IFDIR", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1074: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1075: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1092: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1093: cond_true: Condition "xattr_rsp", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:1095: leaked_storage: Variable "filename" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1050: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1050: cond_false: Condition "!frame->local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1050: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1054: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1059: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1063: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1065: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1069: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1071: cond_true: Condition "!dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1072: goto: Jumping to label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1101: label: Reached label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1102: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1104: cond_true: Condition "!callcnt", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1105: cond_false: Condition "!local->cont.getxattr.xattr_len", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1106: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1109: cond_false: Condition "!nxattr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1110: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1117: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1117: var_assign: Assigning: "xattr_serz" = storage returned from "__gf_calloc(local->cont.getxattr.xattr_len, 1UL, gf_common_mt_char, "gf_common_mt_char")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1120: cond_false: Condition "!xattr_serz", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1121: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1124: noescape: Resource "xattr_serz" is not freed or pointed-to in "sprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1128: noescape: Resource "xattr_serz" is not freed or pointed-to in "strlen". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1128: noescape: Resource "xattr_serz + strlen(xattr_serz)" is not freed or pointed-to in "dict_serialize_value_with_delim". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2930:54: noescape: "dict_serialize_value_with_delim(dict_t *, char *, int32_t *, char)" does not free or save its parameter "buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1132: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1133: goto: Jumping to label "unwind". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1147: label: Reached label "unwind". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: cond_true: Condition "__op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: cond_true: Condition "__op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: cond_true: Condition "__op_errno != frame->root->error", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: cond_true: Condition "frame->this->ctx->measure_latency", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1148: cond_true: Condition "__local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1151: cond_true: Condition "nxattr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1156: leaked_storage: Variable "xattr_serz" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1175: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1175: cond_false: Condition "!frame->local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1175: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1179: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1184: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1188: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1190: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1194: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1196: cond_true: Condition "!dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1197: goto: Jumping to label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1227: label: Reached label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1228: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1230: cond_true: Condition "!callcnt", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1231: cond_false: Condition "!local->cont.getxattr.xattr_len", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1232: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1235: cond_false: Condition "!nxattr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1236: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1242: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1242: var_assign: Assigning: "xattr_serz" = storage returned from "__gf_calloc(local->cont.getxattr.xattr_len, 1UL, gf_common_mt_char, "gf_common_mt_char")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1245: cond_false: Condition "!xattr_serz", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1246: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1249: noescape: Resource "xattr_serz" is not freed or pointed-to in "sprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1253: noescape: Resource "xattr_serz" is not freed or pointed-to in "strlen". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1253: noescape: Resource "xattr_serz + strlen(xattr_serz)" is not freed or pointed-to in "dict_serialize_value_with_delim". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2930:54: noescape: "dict_serialize_value_with_delim(dict_t *, char *, int32_t *, char)" does not free or save its parameter "buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1256: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1257: goto: Jumping to label "unwind". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1271: label: Reached label "unwind". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: cond_true: Condition "__op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: cond_true: Condition "__op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: cond_true: Condition "__op_errno != frame->root->error", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: cond_true: Condition "frame->this->ctx->measure_latency", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1272: cond_true: Condition "__local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1275: cond_true: Condition "nxattr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-inode-read.c:1280: leaked_storage: Variable "xattr_serz" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3659: alloc_arg: "extract_hostname_path_from_token" allocates memory that is stored into "hostname". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3578:9: cond_false: Condition "!words", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3581:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3585:9: cond_false: Condition "validate_brick_name(words)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3590:16: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3593:17: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3595:24: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3598:25: cond_false: Condition "!*path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3602:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3609:9: cond_false: Condition "!tmp_host", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3613:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3615:9: cond_false: Condition "!host_name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3620:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3621:9: cond_true: Condition "strcmp(host_name, "localhost")", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3621:9: cond_true: Condition "strcmp(host_name, "127.0.0.1")", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3621:9: cond_true: Condition "strncmp(host_name, "0.", 2)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3629:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3630:9: cond_false: Condition "!valid_internet_address(host_name, _gf_false)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3635:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3637:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3637:9: var_assign: Assigning: "*hostname" = "__gf_calloc(1UL, strlen(host_name) + 1UL, gf_common_mt_char, "gf_common_mt_char")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3639:9: cond_false: Condition "!*hostname", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3642:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3660: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3661: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3663: switch: Switch case default. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3680: switch_default: Reached default. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3682: break: Breaking from switch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3683: switch_end: Reached end of switch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3686: leaked_storage: Variable "hostname" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3659: alloc_arg: "extract_hostname_path_from_token" allocates memory that is stored into "path". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3578:9: cond_false: Condition "!words", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3581:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3585:9: cond_false: Condition "validate_brick_name(words)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3590:16: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3593:17: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3595:24: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3596:25: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3596:25: var_assign: Assigning: "*path" = "__gf_calloc(1UL, strlen(delimiter + 1) + 1UL, gf_common_mt_char, "gf_common_mt_char")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3598:25: cond_false: Condition "!*path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3602:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3609:9: cond_true: Condition "!tmp_host", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3610:17: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3610:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3612:17: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3646:1: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3660: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3661: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3685: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3686: leaked_storage: Variable "path" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2375: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2375: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2377: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2378: cond_false: Condition "!req", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2378: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2384: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2390: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2397: cond_false: Condition "glusterd_peerinfo_find_by_uuid(unlock_req.uuid) == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2399: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2406: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2408: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2408: var_assign: Assigning: "ctx" = storage returned from "__gf_calloc(1UL, 32UL, gf_gld_mt_op_lock_ctx_t, "gf_gld_mt_op_lock_ctx_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2410: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2415: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2420: noescape: Resource "ctx" is not freed or pointed-to in "glusterd_op_sm_inject_event". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:8063:52: noescape: "glusterd_op_sm_inject_event(glusterd_op_sm_event_type_t, uuid_t *, void *)" does not free or save its parameter "ctx". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2426: leaked_storage: Variable "ctx" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1935: cond_false: Condition "bd_inode_ctx_get(loc->inode, this, &bdatt)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1940: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1943: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1946: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1948: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1948: var_assign: Assigning: "ck_valid" = storage returned from "__gf_calloc(1UL, 4UL, gf_bd_int32_t, "gf_bd_int32_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1949: cond_false: Condition "!ck_valid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1952: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1957: cond_true: Condition "!_new", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1957: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1957: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1961: leaked_storage: Variable "ck_valid" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1559: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1560: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1563: cond_false: Condition "!bdatt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1564: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1568: cond_true: Condition "op_errno", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1569: goto: Jumping to label "revert_xattr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1584: label: Reached label "revert_xattr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1588: cond_true: Condition "bdatt", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1589: alloc_arg: "gf_asprintf" allocates memory that is stored into "bd". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1591: cond_true: Condition "local->fd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1592: cond_true: Condition "!_new", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1592: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1592: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1592: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1597: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:1602: leaked_storage: Variable "bd" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1537: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1537: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1540: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1544: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1548: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1550: cond_true: Condition "strcasecmp(volname, "all") != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1552: cond_false: Condition "!exists", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1557: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1559: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1563: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1566: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1567: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1572: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1576: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1578: cond_true: Condition "strcmp(key, "all")", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1579: alloc_arg: "glusterd_check_option_exists" allocates memory that is stored into "key_fixed". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:750:9: cond_true: Condition "!strchr(key, 46)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:751:17: cond_true: Condition "completion", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:752:25: alloc_arg: "option_complete" allocates memory that is stored into "*completion". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_true: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_false: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_false: Condition "*completion", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:632:25: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_false: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_true: Condition "*completion", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_false: Condition "strcmp(*completion, vme->key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:632:25: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_false: Condition "vme->key", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:635:9: cond_true: Condition "*completion", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:640:17: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:640:17: var_assign: Assigning: "*completion" = "gf_strdup(*completion)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:641:17: cond_false: Condition "!*completion", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:753:25: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:758:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:760:25: cond_true: Condition "!!*completion", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:761:25: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1580: cond_false: Condition "exists == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1583: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1583: cond_true: Condition "strcmp(key, "cluster.watermark-low") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1586: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1587: leaked_storage: Variable "key_fixed" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1537: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1537: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1540: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1544: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1548: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1550: cond_true: Condition "strcasecmp(volname, "all") != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1552: cond_false: Condition "!exists", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1557: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1559: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1563: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1566: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1567: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1572: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1576: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1578: cond_true: Condition "strcmp(key, "all")", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1579: alloc_arg: "glusterd_check_option_exists" allocates memory that is stored into "key_fixed". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:750:9: cond_true: Condition "!strchr(key, 46)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:751:17: cond_true: Condition "completion", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:752:25: alloc_arg: "option_complete" allocates memory that is stored into "*completion". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_true: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_false: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_false: Condition "*completion", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:632:25: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_true: Condition "vme->key", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:623:17: cond_false: Condition "strcmp(strchr(vme->key, 46) + 1, key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:624:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_true: Condition "*completion", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:626:17: cond_false: Condition "strcmp(*completion, vme->key) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:632:25: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:622:9: cond_false: Condition "vme->key", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:633:9: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:635:9: cond_true: Condition "*completion", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:640:17: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:640:17: var_assign: Assigning: "*completion" = "gf_strdup(*completion)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:641:17: cond_false: Condition "!*completion", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:753:25: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:758:25: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:760:25: cond_true: Condition "!!*completion", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:761:25: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1580: cond_false: Condition "exists == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1583: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1583: cond_false: Condition "strcmp(key, "cluster.watermark-low") == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1588: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1588: cond_true: Condition "strcmp(key, "cluster.watermark-hi") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1591: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:1592: leaked_storage: Variable "key_fixed" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:197: cond_true: Condition "fd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:201: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:202: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:204: cond_true: Condition "trav", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:207: cond_false: Condition "!entry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:208: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:220: cond_true: Condition "trav->dict.dict_val", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:223: cond_false: Condition "!buf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:224: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:230: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:235: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:241: cond_false: Condition "!entry->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:242: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:247: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:204: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:204: cond_true: Condition "trav", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:206: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:206: var_assign: Assigning: "entry" = storage returned from "__gf_calloc(1UL, entry_len, gf_common_mt_gf_dirent_t, "gf_common_mt_gf_dirent_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:207: cond_false: Condition "!entry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:208: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:216: noescape: Resource "&entry->d_stat" is not freed or pointed-to in "gf_stat_to_iatt". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/xdr/src/glusterfs3.h:291:56: noescape: "gf_stat_to_iatt(struct gf_iatt *, struct iatt *)" does not free or save its parameter "iatt". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:220: cond_true: Condition "trav->dict.dict_val", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:223: cond_true: Condition "!buf", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:224: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:250: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:251: leaked_storage: Variable "entry" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:197: cond_true: Condition "fd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:201: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:202: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:204: cond_true: Condition "trav", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:207: cond_false: Condition "!entry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:208: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:220: cond_true: Condition "trav->dict.dict_val", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:223: cond_false: Condition "!buf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:224: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:230: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:235: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:241: cond_false: Condition "!entry->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:242: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:247: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:204: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:204: cond_true: Condition "trav", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:207: cond_false: Condition "!entry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:208: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:220: cond_true: Condition "trav->dict.dict_val", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:222: alloc_fn: Storage is returned from allocation function "memdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:655:2: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:655:2: var_assign: Assigning: "newptr" = "__gf_malloc(size, gf_common_mt_memdup, "gf_common_mt_memdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:656:2: cond_false: Condition "!newptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:657:3: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:659:2: noescape: Resource "newptr" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.h:660:2: return_alloc: Returning allocated memory "newptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:222: var_assign: Assigning: "buf" = storage returned from "memdup(trav->dict.dict_val, trav->dict.dict_len)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:223: cond_false: Condition "!buf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:224: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:228: noescape: Resource "buf" is not freed or pointed-to in "dict_unserialize". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2666:25: noescape: "dict_unserialize(char *, int32_t, dict_t **)" does not free or save its parameter "orig_buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:230: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:234: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:250: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:251: leaked_storage: Variable "buf" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1008: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1009: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1013: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1017: cond_false: Condition "dict_get(options, "stripe-count")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1024: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1031: cond_true: Condition "!ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1032: alloc_arg: "gf_asprintf" allocates memory that is stored into "event_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1034: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1037: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1040: cond_true: Condition "state->mode & (8 /* 1 << 3 */)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1042: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1043: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1043: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1045: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1057: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1058: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1060: cond_true: Condition "sent == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1060: cond_true: Condition "parse_error == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1061: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1061: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1062: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1067: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1069: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1069: cond_true: Condition "frame->local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1069: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1069: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1070: leaked_storage: Variable "event_str" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1008: start: Starting defect path here. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1009: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1013: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1017: cond_false: Condition "dict_get(options, "stripe-count")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1024: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1031: cond_false: Condition "!ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1034: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1035: alloc_arg: "gf_asprintf" allocates memory that is stored into "event_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1040: cond_true: Condition "state->mode & (8 /* 1 << 3 */)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1042: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1043: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1043: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1045: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1057: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1058: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1060: cond_true: Condition "sent == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1060: cond_true: Condition "parse_error == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1061: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1061: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1062: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1067: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1069: cond_true: Condition "frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1069: cond_true: Condition "frame->local", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1069: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1069: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:1070: leaked_storage: Variable "event_str" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3882: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3883: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3885: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3889: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3891: cond_true: Condition "!this->parents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3895: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3895: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3899: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3899: var_assign: Assigning: "conf" = storage returned from "__gf_calloc(1UL, 6488UL, gf_io_stats_mt_ios_conf, "gf_io_stats_mt_ios_conf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3901: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3902: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3904: cond_true: Condition "dict_get_str(this->options, "unique-id", &conf->unique_id) != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3913: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3914: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3916: noescape: Resource "&conf->cumulative.started_at" is not freed or pointed-to in "gettimeofday". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3917: noescape: Resource "&conf->incremental.started_at" is not freed or pointed-to in "gettimeofday". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3919: noescape: Resource "conf" is not freed or pointed-to in "ios_init_top_stats". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3580:38: noescape: "ios_init_top_stats(struct ios_conf *)" does not free or save its parameter "conf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3920: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3921: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3986: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3987: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3990: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:3992: leaked_storage: Variable "conf" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6944: cond_false: Condition "this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6949: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6951: cond_true: Condition "!this->parents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6956: cond_false: Condition "!dir_data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6962: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6968: cond_false: Condition "op_ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6968: cond_false: Condition "!((buf.st_mode & 61440) == 16384)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6974: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6976: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6976: var_assign: Assigning: "_private" = storage returned from "__gf_calloc(1UL, 640UL, gf_posix_mt_posix_private, "gf_posix_mt_posix_private")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6978: cond_false: Condition "!_private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6981: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6987: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6990: cond_true: Condition "!_private->hostname", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6991: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:7429: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:7430: leaked_storage: Variable "_private" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:126: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:126: cond_false: Condition "buf->ia_type != IA_IFREG", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:127: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:130: cond_false: Condition "!bd_inode_ctx_get(inode, this, &bdatt)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:131: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:133: alloc_arg: "bd_get_bd_info" allocates memory that is stored into "type". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:67:9: cond_false: Condition "!xattr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:68:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:70:9: cond_false: Condition "dict_get_str(xattr, "user.glusterfs.bd", &p)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:71:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:78:9: cond_false: Condition "!bd_frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:78:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:80:9: alloc_arg: "bd_validate_bd_xattr" allocates memory that is stored into "*type". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:316:9: cond_false: Condition "bytes", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:320:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:322:9: cond_true: Condition "strcmp(bd, "lv")", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:322:9: cond_false: Condition "strcmp(bd, "thin")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:326:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:327:9: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:327:9: var_assign: Assigning: "*type" = "gf_strdup(bd)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:335:9: cond_false: Condition "!path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:339:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:342:9: cond_false: Condition "sys_stat(path, &stbuf)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:346:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:349:9: cond_true: Condition "!vg", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:350:17: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:350:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:353:17: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:372:1: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:373:9: cond_false: Condition "vg", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:374:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:81:9: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:82:17: cond_true: Condition "!_new", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:82:17: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:82:17: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:86:17: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:86:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:89:9: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:103:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:133: cond_true: Condition "bd_get_bd_info(frame, this, xattr, buf->ia_gfid, &type, &size)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:134: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:160: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: cond_true: Condition "op_ret == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: cond_true: Condition "frame->this->ctx->measure_latency", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:161: cond_true: Condition "__local", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:163: leaked_storage: Variable "type" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:228: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:229: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:231: cond_true: Condition "&(*entry).list != &(*entries).list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:232: cond_true: Condition "entry->d_type != DT_REG", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:233: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:240: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:231: cond_true: Condition "&(*entry).list != &(*entries).list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:232: cond_false: Condition "entry->d_type != DT_REG", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:233: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:234: cond_false: Condition "!bd_get_bd_info(frame, this, entry->dict, entry->d_stat.ia_gfid, &type, &size)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:239: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:240: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:231: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:231: cond_true: Condition "&(*entry).list != &(*entries).list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:232: cond_false: Condition "entry->d_type != DT_REG", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:233: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:234: cond_true: Condition "!bd_get_bd_info(frame, this, entry->dict, entry->d_stat.ia_gfid, &type, &size)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:240: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:231: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:231: cond_true: Condition "&(*entry).list != &(*entries).list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:232: cond_false: Condition "entry->d_type != DT_REG", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:233: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:234: cond_false: Condition "!bd_get_bd_info(frame, this, entry->dict, entry->d_stat.ia_gfid, &type, &size)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:239: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:240: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:231: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:231: cond_true: Condition "&(*entry).list != &(*entries).list", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:232: cond_false: Condition "entry->d_type != DT_REG", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:233: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:234: alloc_arg: "bd_get_bd_info" allocates memory that is stored into "type". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:67:9: cond_false: Condition "!xattr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:68:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:70:9: cond_false: Condition "dict_get_str(xattr, "user.glusterfs.bd", &p)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:71:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:78:9: cond_false: Condition "!bd_frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:78:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:80:9: alloc_arg: "bd_validate_bd_xattr" allocates memory that is stored into "*type". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:316:9: cond_false: Condition "bytes", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:320:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:322:9: cond_true: Condition "strcmp(bd, "lv")", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:322:9: cond_false: Condition "strcmp(bd, "thin")", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:326:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:327:9: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:327:9: var_assign: Assigning: "*type" = "gf_strdup(bd)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:335:9: cond_false: Condition "!path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:339:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:342:9: cond_false: Condition "sys_stat(path, &stbuf)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:346:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:349:9: cond_true: Condition "!vg", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:350:17: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:350:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:353:17: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:372:1: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:373:9: cond_false: Condition "vg", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:374:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:81:9: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:82:17: cond_true: Condition "!_new", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:82:17: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:82:17: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:86:17: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:86:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:89:9: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:103:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:234: cond_false: Condition "!bd_get_bd_info(frame, this, entry->dict, entry->d_stat.ia_gfid, &type, &size)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:239: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:240: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:231: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:231: cond_false: Condition "&(*entry).list != &(*entries).list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:240: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: cond_true: Condition "op_ret == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: cond_true: Condition "frame->this->ctx->measure_latency", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:243: cond_true: Condition "__local", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd.c:244: leaked_storage: Variable "type" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:179: cond_false: Condition "!options", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:179: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:180: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:180: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:181: cond_false: Condition "!trans_name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:181: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:184: cond_false: Condition "!trans", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:185: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:188: cond_false: Condition "!trans->name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:189: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:196: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:198: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:199: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:199: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:199: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:202: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:205: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:240: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:246: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:248: cond_false: Condition "ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:260: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:266: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:271: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:274: cond_false: Condition "-1 == ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:276: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:278: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:278: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:282: cond_false: Condition "handle == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:289: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:294: cond_false: Condition "trans->ops == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:298: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:301: cond_false: Condition "trans->init == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:305: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:308: cond_false: Condition "trans->fini == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:312: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:315: cond_true: Condition "trans->reconfigure == NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:316: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:316: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:320: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:320: var_assign: Assigning: "vol_opt" = storage returned from "__gf_calloc(1UL, 24UL, gf_common_mt_volume_opt_list_t, "gf_common_mt_volume_opt_list_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:322: cond_false: Condition "!vol_opt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:324: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:328: cond_true: Condition "vol_opt->given_opt == NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:329: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:329: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:331: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:340: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:348: cond_false: Condition "ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:352: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:360: leaked_storage: Variable "vol_opt" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3536: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3536: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3538: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3538: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3540: cond_false: Condition "conf->op_version < 30900", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3541: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3547: cond_false: Condition "!afr_xattrs_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3548: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3551: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3551: var_assign: Assigning: "afr_xlators_list" = storage returned from "__gf_calloc(clusters, 8UL, gf_common_mt_xlator_t, "gf_common_mt_xlator_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3553: cond_false: Condition "!afr_xlators_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3554: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3558: cond_true: Condition "i < clusters", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3561: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3558: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3558: cond_false: Condition "i < clusters", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3561: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3566: cond_true: Condition "&brick->brick_list != &volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3567: cond_false: Condition "index == clusters", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3568: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3570: cond_true: Condition "i == volinfo->replica_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3574: cond_true: Condition "ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:3575: leaked_storage: Variable "afr_xlators_list" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot.c:1972: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot.c:1976: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot.c:1978: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot.c:1978: var_assign: Assigning: "priv" = storage returned from "__gf_calloc(1UL, 1888UL, gf_br_mt_br_private_t, "gf_br_mt_br_private_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot.c:1979: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot.c:1983: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot.c:1985: cond_true: Condition "val_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot.c:1985: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot.c:2042: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/bitd/bit-rot.c:2044: leaked_storage: Variable "priv" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1013: cond_false: Condition "op_errno", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1015: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1019: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1022: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1025: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1028: cond_false: Condition "!entry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1028: cond_false: Condition "*__errno_location() != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1034: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1036: cond_false: Condition "fnmatch("TERM.*", entry->d_name, 1 /* 1 << 0 */) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1038: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1044: cond_false: Condition "term_num < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1050: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1051: cond_true: Condition "term_first < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1054: cond_true: Condition "term_last < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1057: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1025: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1025: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1028: cond_false: Condition "!entry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1028: cond_false: Condition "*__errno_location() != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1034: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1036: cond_false: Condition "fnmatch("TERM.*", entry->d_name, 1 /* 1 << 0 */) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1038: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1044: cond_false: Condition "term_num < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1050: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1051: cond_false: Condition "term_first < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1051: cond_false: Condition "term_first > term_num", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1053: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1054: cond_false: Condition "term_last < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1054: cond_true: Condition "term_last < term_num", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1057: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1025: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1025: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1028: cond_true: Condition "!entry", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1029: cond_false: Condition "*__errno_location() != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1032: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1033: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1057: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1058: cond_false: Condition "term_first < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1058: cond_false: Condition "term_last < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1064: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1073: cond_true: Condition "term_contig > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1074: cond_false: Condition "gf_asprintf(&probe_str, "%s/TERM.%d", cl_dir, term_contig - 1) <= 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1080: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1081: cond_false: Condition "sys_access(probe_str, 0) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1084: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1086: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1073: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1073: cond_true: Condition "term_contig > 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1074: alloc_arg: "gf_asprintf" allocates memory that is stored into "probe_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1074: cond_true: Condition "gf_asprintf(&probe_str, "%s/TERM.%d", cl_dir, term_contig - 1) <= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1079: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1125: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1126: cond_false: Condition "fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1128: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1129: cond_false: Condition "my_xdata", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1131: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1132: cond_true: Condition "!frame", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1132: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1132: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:1133: leaked_storage: Variable "probe_str" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:712: cond_false: Condition "!optbuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:715: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:717: cond_true: Condition "*s", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len + 1]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:723: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len + 1]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:723: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_false: Condition "s[len + 1]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:724: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:724: cond_true: Condition "s[len] == ','", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:727: cond_true: Condition "begins_with(s, fsname_str)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:728: cond_false: Condition "!get_string_opt(s, len, fsname_str, &fsname)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:729: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:730: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:780: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:782: cond_true: Condition "*s", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:784: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:717: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:717: cond_true: Condition "*s", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len + 1]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:723: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len + 1]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:723: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_false: Condition "s[len + 1]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:724: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:724: cond_true: Condition "s[len] == ','", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:727: cond_false: Condition "begins_with(s, fsname_str)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:730: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:730: cond_true: Condition "begins_with(s, subtype_str)", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:731: alloc_arg: "get_string_opt" allocates memory that is stored into "subtype". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:676:2: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:676:2: var_assign: Assigning: "*val" = "malloc(len - opt_len + 1U)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:677:2: cond_false: Condition "!*val", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:680:2: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:685:2: cond_true: Condition "i < len", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:686:3: cond_true: Condition "s[i] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:686:3: cond_true: Condition "i + 1 < len", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:689:2: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:685:2: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:685:2: cond_true: Condition "i < len", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:686:3: cond_true: Condition "s[i] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:686:3: cond_true: Condition "i + 1 < len", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:689:2: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:685:2: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:685:2: cond_false: Condition "i < len", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:689:2: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:731: cond_false: Condition "!get_string_opt(s, len, subtype_str, &subtype)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:732: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:733: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:780: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:782: cond_true: Condition "*s", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:784: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:717: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:717: cond_false: Condition "*s", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:784: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:787: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:788: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:793: cond_true: Condition "check_empty", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:793: cond_false: Condition "fuse_mnt_check_empty(progname, mnt, rootmode, rootsize) == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:795: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:797: cond_true: Condition "fsname", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:797: cond_true: Condition "subtype", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:797: noescape: Resource "subtype" is not freed or pointed-to in "strlen". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:800: cond_true: Condition "subtype", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:800: noescape: Resource "subtype" is not freed or pointed-to in "strlen". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:801: cond_false: Condition "!type", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:801: cond_false: Condition "!source", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:804: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:806: cond_true: Condition "subtype", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:807: cond_false: Condition "blkdev", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:807: noescape: Resource "subtype" is not freed or pointed-to in "sprintf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:807: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:809: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:811: cond_true: Condition "fsname", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:812: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:814: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:817: cond_true: Condition "res == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:817: cond_true: Condition "*__errno_location() == 19", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:817: cond_true: Condition "subtype", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:819: cond_false: Condition "blkdev", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:820: cond_true: Condition "fsname", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:821: cond_true: Condition "!blkdev", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:822: noescape: Resource "subtype" is not freed or pointed-to in "sprintf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:823: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:825: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:829: cond_true: Condition "res == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:829: cond_true: Condition "*__errno_location() == 22", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:835: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:844: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:851: leaked_storage: Variable "subtype" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:712: cond_false: Condition "!optbuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:715: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:717: cond_true: Condition "*s", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len + 1]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:723: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len + 1]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:723: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_false: Condition "s[len + 1]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:724: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:724: cond_true: Condition "s[len] == ','", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:727: cond_true: Condition "begins_with(s, fsname_str)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:728: cond_false: Condition "!get_string_opt(s, len, fsname_str, &fsname)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:729: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:730: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:780: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:782: cond_true: Condition "*s", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:784: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:717: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:717: cond_true: Condition "*s", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len + 1]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:723: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len + 1]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:723: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:721: cond_true: Condition "s[len]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_true: Condition "s[len] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:722: cond_false: Condition "s[len + 1]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:724: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:724: cond_true: Condition "s[len] == ','", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:725: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:726: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:727: cond_false: Condition "begins_with(s, fsname_str)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:730: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:730: cond_true: Condition "begins_with(s, subtype_str)", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:731: alloc_arg: "get_string_opt" allocates memory that is stored into "subtype". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:676:2: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:676:2: var_assign: Assigning: "*val" = "malloc(len - opt_len + 1U)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:677:2: cond_false: Condition "!*val", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:680:2: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:685:2: cond_true: Condition "i < len", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:686:3: cond_true: Condition "s[i] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:686:3: cond_true: Condition "i + 1 < len", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:689:2: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:685:2: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:685:2: cond_true: Condition "i < len", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:686:3: cond_true: Condition "s[i] == '\\'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:686:3: cond_true: Condition "i + 1 < len", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:689:2: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:685:2: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:685:2: cond_false: Condition "i < len", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:689:2: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:731: cond_false: Condition "!get_string_opt(s, len, subtype_str, &subtype)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:732: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:733: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:780: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:782: cond_true: Condition "*s", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:784: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:717: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:717: cond_false: Condition "*s", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:784: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:787: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:788: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:793: cond_true: Condition "check_empty", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:793: cond_false: Condition "fuse_mnt_check_empty(progname, mnt, rootmode, rootsize) == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:795: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:797: cond_true: Condition "fsname", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:797: cond_true: Condition "subtype", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:797: noescape: Resource "subtype" is not freed or pointed-to in "strlen". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:800: cond_true: Condition "subtype", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:800: noescape: Resource "subtype" is not freed or pointed-to in "strlen". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:801: cond_false: Condition "!type", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:801: cond_false: Condition "!source", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:804: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:806: cond_true: Condition "subtype", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:807: cond_false: Condition "blkdev", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:807: noescape: Resource "subtype" is not freed or pointed-to in "sprintf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:807: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:809: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:811: cond_true: Condition "fsname", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:812: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:814: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:817: cond_true: Condition "res == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:817: cond_false: Condition "*__errno_location() == 19", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:828: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:829: cond_true: Condition "res == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:829: cond_true: Condition "*__errno_location() == 22", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:835: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:844: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:851: leaked_storage: Variable "subtype" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:937: cond_false: Condition "__len <= 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:937: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:937: cond_false: Condition "__len <= 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:937: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:938: cond_false: Condition "!real_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:945: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:948: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:953: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:955: open_fn: Returning handle opened by "open". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:955: var_assign: Assigning: "file_fd" = handle returned from "open(real_path, 0)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:957: cond_false: Condition "file_fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:962: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:966: cond_true: Condition "!*contents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:968: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:990: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:991: cond_false: Condition "op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:995: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:997: leaked_handle: Handle variable "file_fd" going out of scope leaks the handle. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1069: cond_true: Condition "devfd", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1069: alloc_arg: "check_fuse_device" allocates memory that is stored into "dev". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1034:2: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1037:2: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1039:2: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1039:2: var_assign: Assigning: "*devp" = "calloc(1UL, 4097UL)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1040:2: cond_false: Condition "!*devp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1044:2: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1048:2: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1052:2: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1070: cond_true: Condition "fd == -1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1071: leaked_storage: Variable "dev" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:458: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:458: cond_false: Condition "this->children->next", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:462: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:464: cond_true: Condition "!this->parents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:465: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:465: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:470: cond_false: Condition "!this->local_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:475: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:477: alloc_fn: Storage is returned from allocation function "mem_get0". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:576:9: cond_false: Condition "!mem_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:580:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:582:9: alloc_fn: Storage is returned from allocation function "mem_get". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:672:9: cond_false: Condition "!mem_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:676:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:679:9: cond_false: Condition "!pool_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:679:9: cond_false: Condition "pool_list->poison", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:681:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:685:9: alloc_fn: Storage is returned from allocation function "mem_get_from_pool". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:643:9: cond_false: Condition "retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:647:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:650:9: cond_false: Condition "retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:654:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:657:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:657:9: return_alloc_fn: Directly returning storage allocated by "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:685:9: var_assign: Assigning: "retval" = "mem_get_from_pool(pt_pool)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:688:9: cond_false: Condition "!retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:690:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:697:9: return_alloc: Returning allocated memory "retval". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:582:9: var_assign: Assigning: "ptr" = "mem_get(mem_pool)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:584:9: cond_true: Condition "ptr", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:585:17: noescape: Resource "ptr" is not freed or pointed-to in function "memset". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:588:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:477: var_assign: Assigning: "priv" = storage returned from "mem_get0(this->local_pool)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:478: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:481: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:483: cond_true: Condition "val_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:483: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:493: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/worm.c:494: leaked_storage: Variable "priv" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:528: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:528: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:530: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:531: cond_false: Condition "!missed_snapinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:531: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:532: cond_false: Condition "!snap_opinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:532: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:538: cond_false: Condition "!snap", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:545: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:548: cond_true: Condition "&volinfo->vol_list != &snap->volumes", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:549: cond_true: Condition "!strcmp(volinfo->volname, snap_opinfo->snap_vol_id)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:552: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:554: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:556: cond_false: Condition "!snap_vol", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:564: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:567: cond_true: Condition "&brickinfo->brick_list != &snap_vol->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:569: cond_true: Condition "i == snap_opinfo->brick_num", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:570: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:571: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:573: cond_false: Condition "brickinfo->snap_status != -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:579: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:582: alloc_fn: Storage is returned from allocation function "glusterd_get_brick_mount_device". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6173:9: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6174:9: cond_false: Condition "!brick_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6174:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6177:9: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6183:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6187:9: cond_false: Condition "NULL == entry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6193:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6196:9: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6196:9: var_assign: Assigning: "device" = "gf_strdup(entry->mnt_fsname)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6199:9: cond_true: Condition "mnt_pt", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:6202:9: return_alloc: Returning allocated memory "device". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:582: var_assign: Assigning: "device" = storage returned from "glusterd_get_brick_mount_device(snap_opinfo->brick_path)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:583: cond_false: Condition "!device", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:591: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:593: noescape: Resource "device" is not freed or pointed-to in "glusterd_build_snap_device_path". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:96:40: noescape: "glusterd_build_snap_device_path(char *, char *, int32_t)" does not free or save its parameter "device". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:593: overwrite_var: Overwriting "device" in "device = glusterd_build_snap_device_path(device, snap_vol->volname, snap_opinfo->brick_num - 1)" leaks the storage that "device" points to. Error: RESOURCE_LEAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mountbroker.c:333: alloc_arg: "gf_asprintf" allocates memory that is stored into "hadoop_mnt_desc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:241:9: alloc_arg: "gf_vasprintf" allocates memory that is stored into "*string_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!string_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:214:9: cond_false: Condition "!format", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:215:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: alloc_fn: Storage is returned from allocation function "__gf_malloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:135:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: alloc_fn: Storage is returned from allocation function "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: alloc_fn: Storage is returned from allocation function "malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:108:9: var_assign: Assigning: "ptr" = "malloc(size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:109:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:110:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:112:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:136:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_malloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:221:9: var_assign: Assigning: "str" = "__gf_malloc(size, gf_common_mt_asprintf, "gf_common_mt_asprintf")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:222:9: cond_false: Condition "str == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:226:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:227:9: noescape: Resource "str" is not freed or pointed-to in function "vsnprintf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:229:9: var_assign: Assigning: "*string_ptr" = "str". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mountbroker.c:335: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mountbroker.c:336: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mountbroker.c:338: noescape: Resource "hadoop_mnt_desc" is not freed or pointed-to in "parse_mount_pattern_desc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mountbroker.c:55:57: noescape: "parse_mount_pattern_desc(gf_mount_spec_t *, char *)" does not free or save its parameter "pdesc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-mountbroker.c:338: leaked_storage: Variable "hadoop_mnt_desc" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2092: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2092: cond_false: Condition "this->children->next", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2097: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2099: cond_true: Condition "!this->parents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2100: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2100: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2104: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2104: var_assign: Assigning: "pvt" = storage returned from "__gf_calloc(1UL, 288UL, gf_error_gen_mt_eg_t, "gf_error_gen_mt_eg_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2106: cond_false: Condition "!pvt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2109: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2111: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2113: cond_true: Condition "val_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2113: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2129: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2130: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2131: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/error-gen/src/error-gen.c:2132: leaked_storage: Variable "pvt" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:761: open_fn: Returning handle opened by "open". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:761: var_assign: Assigning: "ht_file_fd" = handle returned from "open(ht_file_path, flags, 420)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:763: cond_false: Condition "ht_file_fd < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:770: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:772: noescape: Resource "ht_file_fd" is not freed or pointed-to in "sys_fsetxattr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:577:20: noescape: "sys_fsetxattr(int, char const *, void const *, size_t, int)" does not free or save its parameter "filedes". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:772: cond_true: Condition "sys_fsetxattr(ht_file_fd, "trusted.glusterfs.htime", "0:0", 3UL /* sizeof ("0:0") - 1 */, 0)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:778: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:823: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:824: cond_false: Condition "ht_dir_fd != -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:825: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:826: leaked_handle: Handle variable "ht_file_fd" going out of scope leaks the handle. Error: RESOURCE_LEAK: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:761: open_fn: Returning handle opened by "open". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:761: var_assign: Assigning: "ht_file_fd" = handle returned from "open(ht_file_path, flags, 420)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:763: cond_false: Condition "ht_file_fd < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:770: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:772: noescape: Resource "ht_file_fd" is not freed or pointed-to in "sys_fsetxattr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:577:20: noescape: "sys_fsetxattr(int, char const *, void const *, size_t, int)" does not free or save its parameter "filedes". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:772: cond_false: Condition "sys_fsetxattr(ht_file_fd, "trusted.glusterfs.htime", "0:0", 3UL /* sizeof ("0:0") - 1 */, 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:779: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:781: noescape: Resource "ht_file_fd" is not freed or pointed-to in "sys_fsync". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:408:16: noescape: "sys_fsync(int)" does not free or save its parameter "fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:782: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:787: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:791: cond_true: Condition "ht_dir_fd == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:796: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:823: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:824: cond_false: Condition "ht_dir_fd != -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:825: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/src/changelog-helpers.c:826: leaked_handle: Handle variable "ht_file_fd" going out of scope leaks the handle. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_false: Condition "trav_xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:635: cond_false: Condition "!switch_buf_array", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:636: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_false: Condition "trav_xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:652: alloc_fn: Storage is returned from allocation function "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:187:9: var_assign: Assigning: "dup_str" = "__gf_calloc(1UL, len, gf_common_mt_strdup, "gf_common_mt_strdup")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: noescape: Resource "dup_str" is not freed or pointed-to in function "memcpy". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_alloc: Returning allocated memory "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:652: var_assign: Assigning: "option_string" = storage returned from "gf_strdup(pattern_str)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "1 /* 1 && (size_t)(void const *)&";"[1] - (size_t)(void const *)";" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "(char const *)";"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "(char const *)";"[1] == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: identity_transfer: Passing "option_string" as argument 1 to function "__strtok_r_1c", which returns that argument. path:/usr/include/bits/string2.h:198:3: cond_false: Condition "__s == NULL", taking false branch. path:/usr/include/bits/string2.h:199:5: if_end: End of if statement. path:/usr/include/bits/string2.h:200:3: cond_false: Condition "*__s == __sep", taking false branch. path:/usr/include/bits/string2.h:201:5: loop_end: Reached end of loop. path:/usr/include/bits/string2.h:203:3: cond_true: Condition "*__s != 0", taking true branch. /usr/include/bits/string2.h:205:7: var_assign_parm: Assigning: "__result" = "__s++". path:/usr/include/bits/string2.h:206:7: cond_true: Condition "*__s != 0", taking true branch. path:/usr/include/bits/string2.h:207:2: cond_true: Condition "*__s++ == __sep", taking true branch. path:/usr/include/bits/string2.h:210:6: break: Breaking from loop. path:/usr/include/bits/string2.h:211:4: loop_end: Reached end of loop. /usr/include/bits/string2.h:214:3: return_var: Returning "__result", which is a copy of a parameter. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: identity_transfer: Passing "option_string" as argument 1 to function "__strtok_r_1c", which sets "tmp_str" to an offset off that argument. path:/usr/include/bits/string2.h:198:3: cond_false: Condition "__s == NULL", taking false branch. path:/usr/include/bits/string2.h:199:5: if_end: End of if statement. path:/usr/include/bits/string2.h:200:3: cond_true: Condition "*__s == __sep", taking true branch. path:/usr/include/bits/string2.h:201:5: loop: Jumping back to the beginning of the loop. path:/usr/include/bits/string2.h:200:3: loop_begin: Jumped back to beginning of loop. path:/usr/include/bits/string2.h:200:3: cond_false: Condition "*__s == __sep", taking false branch. path:/usr/include/bits/string2.h:201:5: loop_end: Reached end of loop. path:/usr/include/bits/string2.h:203:3: cond_true: Condition "*__s != 0", taking true branch. path:/usr/include/bits/string2.h:206:7: cond_true: Condition "*__s != 0", taking true branch. path:/usr/include/bits/string2.h:207:2: cond_true: Condition "*__s++ == __sep", taking true branch. path:/usr/include/bits/string2.h:210:6: break: Breaking from loop. path:/usr/include/bits/string2.h:211:4: loop_end: Reached end of loop. /usr/include/bits/string2.h:213:3: var_assign_parm: Assigning: "*__nextp" = "__s". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: var_assign: Assigning: "switch_str" = storage returned from "__strtok_r_1c(option_string, (char const *)";"[0], &tmp_str)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:654: cond_true: Condition "switch_str", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:655: noescape: Resource "switch_str" is not freed or pointed-to in "gf_strdup". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:179:31: noescape: "gf_strdup(char const *)" does not free or save its parameter "src". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:658: cond_true: Condition "!switch_opt", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:660: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:812: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:816: cond_false: Condition "switch_buf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:824: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:825: leaked_storage: Variable "option_string" going out of scope leaks the storage it points to. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:825: leaked_storage: Variable "switch_str" going out of scope leaks the storage it points to. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:825: leaked_storage: Variable "tmp_str" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:34: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:34: cond_false: Condition "this->children->next", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:38: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:40: cond_true: Condition "!this->parents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:41: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:41: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:45: alloc_fn: Storage is returned from allocation function "__gf_calloc". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: alloc_fn: Storage is returned from allocation function "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: alloc_fn: Storage is returned from allocation function "calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: var_assign: Assigning: "ptr" = "calloc(cnt, size)". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:121:9: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:122:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:124:9: return_alloc: Returning allocated memory "ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: return_alloc_fn: Directly returning storage allocated by "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:45: var_assign: Assigning: "priv" = storage returned from "__gf_calloc(1UL, 40UL, gf_read_only_mt_priv_t, "gf_read_only_mt_priv_t")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:46: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:47: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:49: cond_true: Condition "val_ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:49: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:53: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/read-only/src/read-only.c:54: leaked_storage: Variable "priv" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:185: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:185: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:187: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:190: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:194: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:197: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:201: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:206: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:207: goto: Jumping to label "cont". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:218: label: Reached label "cont". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:220: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:221: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:224: cond_true: Condition "&brickinfo->brick_list != &volinfo->bricks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:225: cond_false: Condition "gf_uuid_compare(brickinfo->uuid, __glusterd_uuid())", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:226: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:228: cond_false: Condition "brick", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:231: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: cond_true: Condition "volinfo->is_snap_volume", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: cond_true: Condition "i < strlen(brickinfo->path)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: cond_true: Condition "exp_path[i - 1] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: cond_true: Condition "i != strlen(brickinfo->path) - 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: cond_true: Condition "i < strlen(brickinfo->path)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: cond_true: Condition "exp_path[i - 1] == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: cond_true: Condition "i != strlen(brickinfo->path) - 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: cond_false: Condition "i < strlen(brickinfo->path)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:235: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:236: alloc_fn: Storage is returned from allocation function "fopen". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:236: var_assign: Assigning: "file" = storage returned from "fopen(pidfile, "r+")". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:237: cond_false: Condition "!file", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:243: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:245: noescape: Resource "file" is not freed or pointed-to in "fscanf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:246: cond_true: Condition "ret <= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:251: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:280: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:281: cond_false: Condition "tmpbrkinfo", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:282: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-log-ops.c:284: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6495: deref_ptr: Directly dereferencing pointer "this". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:6498: check_after_deref: Null-checking "this" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5221: deref_ptr_in_call: Dereferencing pointer "name". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5243: check_after_deref: Null-checking "name" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1970: deref_ptr_in_call: Dereferencing pointer "peer_addr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1898:9: deref_parm_in_call: Function "strchr" dereferences "peer_addr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1972: check_after_deref: Null-checking "peer_addr" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli.c:508: deref_ptr: Directly dereferencing pointer "usage". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli.c:510: check_after_deref: Null-checking "usage" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c:1398: deref_ptr_in_call: Dereferencing pointer "glfd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/refcount.c:28:9: cond_false: Condition "!(cnt != 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/refcount.c:28:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/refcount.c:30:9: cond_true: Condition "cnt", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/refcount.c:30:9: deref_parm: Directly dereferencing parameter "ref". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c:1429: alias: Assigning: "gio->glfd" = "glfd". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c:1443: check_after_deref: Null-checking "glfd" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c:1398: deref_ptr_in_call: Dereferencing pointer "glfd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/refcount.c:28:9: cond_false: Condition "!(cnt != 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/refcount.c:28:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/refcount.c:30:9: cond_true: Condition "cnt", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/refcount.c:30:9: deref_parm: Directly dereferencing parameter "ref". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-fops.c:1443: check_after_deref: Null-checking "glfd" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2485: deref_ptr: Directly dereferencing pointer "fop". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2489: check_after_deref: Null-checking "fop" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2002: deref_ptr: Directly dereferencing pointer "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:2019: check_after_deref: Null-checking "size" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:486: check_after_deref: Null-checking "ip" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:465: deref_ptr_in_call: Dereferencing pointer "ip". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3134:9: deref_parm_in_call: Function "strlen" dereferences "client_ip". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:485: deref_ptr_in_call: Dereferencing pointer "ip". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:185:9: deref_parm_in_call: Function "strlen" dereferences "src". Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:760: deref_ptr: Directly dereferencing pointer "*dup_volinfo". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:811: check_after_deref: Null-checking "*dup_volinfo" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:2763: deref_ptr_in_call: Dereferencing pointer "tmp". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:2769: check_after_deref: Null-checking "tmp" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:536: deref_ptr: Directly dereferencing pointer "ctx". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:545: check_after_deref: Null-checking "ctx" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:652: check_after_deref: Null-checking "ctx" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:609: deref_ptr: Directly dereferencing pointer "ctx". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:645: deref_ptr: Directly dereferencing pointer "ctx". Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2370: deref_ptr: Directly dereferencing pointer "req". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2373: check_after_deref: Null-checking "req" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:70: deref_ptr: Directly dereferencing pointer "writer". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:71: check_after_deref: Null-checking "writer" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:239: deref_ptr_in_call: Dereferencing pointer "hostname". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:185:9: deref_parm_in_call: Function "strlen" dereferences "src". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:252: check_after_deref: Null-checking "hostname" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:751: deref_ptr: Directly dereferencing pointer "data". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:875: check_after_deref: Null-checking "data" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:5911: deref_ptr: Directly dereferencing pointer "heal_frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:5920: check_after_deref: Null-checking "heal_frame" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-self-heal-common.c:2147: deref_ptr: Directly dereferencing pointer "heal_frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-self-heal-common.c:2160: check_after_deref: Null-checking "heal_frame" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1467: deref_ptr: Directly dereferencing pointer "ctx". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1576: check_after_deref: Null-checking "ctx" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3256: deref_ptr: Directly dereferencing pointer "peer->cm_id". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3264: check_after_deref: Null-checking "peer->cm_id" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4904: deref_ptr_in_call: Dereferencing pointer "rdma_ctx". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4906: check_after_deref: Null-checking "rdma_ctx" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:342: deref_ptr: Directly dereferencing pointer "frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:344: check_after_deref: Null-checking "frame" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:757: deref_ptr: Directly dereferencing pointer "key_prefix". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:759: check_after_deref: Null-checking "key_prefix" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:772: deref_ptr: Directly dereferencing pointer "key_prefix". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/io-stats/src/io-stats.c:774: check_after_deref: Null-checking "key_prefix" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:730: deref_ptr: Directly dereferencing pointer "shandle". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:735: check_after_deref: Null-checking "shandle" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:689: deref_ptr: Directly dereferencing pointer "shandle". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:694: check_after_deref: Null-checking "shandle" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-resolve.c:280: deref_ptr: Directly dereferencing pointer "inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-resolve.c:360: check_after_deref: Null-checking "inode" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2707: deref_ptr: Directly dereferencing pointer "buf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2708: check_after_deref: Null-checking "buf" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2718: deref_ptr: Directly dereferencing pointer "writer". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:2719: check_after_deref: Null-checking "writer" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:443: check_after_deref: Null-checking "inode" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:408: deref_ptr_in_call: Dereferencing pointer "inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:204:2: deref_parm_in_call: Function "qr_inode_ctx_get" dereferences "inode". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:55:2: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:55:2: deref_parm_field_in_call: Function "pthread_spin_lock" dereferences an offset off "inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:413: deref_ptr_in_call: Dereferencing pointer "inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:204:2: deref_parm_in_call: Function "qr_inode_ctx_get" dereferences "inode". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:55:2: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:55:2: deref_parm_field_in_call: Function "pthread_spin_lock" dereferences an offset off "inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:418: deref_ptr_in_call: Dereferencing pointer "inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:204:2: deref_parm_in_call: Function "qr_inode_ctx_get" dereferences "inode". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:55:2: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:55:2: deref_parm_field_in_call: Function "pthread_spin_lock" dereferences an offset off "inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:426: deref_ptr_in_call: Dereferencing pointer "inode". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:91:2: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:91:2: deref_parm_field_in_call: Function "pthread_spin_lock" dereferences an offset off "inode". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:435: deref_ptr_in_call: Dereferencing pointer "inode". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:55:2: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/performance/quick-read/src/quick-read.c:55:2: deref_parm_field_in_call: Function "pthread_spin_lock" dereferences an offset off "inode". Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:671: deref_ptr_in_call: Dereferencing pointer "entry". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/list.h:76:2: deref_parm: Directly dereferencing parameter "old". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:676: check_after_deref: Null-checking "entry" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:6095: alias: Assigning: "c_args" = "data". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:6112: deref_ptr: Directly dereferencing pointer "c_args". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:6116: check_after_deref: Null-checking "data" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/system/posix-acl/src/posix-acl.c:250: deref_ptr: Directly dereferencing pointer "frame". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/system/posix-acl/src/posix-acl.c:252: check_after_deref: Null-checking "frame" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-helpers.c:56: deref_ptr: Directly dereferencing pointer "meta_fd". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-helpers.c:62: check_after_deref: Null-checking "meta_fd" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4436: deref_ptr_in_call: Dereferencing pointer "vme->option". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4573: check_after_deref: Null-checking "vme->option" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:185: check_after_deref: Null-checking "xattr" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:183: deref_ptr: Directly dereferencing pointer "xattr". Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:123: check_after_deref: Null-checking "xattr" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe-helpers.c:121: deref_ptr: Directly dereferencing pointer "xattr". Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1374: deref_ptr: Directly dereferencing pointer "req". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:1377: check_after_deref: Null-checking "req" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-aio.c:246: deref_ptr: Directly dereferencing pointer "paiocb". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-aio.c:272: check_after_deref: Null-checking "paiocb" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-aio.c:264: deref_ptr: Directly dereferencing pointer "paiocb". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-aio.c:304: check_after_deref: Null-checking "paiocb" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: REVERSE_INULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:1969: deref_ptr: Directly dereferencing pointer "local". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-helper.c:1972: check_after_deref: Null-checking "local" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Error: SECURE_TEMP: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-code.c:420: secure_temp: Calling "mkstemp" without securely setting umask first. Error: SECURE_TEMP: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:1782: secure_temp: "tmpfile" creates files with predictable names, which is unsafe. Error: SECURE_TEMP: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/api/src/glfs-mgmt.c:632: secure_temp: "tmpfile" creates files with predictable names, which is unsafe. Error: SECURE_TEMP: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:562: cond_false: Condition "!graph", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:563: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:566: secure_temp: Calling "mkstemp" without securely setting umask first. Error: SECURE_TEMP: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.c:834: cond_false: Condition "!oldvollen", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.c:837: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.c:839: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.c:843: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.c:846: cond_true: Condition "!oldvolfile_graph", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.c:852: secure_temp: Calling "mkstemp" without securely setting umask first. Error: SECURE_TEMP: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:145: cond_false: Condition "!identical", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:145: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:145: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:146: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:149: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:149: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:157: secure_temp: Calling "mkstemp" without securely setting umask first. Error: SECURE_TEMP: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:96: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:96: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:97: cond_false: Condition "!identical", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:97: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tierd-svc-helper.c:104: secure_temp: Calling "mkstemp" without securely setting umask first. Error: SECURE_TEMP: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:222: cond_false: Condition "!identical", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:222: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:222: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:223: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:226: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:226: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:234: secure_temp: Calling "mkstemp" without securely setting umask first. Error: SECURE_TEMP: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:174: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:174: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:175: cond_true: Condition "!identical", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-svc-helper.c:183: secure_temp: Calling "mkstemp" without securely setting umask first. Error: SIZEOF_MISMATCH: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:482: suspicious_sizeof: Passing argument "8UL /* sizeof (pool) */" to function "__gf_calloc" and then casting the return value to "char **" is suspicious. In this particular case "sizeof (char **)" happens to be equal to "sizeof (char *)", but this is not a portable assumption. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:482: remediation: Did you intend to use "sizeof (*pool)" instead of "sizeof (pool)"? Error: SIZEOF_MISMATCH: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:561: suspicious_sizeof: Passing argument "8UL /* sizeof (pool) */" to function "__gf_calloc" and then casting the return value to "char **" is suspicious. In this particular case "sizeof (char **)" happens to be equal to "sizeof (char *)", but this is not a portable assumption. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/encryption/crypt/src/data.c:561: remediation: Did you intend to use "sizeof (*pool)" instead of "sizeof (pool)"? Error: SIZEOF_MISMATCH: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/misc.c:44: suspicious_sizeof: Passing argument "flock" of type "struct gf_flock *" and argument "32UL" ("sizeof (struct flock)") to function "memset" is suspicious because a multiple of "sizeof (struct gf_flock) /*1056*/" is expected. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:12215: stack_use_local_overflow: Local variable "output_string" uses 51200 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:84: stack_use_local_overflow: Local variable "brick_list" uses 120000 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:34: stack_use_local: Local variable "mypw" stack use: 48 bytes -> 64 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:35: stack_use_local: Local variable "mystrs" stack use: 1024 bytes -> 1088 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:36: stack_use_local: Local variable "result" stack use: 8 bytes -> 1096 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:41: stack_use_local: Local variable "mygroups" stack use: 262140 bytes -> 263236 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:43: stack_use_local: Local variable "ngroups" stack use: 4 bytes -> 263240 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:44: stack_use_local: Local variable "i" stack use: 4 bytes -> 263244 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:45: stack_use_local: Local variable "max_groups" stack use: 4 bytes -> 263248 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:47: stack_use_local: Local variable "agl" stack use: 8 bytes -> 263256 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:48: stack_use_local: Local variable "gl" stack use: 48 bytes -> 263304 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:46: stack_use_local: Local variable "priv" stack use: 8 bytes -> 263312 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:60: stack_use_return: Return value for "printf("too many groups, reducing %d -> %d", agl->gl_count, max_groups)" stack use: 4 bytes -> 263316 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:60: stack_use_return: Return value for "_gf_log(this->name, "nfs-fops.c", <anonymous>, 63, GF_LOG_WARNING, "too many groups, reducing %d -> %d", agl->gl_count, max_groups)" stack use: 4 bytes -> 263320 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:76: stack_use_return: Return value for "getpwuid_r(root->uid, &mypw, mystrs, 1024UL, &result)" stack use: 4 bytes -> 263324 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:77: stack_use_return: Return value for "_gf_msg(this->name, "nfs-fops.c", <anonymous>, 78, GF_LOG_ERROR, 0, 0, 112195UL, "getpwuid_r(%u) failed", root->uid)" stack use: 4 bytes -> 263328 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:83: stack_use_return: Return value for "_gf_msg(this->name, "nfs-fops.c", <anonymous>, 84, GF_LOG_ERROR, 0, 0, 112195UL, "getpwuid_r(%u) found nothing", root->uid)" stack use: 4 bytes -> 263332 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:88: stack_use_return: Return value for "_gf_msg(this->name, "nfs-fops.c", <anonymous>, 89, GF_LOG_TRACE, 0, 0, 0UL, "mapped %u => %s", root->uid, result->pw_name)" stack use: 4 bytes -> 263336 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:93: stack_use_return: Return value for "_gf_msg(this->name, "nfs-fops.c", <anonymous>, 94, GF_LOG_ERROR, 0, 0, 112196UL, "could not map %s to group list", result->pw_name)" stack use: 4 bytes -> 263340 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:99: stack_use_return: Return value for "__gf_calloc(ngroups, 4UL, gf_nfs_mt_aux_gids, "gf_nfs_mt_aux_gids")" stack use: 8 bytes -> 263348 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:106: stack_use_return: Return value for "memcpy(gl.gl_list, mygroups, 4UL * ngroups)" stack use: 8 bytes -> 263356 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:107: stack_use_return: Return value for "gid_cache_add(&priv->gid_cache, &gl)" stack use: 4 bytes -> 263360 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:113: stack_use_return: Return value for "printf("too many groups, reducing %d -> %d", ngroups, max_groups)" stack use: 4 bytes -> 263364 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:113: stack_use_return: Return value for "_gf_log(this->name, "nfs-fops.c", <anonymous>, 116, GF_LOG_WARNING, "too many groups, reducing %d -> %d", ngroups, max_groups)" stack use: 4 bytes -> 263368 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:123: stack_use_return: Return value for "_gf_msg(this->name, "nfs-fops.c", <anonymous>, 124, GF_LOG_TRACE, 0, 0, 0UL, "%s is in group %u", result->pw_name, mygroups[i])" stack use: 4 bytes -> 263372 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:41: stack_use_overflow: The maximum stack use of 250000 bytes is exceeded. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs-fops.c:41: stack_use_local_overflow: Local variable "mygroups" uses 262140 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:919: stack_use_local_overflow: Local variable "buf" uses 131072 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1031: stack_use_local: Local variable "ret" stack use: 4 bytes -> 20 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1032: stack_use_local: Local variable "fd" stack use: 4 bytes -> 24 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1033: stack_use_local: Local variable "conf_fd" stack use: 4 bytes -> 28 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1034: stack_use_local: Local variable "bytes_read" stack use: 8 bytes -> 36 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1035: stack_use_local: Local variable "bytes_to_write" stack use: 8 bytes -> 44 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1036: stack_use_local: Local variable "buf" stack use: 131072 bytes -> 131116 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1036: stack_use_local: Local variable "buf@dim0" stack use: 8 bytes -> 131124 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1037: stack_use_local: Local variable "gfid" stack use: 16 bytes -> 131140 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1037: stack_use_local: Local variable "gfid@dim0" stack use: 8 bytes -> 131148 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1038: stack_use_local: Local variable "this" stack use: 8 bytes -> 131156 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1039: stack_use_local: Local variable "found" stack use: 4 bytes -> 131160 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1040: stack_use_local: Local variable "modified" stack use: 4 bytes -> 131164 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1041: stack_use_local: Local variable "is_file_empty" stack use: 4 bytes -> 131168 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1042: stack_use_local: Local variable "is_first_read" stack use: 4 bytes -> 131172 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1043: stack_use_local: Local variable "conf" stack use: 8 bytes -> 131180 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1044: stack_use_local: Local variable "version" stack use: 4 bytes -> 131184 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1045: stack_use_local: Local variable "type" stack use: 4 bytes -> 131188 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1046: stack_use_local: Local variable "quota_conf_line_sz" stack use: 4 bytes -> 131192 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1048: stack_use_return: Return value for "__glusterfs_this_location()" stack use: 8 bytes -> 131200 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1049: stack_use_return: Return value for "_gf_msg("", "glusterd-quota.c", <anonymous>, 1049, GF_LOG_ERROR, 0, 1, 101150UL, "Assertion failed: this")" stack use: 4 bytes -> 131204 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1051: stack_use_return: Return value for "_gf_msg("", "glusterd-quota.c", <anonymous>, 1051, GF_LOG_ERROR, 0, 1, 101150UL, "Assertion failed: conf")" stack use: 4 bytes -> 131208 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1053: stack_use_return: Return value for "glusterd_store_create_quota_conf_sh_on_absence(volinfo)" stack use: 4 bytes -> 131212 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1067: stack_use_return: Return value for "sys_close(conf_fd)" stack use: 4 bytes -> 131216 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1123: stack_use_return: Return value for "gf_uuid_parse(gfid_str, gfid)" stack use: 4 bytes -> 131220 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1146: stack_use_return: Return value for "_gf_msg(this->name, "glusterd-quota.c", <anonymous>, 1148, GF_LOG_ERROR, 0, 0, 106212UL, "quota.conf corrupted")" stack use: 4 bytes -> 131224 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1155: stack_use_return: Return value for "sys_write(fd, (void *)buf, bytes_to_write)" stack use: 8 bytes -> 131232 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1157: stack_use_return: Return value for "_gf_msg(this->name, "glusterd-quota.c", <anonymous>, 1159, GF_LOG_ERROR, *__errno_location(), 0, 106211UL, "write into quota.conf failed.")" stack use: 4 bytes -> 131236 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1182: stack_use_return: Return value for "_gf_msg(this->name, "glusterd-quota.c", <anonymous>, 1184, GF_LOG_ERROR, *__errno_location(), 0, 106211UL, "write into quota.conf failed. ")" stack use: 4 bytes -> 131240 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1195: stack_use_return: Return value for "_gf_msg(this->name, "glusterd-quota.c", <anonymous>, 1197, GF_LOG_ERROR, *__errno_location(), 0, 106211UL, "write into quota.conf failed. ")" stack use: 4 bytes -> 131244 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1207: stack_use_return: Return value for "gf_asprintf(op_errstr, "Cannot remove limit on %s. The quota configuration file for volume %s is empty.", path, volinfo->volname)" stack use: 4 bytes -> 131248 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1215: stack_use_return: Return value for "gf_asprintf(op_errstr, "Error. gfid %s for path %s not found in store", gfid_str, path)" stack use: 4 bytes -> 131252 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1232: stack_use_return: Return value for "glusterd_update_quota_conf_version(volinfo)" stack use: 4 bytes -> 131256 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1237: stack_use_return: Return value for "sys_close(conf_fd)" stack use: 4 bytes -> 131260 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1241: stack_use_return: Return value for "gf_store_unlink_tmppath(volinfo->quota_conf_shandle)" stack use: 4 bytes -> 131264 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1247: stack_use_return: Return value for "_gf_msg(this->name, "glusterd-quota.c", <anonymous>, 1249, GF_LOG_ERROR, 0, 0, 106214UL, "Failed to compute cksum for quota conf file")" stack use: 4 bytes -> 131268 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1256: stack_use_return: Return value for "_gf_msg(this->name, "glusterd-quota.c", <anonymous>, 1259, GF_LOG_ERROR, 0, 0, 106215UL, "Failed to store quota version and cksum")" stack use: 4 bytes -> 131272 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1168: stack_use_callee: "glusterd_copy_to_tmp_file(conf_fd, fd)" stack use: 144544 bytes -> 275816 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:916:24: stack_use_local_decl: Declaration "int ret" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:917:24: stack_use_local_decl: Declaration "size_t entry_sz" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:918:24: stack_use_local_decl: Declaration "ssize_t bytes_read" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:919:24: stack_use_local_decl: Declaration "unsigned char buf[131072]" uses 131072 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:919:36: stack_use_local_decl: Declaration "unsigned long buf@dim0" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:920:24: stack_use_local_decl: Declaration "xlator_t *this" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:922:16: stack_use_return: Return value "__glusterfs_this_location" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:923:9: stack_use_return: Return value "_gf_msg" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:927:25: stack_use_return: Return value "_gf_msg" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:933:23: stack_use_return: Return value "sys_write" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:935:25: stack_use_return: Return value "_gf_msg" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:914:1: stack_use_base: Base stack usage is 131152 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:923:9: stack_use_callee_max: Function "_gf_msg" uses the most stack space, 13384 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2015:26: stack_use_local_decl: Declaration "va_list ap" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2013:26: stack_use_local_decl: Declaration "int ret" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2014:26: stack_use_local_decl: Declaration "char *msgstr" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2016:26: stack_use_local_decl: Declaration "xlator_t *this" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2017:26: stack_use_local_decl: Declaration "glusterfs_ctx_t *ctx" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2018:26: stack_use_local_decl: Declaration "char callstr[4096]" uses 4096 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2018:57: stack_use_local_decl: Declaration "unsigned long callstr@dim0" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2019:26: stack_use_local_decl: Declaration "int passcallstr" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2020:26: stack_use_local_decl: Declaration "int log_inited" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2024:17: stack_use_return: Return value "fprintf" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2030:16: stack_use_return: Return value "__glusterfs_this_location" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2042:13: stack_use_return: Return value "skip_logging" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2054:9: stack_use_return: Return value "pthread_mutex_lock" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2060:9: stack_use_return: Return value "pthread_mutex_unlock" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2009:1: stack_use_base: Base stack usage is 4188 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2076:31: stack_use_callee_max: Function "_gf_msg_internal" uses the most stack space, 9140 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1841:26: stack_use_local_decl: Declaration "int ret" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1842:26: stack_use_local_decl: Declaration "uint32_t size" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1843:26: stack_use_local_decl: Declaration "char const *basename" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1844:26: stack_use_local_decl: Declaration "xlator_t *this" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1845:26: stack_use_local_decl: Declaration "glusterfs_ctx_t *ctx" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1846:26: stack_use_local_decl: Declaration "log_buf_t *iter" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1847:26: stack_use_local_decl: Declaration "log_buf_t *buf_tmp" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1848:26: stack_use_local_decl: Declaration "log_buf_t *buf_new" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1849:26: stack_use_local_decl: Declaration "log_buf_t *first" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1850:26: stack_use_local_decl: Declaration "struct timeval tv" uses 16 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1851:26: stack_use_local_decl: Declaration "gf_boolean_t found" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1852:26: stack_use_local_decl: Declaration "gf_boolean_t flush_lru" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1853:26: stack_use_local_decl: Declaration "gf_boolean_t flush_logged_msg" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1855:16: stack_use_return: Return value "__glusterfs_this_location" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1861:9: stack_use_return: Return value "strrchr" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1880:9: stack_use_return: Return value "pthread_mutex_lock" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1910:29: stack_use_return: Return value "strcmp" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1913:29: stack_use_return: Return value "strcmp" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1916:29: stack_use_return: Return value "strcmp" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1919:29: stack_use_return: Return value "strcmp" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1927:25: stack_use_return: Return value "memcpy" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1950:25: stack_use_return: Return value "printf" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1950:25: stack_use_return: Return value "_gf_log" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1968:25: stack_use_return: Return value "log_buf_destroy" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1972:17: stack_use_return: Return value "memcpy" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1974:17: stack_use_return: Return value "memcpy" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1983:9: stack_use_return: Return value "pthread_mutex_unlock" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1990:17: stack_use_return: Return value "log_buf_destroy" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1837:1: stack_use_base: Base stack usage is 188 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:1950:25: stack_use_callee_max: Function "_gf_log" uses the most stack space, 8888 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2101:24: stack_use_local_decl: Declaration "va_list ap" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2099:24: stack_use_local_decl: Declaration "char const *basename" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2100:24: stack_use_local_decl: Declaration "FILE *new_logfile" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2102:24: stack_use_local_decl: Declaration "char timestr[256]" uses 256 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2102:53: stack_use_local_decl: Declaration "unsigned long timestr@dim0" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2103:24: stack_use_local_decl: Declaration "struct timeval tv" uses 16 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2104:24: stack_use_local_decl: Declaration "char *str1" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2105:24: stack_use_local_decl: Declaration "char *str2" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2106:24: stack_use_local_decl: Declaration "char *msg" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2107:24: stack_use_local_decl: Declaration "size_t len" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2108:24: stack_use_local_decl: Declaration "int ret" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2109:24: stack_use_local_decl: Declaration "int fd" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2110:24: stack_use_local_decl: Declaration "xlator_t *this" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2111:26: stack_use_local_decl: Declaration "glusterfs_ctx_t *ctx" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2113:16: stack_use_return: Return value "__glusterfs_this_location" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2119:13: stack_use_return: Return value "skip_logging" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2135:17: stack_use_return: Return value "fprintf" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2141:20: stack_use_return: Return value "strrchr" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2149:21: stack_use_local_decl: Declaration "int priority" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2179:17: stack_use_return: Return value "sys_close" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2190:17: stack_use_return: Return value "pthread_mutex_lock" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2193:33: stack_use_return: Return value "fclose" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2198:17: stack_use_return: Return value "pthread_mutex_unlock" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2207:9: stack_use_return: Return value "gf_time_fmt" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2208:9: stack_use_return: Return value "snprintf" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2208:29: stack_use_return: Return value "strlen" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2208:64: stack_use_return: Return value "strlen" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2227:15: stack_use_return: Return value "__gf_malloc" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2227:15: stack_use_return: Return value "strlen" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2232:9: stack_use_return: Return value "strcpy" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2233:9: stack_use_return: Return value "strcpy" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2235:9: stack_use_return: Return value "pthread_mutex_lock" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2239:25: stack_use_return: Return value "fprintf" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2240:25: stack_use_return: Return value "fflush" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2242:25: stack_use_return: Return value "fprintf" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2243:25: stack_use_return: Return value "fflush" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2255:9: stack_use_return: Return value "pthread_mutex_unlock" uses 4 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2096:1: stack_use_base: Base stack usage is 504 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:2162:17: stack_use_callee_max: Function "gf_syslog" uses the most stack space, 8340 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:627:21: stack_use_local_decl: Declaration "char json_msg[8192]" uses 8192 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:629:21: stack_use_local_decl: Declaration "va_list ap" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:626:21: stack_use_local_decl: Declaration "char *msg" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:628:31: stack_use_local_decl: Declaration "char *p" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:624:1: stack_use_base: Base stack usage is 8232 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:635:21: stack_use_callee_max: Function "_json_escape" uses the most stack space, 56 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:550:28: stack_use_local_decl: Declaration "unsigned char *p" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:551:28: stack_use_local_decl: Declaration "size_t pos" uses 8 bytes of stack space. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/logging.c:535:1: stack_use_base: Base stack usage is 32 bytes. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1168: stack_use_overflow: The maximum stack use of 250000 bytes is exceeded. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1036: stack_use_local_overflow: Local variable "buf" uses 131072 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4102: stack_use_local_overflow: Local variable "scr" uses 16384 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/bit-rot/src/stub/bit-rot-stub.c:1270: stack_use_local_overflow: Local variable "dump" uses 65536 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:275: stack_use_local_overflow: Local variable "ascii" uses 12288 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:167: stack_use_local_overflow: Local variable "ascii" uses 12288 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2973: stack_use_local_overflow: Local variable "dump" uses 65536 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/dict.c:2998: stack_use_local_overflow: Local variable "dump" uses 65536 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:364: stack_use_local_overflow: Local variable "buf" uses 65536 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:315: stack_use_local_overflow: Local variable "buf" uses 131072 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:30: stack_use_local: Local variable "mypw" stack use: 48 bytes -> 64 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:31: stack_use_local: Local variable "mystrs" stack use: 1024 bytes -> 1088 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:32: stack_use_local: Local variable "result" stack use: 8 bytes -> 1096 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:33: stack_use_local: Local variable "mygroups" stack use: 262140 bytes -> 263236 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:34: stack_use_local: Local variable "gl" stack use: 48 bytes -> 263284 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:35: stack_use_local: Local variable "agl" stack use: 8 bytes -> 263292 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:36: stack_use_local: Local variable "ngroups" stack use: 4 bytes -> 263296 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:36: stack_use_local: Local variable "i" stack use: 4 bytes -> 263300 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:29: stack_use_local: Local variable "ret" stack use: 4 bytes -> 263304 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:46: stack_use_return: Return value for "_gf_msg("gid-cache", "server-helpers.c", <anonymous>, 48, GF_LOG_ERROR, *__errno_location(), 0, 115010UL, "getpwuid_r(%u) failed", root->uid)" stack use: 4 bytes -> 263308 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:53: stack_use_return: Return value for "_gf_msg("gid-cache", "server-helpers.c", <anonymous>, 54, GF_LOG_ERROR, 0, 0, 115011UL, "getpwuid_r(%u) found nothing", root->uid)" stack use: 4 bytes -> 263312 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:58: stack_use_return: Return value for "_gf_msg("gid-cache", "server-helpers.c", <anonymous>, 59, GF_LOG_TRACE, 0, 0, 0UL, "mapped %u => %s", root->uid, result->pw_name)" stack use: 4 bytes -> 263316 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:64: stack_use_return: Return value for "_gf_msg("gid-cache", "server-helpers.c", <anonymous>, 66, GF_LOG_ERROR, 0, 0, 115012UL, "could not map %s to group list (%d gids)", result->pw_name, root->ngrps)" stack use: 4 bytes -> 263320 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:82: stack_use_return: Return value for "__gf_malloc(root->ngrps * 4UL, gf_common_mt_groups_t, "gf_common_mt_groups_t")" stack use: 8 bytes -> 263328 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:85: stack_use_return: Return value for "memcpy(gl.gl_list, mygroups, 4UL * root->ngrps)" stack use: 8 bytes -> 263336 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:96: stack_use_return: Return value for "call_stack_alloc_groups(root, root->ngrps)" stack use: 4 bytes -> 263340 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:109: stack_use_return: Return value for "gid_cache_add(&conf->gid_cache, &gl)" stack use: 4 bytes -> 263344 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:33: stack_use_overflow: The maximum stack use of 250000 bytes is exceeded. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-helpers.c:33: stack_use_local_overflow: Local variable "mygroups" uses 262140 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:134: stack_use_local_overflow: Local variable "dir_stack" uses 16384 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:137: stack_use_local_overflow: Local variable "gfid_stack" uses 32768 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:152: stack_use_local: Local variable "filename" stack use: 32 bytes -> 48 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:153: stack_use_local: Local variable "line" stack use: 4096 bytes -> 4144 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:162: stack_use_local: Local variable "mygroups" stack use: 262140 bytes -> 266284 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:150: stack_use_local: Local variable "this" stack use: 8 bytes -> 266292 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:151: stack_use_local: Local variable "priv" stack use: 8 bytes -> 266300 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:154: stack_use_local: Local variable "ptr" stack use: 8 bytes -> 266308 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:155: stack_use_local: Local variable "fp" stack use: 8 bytes -> 266316 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:156: stack_use_local: Local variable "idx" stack use: 4 bytes -> 266320 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:157: stack_use_local: Local variable "id" stack use: 8 bytes -> 266328 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:158: stack_use_local: Local variable "saveptr" stack use: 8 bytes -> 266336 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:159: stack_use_local: Local variable "endptr" stack use: 8 bytes -> 266344 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:160: stack_use_local: Local variable "ret" stack use: 4 bytes -> 266348 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:161: stack_use_local: Local variable "ngroups" stack use: 4 bytes -> 266352 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:165: stack_use_local: Local variable "pwent" stack use: 48 bytes -> 266400 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:166: stack_use_local: Local variable "mystrs" stack use: 1024 bytes -> 267424 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:167: stack_use_local: Local variable "result" stack use: 8 bytes -> 267432 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:169: stack_use_return: Return value for "getpwuid_r(frame->root->uid, &pwent, mystrs, 1024UL, &result)" stack use: 4 bytes -> 267436 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:171: stack_use_return: Return value for "printf("getpwuid_r(%u) failed", frame->root->uid)" stack use: 4 bytes -> 267440 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:171: stack_use_return: Return value for "_gf_log(this->name, "fuse-helpers.c", <anonymous>, 172, GF_LOG_ERROR, "getpwuid_r(%u) failed", frame->root->uid)" stack use: 4 bytes -> 267444 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:179: stack_use_return: Return value for "printf("could not map %s to group list (ngroups %d, max %d)", result->pw_name, ngroups, 65535)" stack use: 4 bytes -> 267448 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:179: stack_use_return: Return value for "_gf_log(this->name, "fuse-helpers.c", <anonymous>, 181, GF_LOG_ERROR, "could not map %s to group list (ngroups %d, max %d)", result->pw_name, ngroups, 65535)" stack use: 4 bytes -> 267452 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:185: stack_use_return: Return value for "call_stack_alloc_groups(frame->root, ngroups)" stack use: 4 bytes -> 267456 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:203: stack_use_return: Return value for "call_stack_alloc_groups(frame->root, ngroups)" stack use: 4 bytes -> 267460 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:207: stack_use_return: Return value for "strncmp(ptr, "Groups:", 7UL)" stack use: 4 bytes -> 267464 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:212: stack_use_return: Return value for "__strtok_r_1c(ptr, (char const *)" \t\r\n"[0], &saveptr)" stack use: 8 bytes -> 267472 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:214: stack_use_return: Return value for "__strtok_r_1c(NULL, (char const *)" \t\r\n"[0], &saveptr)" stack use: 8 bytes -> 267480 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:233: stack_use_return: Return value for "fclose(fp)" stack use: 4 bytes -> 267484 bytes total. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:162: stack_use_overflow: The maximum stack use of 250000 bytes is exceeded. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-helpers.c:162: stack_use_local_overflow: Local variable "mygroups" uses 262140 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:570: stack_use_local_overflow: Local variable "ccd" uses 41360 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STACK_USE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-statedump.c:151: stack_use_local_overflow: Local variable "dump" uses 65536 bytes of stack space, which exceeds the maximum single use of 10000 bytes. Error: STRING_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2978: cond_false: Condition "proc_fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2989: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2991: string_null_argument: Function "sys_read" does not terminate string "*buffer". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:309:9: string_null_argument: Function "read" fills array "*buf" with a non-terminated string. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2992: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2997: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2998: string_null: Passing unterminated string "buffer" to "gf_strdup", which expects a null-terminated string. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:185:9: string_null_sink_parm_call: Passing parameter "src" to "strlen" which expects a null-terminated string. Error: STRING_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:906: string_null_argument: Function "sys_readlink" does not terminate string "*dmname". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:142:9: string_null_argument: Function "readlink" fills array "*buf" with a non-terminated string. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:909: cond_false: Condition "p", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:912: else_branch: Reached else branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:912: var_assign_var: Assigning: "dm" = "dmname". Both now point to the same unterminated string. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:914: string_null: Passing unterminated string "dm" to "sprintf". Error: STRING_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:906: string_null_argument: Function "sys_readlink" does not terminate string "*dmname". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:142:9: string_null_argument: Function "readlink" fills array "*buf" with a non-terminated string. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:908: string_null: Passing unterminated string "dmname" to "strrchr", which expects a null-terminated string. Error: STRING_NULL: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:518: string_null_argument: Function "sys_pread" does not terminate string "*ccd->changelog". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:337:9: string_null_argument: Function "pread" fills array "*buf" with a non-terminated string. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:519: cond_false: Condition "nread < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:524: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:527: cond_true: Condition "gf_is_changelog_usable(ccd->changelog) == 1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:529: string_null: Passing unterminated string "ccd->changelog" to "gf_changelog_consume", which expects a null-terminated string. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:579:9: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:579:9: cond_false: Condition "!((stbuf.st_mode & 61440) == 32768)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:585:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:587:9: string_null_sink_parm_call: Passing parameter "from_path" to "open" which expects a null-terminated string. Error: STRING_NULL: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:191: cond_false: Condition "ppid != pida[0]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:192: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:196: cond_false: Condition "fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:197: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:198: string_null_argument: Function "sys_read" does not terminate string "*buf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:309:9: string_null_argument: Function "read" fills array "*buf" with a non-terminated string. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:200: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:201: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:202: cond_true: Condition "zeros < 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:202: cond_true: Condition "p < &buf[ret]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:203: cond_true: Condition "!*p", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:203: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:202: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:202: cond_true: Condition "zeros < 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:202: cond_true: Condition "p < &buf[ret]", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:203: cond_true: Condition "!*p", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:203: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:202: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:202: cond_false: Condition "zeros < 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:203: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:206: switch: Switch case value "2". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:207: switch_case: Reached case "2". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:208: cond_false: Condition "strcmp(basename(buf), basename("/usr/bin/python"))", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:208: string_null: Passing unterminated string "buf" to "strlen", which expects a null-terminated string. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2079: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2079: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2083: cond_false: Condition "!priv->state", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2089: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2095: cond_true: Condition "frame->root->pid < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2095: cond_false: Condition "!priv->internal", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2101: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2112: cond_false: Condition "strncmp(pathbuf, priv->newtrash_dir, strlen(priv->newtrash_dir)) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2112: cond_false: Condition "match", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2112: cond_false: Condition "!retval", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2130: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2133: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2139: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2141: fixed_size_dest: You might overrun the 4096-character fixed-size string "local->origpath" by copying "pathbuf" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1985: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1985: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1989: cond_false: Condition "!priv->state", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1995: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2000: cond_true: Condition "frame->root->pid < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2000: cond_false: Condition "!priv->internal", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2006: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2016: cond_false: Condition "strncmp(pathbuf, priv->newtrash_dir, strlen(priv->newtrash_dir)) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2016: cond_false: Condition "match", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2032: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2034: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2037: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2043: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2045: fixed_size_dest: You might overrun the 4096-character fixed-size string "local->origpath" by copying "pathbuf" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1577: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1577: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1580: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1580: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1584: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1584: cond_true: Condition "op_errno == 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1587: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1590: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1594: cond_false: Condition "!tmp_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1597: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1600: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1603: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1604: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "priv->brick_path" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1577: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1577: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1580: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1580: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1584: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1584: cond_true: Condition "op_errno == 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1587: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1590: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1594: cond_false: Condition "!tmp_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1597: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1600: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1603: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1605: cond_true: Condition "frame->root->pid < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1606: cond_true: Condition "tmp_stat", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1607: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "tmp_stat" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1682: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1682: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1685: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1685: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: cond_true: Condition "!local->is_set_pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: cond_false: Condition "local->is_set_pid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1692: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1696: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1698: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1698: cond_true: Condition "op_errno == 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1700: cond_false: Condition "tmp_dirname", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1708: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1710: cond_false: Condition "!tmp_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1714: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1719: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1723: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1727: cond_false: Condition "!tmp_loc.name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1731: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1732: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "priv->brick_path" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1682: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1682: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1685: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1685: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: cond_true: Condition "!local->is_set_pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: cond_false: Condition "local->is_set_pid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1692: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1696: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1698: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1746: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1748: cond_true: Condition "op_ret == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1750: cond_true: Condition "strcmp((char *)cookie, dir_name) == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1752: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "priv->brick_path" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1682: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1682: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1685: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1685: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: cond_true: Condition "!local->is_set_pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: cond_false: Condition "local->is_set_pid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1692: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1696: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1698: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1698: cond_false: Condition "op_errno == 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1746: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1748: cond_false: Condition "op_ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1764: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1766: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1766: cond_false: Condition "op_errno != 17", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1776: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1778: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1782: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1785: cond_false: Condition "tmp_dirname", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1793: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1795: cond_false: Condition "!tmp_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1799: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1804: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1808: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1812: cond_false: Condition "!tmp_loc.name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1815: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1817: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "priv->brick_path" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1682: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1682: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1685: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1685: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: cond_true: Condition "!local->is_set_pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: cond_false: Condition "local->is_set_pid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1692: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1696: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1698: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1698: cond_true: Condition "op_errno == 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1700: cond_false: Condition "tmp_dirname", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1708: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1710: cond_false: Condition "!tmp_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1714: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1719: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1723: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1727: cond_false: Condition "!tmp_loc.name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1731: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1733: cond_true: Condition "frame->root->pid < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1734: cond_true: Condition "tmp_stat", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1735: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "tmp_stat" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1682: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1682: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1685: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1685: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: cond_true: Condition "!local->is_set_pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: cond_false: Condition "local->is_set_pid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1689: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1692: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1696: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1698: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1698: cond_false: Condition "op_errno == 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1746: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1748: cond_false: Condition "op_ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1764: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1766: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1766: cond_false: Condition "op_errno != 17", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1776: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1778: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1782: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1785: cond_false: Condition "tmp_dirname", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1793: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1795: cond_false: Condition "!tmp_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1799: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1804: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1808: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1812: cond_false: Condition "!tmp_loc.name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1815: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1818: cond_true: Condition "frame->root->pid < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1819: cond_true: Condition "tmp_stat", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1820: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "tmp_stat" without checking the length. Error: STRING_OVERFLOW: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:104: fixed_size_dest: You might overrun the 4096-character fixed-size string "trash_path" by copying "priv_value" without checking the length. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:104: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. Error: STRING_OVERFLOW: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1097: fixed_size_dest: You might overrun the 1024-character fixed-size string "mres->remainingdir" by copying "mres->resolveloc.path" without checking the length. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/mount3.c:1097: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6641: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6641: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6642: cond_true: Condition "!rsp_dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6646: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6650: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6653: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6657: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6660: cond_false: Condition "!snap", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6665: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:6667: fixed_size_dest: You might overrun the 255-character fixed-size string "snap->snapname" by copying "snapname" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4481: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4481: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4482: cond_true: Condition "!rsp_dict", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4486: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4490: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4496: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4500: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4503: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4507: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4508: cond_false: Condition "time_stamp <= 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4514: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4516: cond_true: Condition "&snap->snap_list != &priv->snapshots", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4517: cond_false: Condition "!strcmp(snap->snapname, snapname)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4517: cond_false: Condition "!gf_uuid_compare(snap->snap_id, snap_id)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4525: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4526: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4516: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4516: cond_false: Condition "&snap->snap_list != &priv->snapshots", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4526: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4527: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4530: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4533: cond_false: Condition "!snap", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4538: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:4540: fixed_size_dest: You might overrun the 255-character fixed-size string "snap->snapname" by copying "snapname" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:873: cond_false: Condition "!(this != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:873: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:875: cond_false: Condition "!(conf != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:875: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:877: cond_false: Condition "!(dict != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:877: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:878: cond_false: Condition "!(prefix != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:878: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:879: cond_false: Condition "!(brickinfo != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:879: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:881: cond_false: Condition "conf->op_version < 30600", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:884: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:888: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:892: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:897: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:901: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:906: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:910: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:915: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:919: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:920: fixed_size_dest: You might overrun the 1024-character fixed-size string "brickinfo->mnt_opts" by copying "mnt_opts" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:873: cond_false: Condition "!(this != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:873: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:875: cond_false: Condition "!(conf != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:875: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:877: cond_false: Condition "!(dict != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:877: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:878: cond_false: Condition "!(prefix != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:878: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:879: cond_false: Condition "!(brickinfo != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:879: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:881: cond_false: Condition "conf->op_version < 30600", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:884: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:888: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:892: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:897: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:901: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:906: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:910: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:911: fixed_size_dest: You might overrun the 255-character fixed-size string "brickinfo->fstype" by copying "fs_type" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:873: cond_false: Condition "!(this != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:873: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:875: cond_false: Condition "!(conf != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:875: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:877: cond_false: Condition "!(dict != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:877: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:878: cond_false: Condition "!(prefix != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:878: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:879: cond_false: Condition "!(brickinfo != NULL)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:879: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:881: cond_false: Condition "conf->op_version < 30600", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:884: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:888: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:892: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:897: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:901: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:902: fixed_size_dest: You might overrun the 4096-character fixed-size string "brickinfo->device_path" by copying "snap_device" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:798: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:801: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:802: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: cond_true: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:807: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: cond_false: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:807: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:808: cond_false: Condition "v == resbuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:810: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:812: cond_false: Condition "!v", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:813: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:815: cond_false: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:816: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:818: cond_false: Condition "!v", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:819: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:822: cond_false: Condition "!k", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:825: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:827: cond_true: Condition "strcmp(k, "worker_status") == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:828: fixed_size_dest: You might overrun the 255-character fixed-size string "sts_val->worker_status" by copying "v" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:1534: cond_false: Condition "!loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:1534: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:1535: cond_true: Condition "index_is_fop_on_internal_inode(this, loc->parent, loc->pargfid)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:1538: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:1541: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:1543: fixed_size_dest: You might overrun the 4096-character fixed-size string "path" by copying "loc->name" without checking the length. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/index/src/index.c:1543: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3443: cond_true: Condition "wordcount >= 5", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3443: cond_true: Condition "strcmp(words[3], "client") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3445: cond_false: Condition "!tmp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3448: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3451: cond_true: Condition "valid_internet_address(ip_addr, _gf_true)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3451: cond_true: Condition "pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3451: cond_true: Condition "gf_valid_pid(pid, strlen(pid))", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3455: fixed_size_dest: You might overrun the 355-character fixed-size string "option_str" by copying "ip_addr" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3443: cond_true: Condition "wordcount >= 5", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3443: cond_false: Condition "strcmp(words[3], "client") == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3463: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3464: cond_true: Condition "i < wordcount", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3465: cond_false: Condition "!cli_cmd_validate_dumpoption(words[i], &option)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3468: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3469: fixed_size_dest: You might overrun the 355-character fixed-size string "option_str" by copying "option" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3443: cond_true: Condition "wordcount >= 5", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3443: cond_true: Condition "strcmp(words[3], "client") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3445: cond_false: Condition "!tmp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3448: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3451: cond_true: Condition "valid_internet_address(ip_addr, _gf_true)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3451: cond_true: Condition "pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3451: cond_true: Condition "gf_valid_pid(pid, strlen(pid))", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:3453: fixed_size_dest: You might overrun the 355-character fixed-size string "option_str" by copying "words[3]" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5618: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5621: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5626: fixed_size_dest: You might overrun the 256-character fixed-size string "local->xsel" by copying "name" without checking the length. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/stripe/src/stripe.c:5626: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:221: cond_true: Condition "filler->real_path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:222: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:224: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:225: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:245: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:247: cond_false: Condition "size == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:250: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:253: cond_false: Condition "!list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:255: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:257: cond_true: Condition "filler->real_path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:258: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:260: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:261: cond_false: Condition "size <= 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:264: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:269: cond_true: Condition "remaining_size > 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:270: fixed_size_dest: You might overrun the 4096-character fixed-size string "key" by copying "list + list_offset" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3113: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3114: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3116: cond_false: Condition "!this->children", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3116: cond_false: Condition "this->children->next", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3120: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3121: cond_true: Condition "!this->parents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3122: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3122: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3127: cond_false: Condition "!conf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3131: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3139: cond_true: Condition "i < GF_FOP_MAXVALUE", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3140: cond_true: Condition "gf_fop_list[i]", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3141: fixed_size_dest: You might overrun the 24-character fixed-size string "trace_fop_names[i].name" by copying "gf_fop_list[i]" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3052: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3052: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3053: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3053: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3054: cond_false: Condition "!options", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3054: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3063: cond_true: Condition "i < GF_FOP_MAXVALUE", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3064: cond_true: Condition "gf_fop_list[i]", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/debug/trace/src/trace.c:3065: fixed_size_dest: You might overrun the 24-character fixed-size string "trace_fop_names[i].name" by copying "gf_fop_list[i]" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3695: cond_true: Condition "!priv", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3696: cond_true: Condition "!snapname", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3699: cond_false: Condition "!snap", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3704: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3706: fixed_size_dest: You might overrun the 255-character fixed-size string "snap->snapname" by copying "snapname" without checking the length. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3706: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3228: cond_false: Condition "!peer_data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3228: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3229: cond_true: Condition "!(vol_count >= 0)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3230: cond_true: Condition "!brickinfo", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3231: cond_true: Condition "!prefix", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3237: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3240: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3246: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3249: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3260: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3263: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3266: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3267: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3272: cond_true: Condition "brick_id", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3273: fixed_size_dest: You might overrun the 1024-character fixed-size string "new_brickinfo->brick_id" by copying "brick_id" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3228: cond_false: Condition "!peer_data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3228: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3229: cond_true: Condition "!(vol_count >= 0)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3230: cond_true: Condition "!brickinfo", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3231: cond_true: Condition "!prefix", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3237: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3240: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3246: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3249: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3260: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3263: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3266: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3267: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3270: fixed_size_dest: You might overrun the 1024-character fixed-size string "new_brickinfo->hostname" by copying "hostname" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3228: cond_false: Condition "!peer_data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3228: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3229: cond_true: Condition "!(vol_count >= 0)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3230: cond_true: Condition "!brickinfo", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3231: cond_true: Condition "!prefix", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3237: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3240: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3246: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3249: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3260: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3263: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3266: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3267: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:3269: fixed_size_dest: You might overrun the 4096-character fixed-size string "new_brickinfo->path" by copying "path" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11802: cond_true: Condition "!this", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11803: cond_false: Condition "!brick_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11803: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11804: cond_true: Condition "!brickinfo", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11807: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11813: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11817: cond_false: Condition "!entry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11824: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:11828: fixed_size_dest: You might overrun the 1024-character fixed-size string "brickinfo->mnt_opts" by copying "entry->mnt_opts" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:281: cond_false: Condition "start == (void *)0xffffffffffffffff", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:286: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:292: cond_true: Condition "nleft > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:299: switch: Switch case value "'E'". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:337: switch_case: Reached case "'E'". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:341: cond_false: Condition "mover[36] != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:341: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:341: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:341: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:350: cond_false: Condition "mover[len] != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:350: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:354: cond_false: Condition "fopname == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:357: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:365: cond_true: Condition "ng > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:368: cond_true: Condition "mover[len] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:368: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:373: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:377: cond_true: Condition "ng-- > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:380: cond_true: Condition "!len", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:382: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:400: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:377: cond_true: Condition "ng-- > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:380: cond_false: Condition "!len", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:383: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:387: cond_false: Condition "mover[len] != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:387: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:387: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:387: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:390: cond_false: Condition "!eptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:393: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:397: fixed_size_dest: You might overrun the 12288-character fixed-size string "&ascii[off]" by copying "eptr" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:281: cond_false: Condition "start == (void *)0xffffffffffffffff", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:286: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:292: cond_true: Condition "nleft > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:299: switch: Switch case value "'D'". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:300: switch_case: Reached case "'D'". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:304: cond_false: Condition "mover[36] != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:304: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:304: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:304: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:306: fixed_size_dest: You might overrun the 12288-character fixed-size string "&ascii[off]" by copying "ptr" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:172: cond_false: Condition "start == (void *)0xffffffffffffffff", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:177: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:183: cond_true: Condition "nleft > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:190: switch: Switch case value "'D'". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:191: switch_case: Reached case "'D'". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:194: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:194: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:196: break: Breaking from switch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:216: switch_end: Reached end of switch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:218: cond_false: Condition "parse_err", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:219: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c:223: fixed_size_dest: You might overrun the 12288-character fixed-size string "&ascii[off]" by copying "ptr" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:83: cond_false: Condition "len > pathsize", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:85: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:88: cond_true: Condition "*dir_name != '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:91: cond_true: Condition "type & (2 /* 1 << 1 */)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:93: cond_false: Condition "!entry", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:94: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:100: fixed_size_dest: You might overrun the 4097-character fixed-size string "real_path" by copying "priv_base_path" without checking the length. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-handle.c:100: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:627: cond_false: Condition "trav_xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:630: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:635: cond_false: Condition "!switch_buf_array", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:636: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_true: Condition "trav_xl", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:641: cond_false: Condition "trav_xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:646: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "1 /* 1 && (size_t)(void const *)&";"[1] - (size_t)(void const *)";" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "(char const *)";"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:653: cond_true: Condition "(char const *)";"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:654: cond_true: Condition "switch_str", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:658: cond_false: Condition "!switch_opt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:661: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:664: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:664: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:664: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:665: cond_true: Condition "strncmp(pattern, "*", 2) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:671: cond_true: Condition "1 /* 1 && (size_t)(void const *)&";"[1] - (size_t)(void const *)";" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:671: cond_true: Condition "(char const *)";"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:671: cond_true: Condition "(char const *)";"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:674: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:749: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:654: cond_true: Condition "switch_str", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:658: cond_false: Condition "!switch_opt", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:661: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:663: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:664: cond_true: Condition "1 /* 1 && (size_t)(void const *)&":"[1] - (size_t)(void const *)":" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:664: cond_true: Condition "(char const *)":"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:664: cond_true: Condition "(char const *)":"[1] == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:665: cond_false: Condition "strncmp(pattern, "*", 2) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:675: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/switch.c:677: fixed_size_dest: You might overrun the 256-character fixed-size string "switch_opt->path_pattern" by copying "pattern" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2407: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2410: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2414: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2415: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2420: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2421: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2424: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2425: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2427: cond_false: Condition "cmd->print_netgroups", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2433: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2435: cond_false: Condition "cmd->print_exports", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2442: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2445: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2446: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2453: fixed_size_dest: You might overrun the 4096-character fixed-size string "cmdlinestr" by copying "argv[0]" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1854: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1854: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1857: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1857: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1867: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1875: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1878: cond_false: Condition "buf->ia_nlink > 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1884: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1890: cond_false: Condition "buf->ia_size > priv->max_trash_file_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1890: cond_false: Condition "buf->ia_size <= local->fop_offset", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1900: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1904: cond_false: Condition "!local->loc.name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1907: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1910: cond_true: Condition "frame->root->pid < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1917: cond_false: Condition "strlen(local->newpath) > 4096", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1923: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1925: fixed_size_dest: You might overrun the 4096-character fixed-size string "loc_newname" by copying "local->loc.name" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1854: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1854: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1857: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1857: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1867: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1875: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1878: cond_false: Condition "buf->ia_nlink > 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1884: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1890: cond_false: Condition "buf->ia_size > priv->max_trash_file_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1890: cond_false: Condition "buf->ia_size <= local->fop_offset", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1900: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1904: cond_false: Condition "!local->loc.name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1907: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1910: cond_true: Condition "frame->root->pid < 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1912: fixed_size_dest: You might overrun the 4096-character fixed-size string "local->newpath" by copying "local->loc.path" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1297: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1297: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1302: cond_false: Condition "!priv->state", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1308: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1314: cond_true: Condition "frame->root->pid < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1314: cond_false: Condition "!priv->internal", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1320: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1325: cond_true: Condition "gf_uuid_is_null(loc->gfid)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1325: cond_false: Condition "gf_uuid_is_null(loc->inode->gfid)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1333: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1342: cond_false: Condition "strncmp(pathbuf, priv->newtrash_dir, strlen(priv->newtrash_dir)) == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1342: cond_false: Condition "match", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1358: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1361: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1367: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1372: cond_true: Condition "frame->root->pid < 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1374: fixed_size_dest: You might overrun the 4096-character fixed-size string "local->newpath" by copying "pathbuf" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:874: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:874: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:877: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:877: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: cond_true: Condition "!local->is_set_pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: cond_false: Condition "local->is_set_pid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:882: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:886: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:890: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:890: cond_true: Condition "op_errno == 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:892: cond_false: Condition "tmp_dirname", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:900: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:902: cond_false: Condition "!tmp_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:906: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:911: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:915: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:919: cond_false: Condition "!tmp_loc.name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:923: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:924: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "priv->brick_path" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:874: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:874: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:877: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:877: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: cond_true: Condition "!local->is_set_pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: cond_false: Condition "local->is_set_pid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:882: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:886: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:890: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:890: cond_false: Condition "op_errno == 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:938: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:941: cond_false: Condition "op_ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:953: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:955: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:955: cond_false: Condition "op_errno != 17", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:964: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:966: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:970: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:975: cond_false: Condition "tmp_dirname", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:983: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:985: cond_false: Condition "!tmp_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:989: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:994: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:998: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1002: cond_false: Condition "!tmp_loc.name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1006: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1008: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "priv->brick_path" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:874: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:874: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:877: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:877: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: cond_true: Condition "!local->is_set_pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: cond_false: Condition "local->is_set_pid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:882: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:886: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:890: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:890: cond_true: Condition "op_errno == 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:892: cond_false: Condition "tmp_dirname", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:900: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:902: cond_false: Condition "!tmp_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:906: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:911: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:915: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:919: cond_false: Condition "!tmp_loc.name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:923: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:925: cond_true: Condition "frame->root->pid < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:926: cond_true: Condition "tmp_stat", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:927: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "tmp_stat" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:874: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:874: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:877: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:877: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: cond_true: Condition "!local->is_set_pid", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: cond_false: Condition "local->is_set_pid", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:879: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:882: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:886: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:890: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:890: cond_false: Condition "op_errno == 2", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:938: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:941: cond_false: Condition "op_ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:953: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:955: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:955: cond_false: Condition "op_errno != 17", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:964: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:966: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:970: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:975: cond_false: Condition "tmp_dirname", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:983: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:985: cond_false: Condition "!tmp_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:989: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:994: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:998: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1002: cond_false: Condition "!tmp_loc.name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1006: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1009: cond_true: Condition "frame->root->pid < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1010: cond_true: Condition "tmp_stat", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1011: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "tmp_stat" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1051: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1051: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1054: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1054: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1056: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1056: cond_true: Condition "op_errno == 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1061: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1065: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1070: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1074: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1077: cond_false: Condition "!tmp_cookie", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1081: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1082: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "priv->brick_path" without checking the length. Error: STRING_OVERFLOW: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1051: cond_false: Condition "!priv", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1051: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1054: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1054: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1056: cond_true: Condition "op_ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1056: cond_true: Condition "op_errno == 2", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1061: cond_false: Condition "!tmp_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1065: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1070: cond_false: Condition "!tmp_loc.path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1074: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1077: cond_false: Condition "!tmp_cookie", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1081: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1083: cond_true: Condition "frame->root->pid < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1084: cond_true: Condition "tmp_stat", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:1085: fixed_size_dest: You might overrun the 4096-character fixed-size string "real_path" by copying "tmp_stat" without checking the length. Error: STRING_SIZE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2397: string_size_argv: argv contains strings with unknown size. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2407: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2410: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2414: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2415: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2420: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2421: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2424: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2425: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2427: cond_false: Condition "cmd->print_netgroups", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2433: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2435: cond_false: Condition "cmd->print_exports", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2442: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2445: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2446: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2453: string_size: Passing string "argv[0]" of unknown size to "strcpy", which expects a string of a particular size. Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4898: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4902: cond_true: Condition "!mount_finished", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4908: cond_false: Condition "poll(pfd, 2, -1) < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4912: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4913: cond_true: Condition "pfd[0].revents & 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4914: cond_false: Condition "fuse_get_mount_status(this) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4916: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4918: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4923: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4924: cond_true: Condition "!pfd[1].revents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4925: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5076: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4898: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4902: cond_false: Condition "!mount_finished", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4927: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4937: cond_true: Condition "priv->init_recvd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4956: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4956: cond_false: Condition "!iov_in[0].iov_base", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4964: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4968: tainted_data_argument: Calling function "sys_readv" taints argument "iov_in". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:295:9: tainted_data_argument: Calling function "readv" taints parameter "*iov". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4970: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4993: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4994: cond_false: Condition "res < 8UL /* sizeof (finh) */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5000: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5002: var_assign_var: Assigning: "finh" = "(fuse_in_header_t *)iov_in[0].iov_base". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5004: cond_false: Condition "res != finh->len", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5020: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5031: cond_true: Condition "priv->init_recvd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5034: cond_false: Condition "finh->opcode == FUSE_WRITE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5036: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5037: cond_false: Condition "res > 168UL /* msg0_size */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5051: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5053: cond_true: Condition "res > iov_in[0].iov_len", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5060: cond_true: Condition "priv->uid_map_root", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5060: cond_true: Condition "finh->uid == priv->uid_map_root", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5064: cond_true: Condition "finh->opcode >= 47U /* FUSE_LSEEK + 1 */", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5066: tainted_data: Passing tainted variable "finh" to a tainted sink. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4164:9: data_index: Passing tainted variable "finh" to a tainted data index sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4898: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4902: cond_true: Condition "!mount_finished", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4908: cond_false: Condition "poll(pfd, 2, -1) < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4912: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4913: cond_true: Condition "pfd[0].revents & 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4914: cond_false: Condition "fuse_get_mount_status(this) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4916: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4918: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4923: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4924: cond_true: Condition "!pfd[1].revents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4925: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5076: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4898: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4902: cond_false: Condition "!mount_finished", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4927: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4937: cond_true: Condition "priv->init_recvd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4956: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4956: cond_false: Condition "!iov_in[0].iov_base", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4964: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4968: tainted_data_argument: Calling function "sys_readv" taints argument "iov_in". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:295:9: tainted_data_argument: Calling function "readv" taints parameter "*iov". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4970: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4993: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4994: cond_false: Condition "res < 8UL /* sizeof (finh) */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5000: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5002: var_assign_var: Assigning: "finh" = "(fuse_in_header_t *)iov_in[0].iov_base". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5004: cond_false: Condition "res != finh->len", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5020: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5031: cond_true: Condition "priv->init_recvd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5034: cond_false: Condition "finh->opcode == FUSE_WRITE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5036: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5037: cond_true: Condition "res > 168UL /* msg0_size */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5039: cond_false: Condition "b", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5044: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5045: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5045: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5049: goto: Jumping to label "cont_err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5073: label: Reached label "cont_err". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5075: tainted_data: Passing tainted variable "iov_in[0].iov_base" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4898: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4902: cond_true: Condition "!mount_finished", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4908: cond_false: Condition "poll(pfd, 2, -1) < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4912: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4913: cond_true: Condition "pfd[0].revents & 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4914: cond_false: Condition "fuse_get_mount_status(this) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4916: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4918: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4923: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4924: cond_true: Condition "!pfd[1].revents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4925: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5076: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4898: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4902: cond_false: Condition "!mount_finished", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4927: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4937: cond_true: Condition "priv->init_recvd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4956: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4956: cond_false: Condition "!iov_in[0].iov_base", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4964: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4968: tainted_data_argument: Calling function "sys_readv" taints argument "iov_in". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:295:9: tainted_data_argument: Calling function "readv" taints parameter "*iov". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4970: cond_true: Condition "res == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4971: cond_false: Condition "*__errno_location() == 19", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4971: cond_false: Condition "*__errno_location() == 9", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4982: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4983: cond_true: Condition "*__errno_location() != 4", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4984: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4984: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4987: cond_true: Condition "this->history", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4987: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4987: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4992: goto: Jumping to label "cont_err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5073: label: Reached label "cont_err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5076: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4898: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4898: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4902: cond_false: Condition "!mount_finished", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4927: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4937: cond_true: Condition "priv->init_recvd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4956: cond_true: Condition "!iobuf", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4957: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4957: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4959: cond_false: Condition "iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4960: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4961: tainted_data: Passing tainted variable "iov_in[0].iov_base" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4898: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4902: cond_true: Condition "!mount_finished", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4908: cond_false: Condition "poll(pfd, 2, -1) < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4912: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4913: cond_true: Condition "pfd[0].revents & 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4914: cond_false: Condition "fuse_get_mount_status(this) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4916: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4918: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4923: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4924: cond_true: Condition "!pfd[1].revents", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4925: continue: Continuing loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5076: loop: Looping back. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4898: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4902: cond_false: Condition "!mount_finished", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4927: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4937: cond_true: Condition "priv->init_recvd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4956: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4956: cond_false: Condition "!iov_in[0].iov_base", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4964: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4968: tainted_data_argument: Calling function "sys_readv" taints argument "iov_in". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:295:9: tainted_data_argument: Calling function "readv" taints parameter "*iov". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4970: cond_true: Condition "res == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4971: cond_false: Condition "*__errno_location() == 19", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4971: cond_false: Condition "*__errno_location() == 9", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4982: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4983: cond_true: Condition "*__errno_location() != 4", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4984: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4984: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4987: cond_true: Condition "this->history", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4987: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4987: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:4992: goto: Jumping to label "cont_err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5073: label: Reached label "cont_err". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mount/fuse/src/fuse-bridge.c:5075: tainted_data: Passing tainted variable "iov_in[0].iov_base" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3019: tainted_data_return: Function "gf_get_reserved_ports" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2978:9: cond_false: Condition "proc_fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2989:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2991:9: tainted_data_argument: Function "sys_read" taints argument "buffer". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:309:9: tainted_data_argument: Calling function "read" taints parameter "*buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2992:9: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2997:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2998:9: tainted_data_transitive: Call to function "gf_strdup" with tainted argument "buffer" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: tainted_data_transitive: Calling function "memcpy" with tainted argument "src" taints "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_tainted_data: Returning tainted variable "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:2998:9: var_assign: Assigning: "ports_info" = "gf_strdup", which taints "ports_info". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3001:9: cond_true: Condition "proc_fd != -1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3004:9: return_tainted_data: Returning tainted variable "ports_info". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3019: var_assign: Assigning: "ports_info" = "gf_get_reserved_ports", which taints "ports_info". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3020: cond_false: Condition "!ports_info", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3026: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3028: cond_true: Condition "1 /* 1 && (size_t)(void const *)&",\n"[1] - (size_t)(void const *)",\n" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3028: cond_true: Condition "(char const *)",\n"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3028: cond_false: Condition "(char const *)",\n"[1] == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3030: cond_true: Condition "blocked_port", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3032: cond_true: Condition "1 /* 1 && (size_t)(void const *)&",\n"[1] - (size_t)(void const *)",\n" == 1 */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3032: cond_true: Condition "(char const *)",\n"[0] != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3032: cond_false: Condition "(char const *)",\n"[1] == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3033: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3030: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3030: cond_false: Condition "blocked_port", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3033: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/common-utils.c:3038: tainted_data: Passing tainted variable "ports_info" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2154: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2155: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2158: cond_false: Condition "!lines", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2159: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: cond_true: Condition "fgets(buffer, 4352 /* sizeof (buffer) */, fp)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2163: cond_false: Condition "counter == n - 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2172: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2175: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: cond_true: Condition "fgets(buffer, 4352 /* sizeof (buffer) */, fp)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2163: cond_false: Condition "counter == n - 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2172: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2175: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: cond_true: Condition "fgets(buffer, 4352 /* sizeof (buffer) */, fp)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2163: cond_true: Condition "counter == n - 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2166: cond_false: Condition "!p", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2170: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2175: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: loop_begin: Jumped back to beginning of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: tainted_data_argument: Calling function "fgets" taints argument "buffer". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: cond_true: Condition "fgets(buffer, 4352 /* sizeof (buffer) */, fp)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2163: cond_true: Condition "counter == n - 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2166: cond_false: Condition "!p", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2170: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2174: tainted_data_transitive: Call to function "gf_strdup" with tainted argument "buffer" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: tainted_data_transitive: Calling function "memcpy" with tainted argument "src" taints "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_tainted_data: Returning tainted variable "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2174: var_assign: Assigning: "lines[counter]" = "gf_strdup", which taints "lines[counter]". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2175: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: cond_true: Condition "fgets(buffer, 4352 /* sizeof (buffer) */, fp)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2163: cond_true: Condition "counter == n - 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2166: cond_true: Condition "!p", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2167: tainted_data: Passing tainted variable "lines" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2137:3: cond_true: Condition "i < n", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2138:5: data_index: Passing tainted variable "line[i]" to a tainted data index sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2154: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2155: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2158: cond_false: Condition "!lines", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2159: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: cond_true: Condition "fgets(buffer, 4352 /* sizeof (buffer) */, fp)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2163: cond_false: Condition "counter == n - 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2172: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2175: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: cond_true: Condition "fgets(buffer, 4352 /* sizeof (buffer) */, fp)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2163: cond_false: Condition "counter == n - 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2172: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2175: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: cond_true: Condition "fgets(buffer, 4352 /* sizeof (buffer) */, fp)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2163: cond_true: Condition "counter == n - 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2166: cond_false: Condition "!p", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2170: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2175: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: loop_begin: Jumped back to beginning of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: tainted_data_argument: Calling function "fgets" taints argument "buffer". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: cond_true: Condition "fgets(buffer, 4352 /* sizeof (buffer) */, fp)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2163: cond_true: Condition "counter == n - 1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2166: cond_false: Condition "!p", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2170: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2174: tainted_data_transitive: Call to function "gf_strdup" with tainted argument "buffer" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: tainted_data_transitive: Calling function "memcpy" with tainted argument "src" taints "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_tainted_data: Returning tainted variable "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2174: var_assign: Assigning: "lines[counter]" = "gf_strdup", which taints "lines[counter]". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2175: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2161: cond_false: Condition "fgets(buffer, 4352 /* sizeof (buffer) */, fp)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2175: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2180: cond_true: Condition "!p", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2181: tainted_data: Passing tainted variable "lines" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2137:3: cond_true: Condition "i < n", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:2138:5: data_index: Passing tainted variable "line[i]" to a tainted data index sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:739: cond_true: Condition "true", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:741: tainted_data_argument: Calling function "fgets" taints argument "resbuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:742: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:743: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:745: cond_true: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:747: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:745: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:745: cond_false: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:747: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:748: cond_false: Condition "v == resbuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:750: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:751: tainted_data_transitive: Call to function "strchr" with tainted argument "resbuf" returns tainted data. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:751: var_assign: Assigning: "v" = "strchr", which taints "v". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:752: cond_false: Condition "!v", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:753: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:755: cond_true: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:756: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:755: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:755: cond_false: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:756: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:757: tainted_data_transitive: Call to function "gf_strdup" with tainted argument "v" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: tainted_data_transitive: Calling function "memcpy" with tainted argument "src" taints "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_tainted_data: Returning tainted variable "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:757: var_assign: Assigning: "v" = "gf_strdup", which taints "v". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:758: cond_false: Condition "!v", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:759: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:760: cond_true: Condition "dict_set_dynstr(dict, resbuf, v) != 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:761: tainted_data: Passing tainted variable "v" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:798: cond_true: Condition "true", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:800: tainted_data_argument: Calling function "fgets" taints argument "resbuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:801: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:802: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: cond_true: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:807: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: cond_false: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:807: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:808: cond_false: Condition "v == resbuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:810: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:812: cond_false: Condition "!v", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:813: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:815: cond_true: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:816: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:815: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:815: cond_false: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:816: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:818: cond_false: Condition "!v", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:819: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:821: tainted_data_transitive: Call to function "gf_strdup" with tainted argument "resbuf" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: tainted_data_transitive: Calling function "memcpy" with tainted argument "src" taints "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_tainted_data: Returning tainted variable "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:821: var_assign: Assigning: "k" = "gf_strdup", which taints "k". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:822: cond_false: Condition "!k", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:825: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:827: cond_true: Condition "strcmp(k, "worker_status") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:831: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:884: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:886: tainted_data: Passing tainted variable "k" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:798: cond_true: Condition "true", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:800: tainted_data_argument: Calling function "fgets" taints argument "resbuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:801: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:802: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: cond_true: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:807: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: cond_false: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:807: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:808: cond_false: Condition "v == resbuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:810: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:811: tainted_data_transitive: Call to function "strchr" with tainted argument "resbuf" returns tainted data. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:811: var_assign: Assigning: "v" = "strchr", which taints "v". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:812: cond_false: Condition "!v", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:813: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:815: cond_true: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:816: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:815: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:815: cond_false: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:816: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:817: tainted_data_transitive: Call to function "gf_strdup" with tainted argument "v" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: tainted_data_transitive: Calling function "memcpy" with tainted argument "src" taints "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_tainted_data: Returning tainted variable "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:817: var_assign: Assigning: "v" = "gf_strdup", which taints "v". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:818: cond_false: Condition "!v", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:819: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:822: cond_true: Condition "!k", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:823: tainted_data: Passing tainted variable "v" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:798: cond_true: Condition "true", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:800: tainted_data_argument: Calling function "fgets" taints argument "resbuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:801: cond_false: Condition "!ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:802: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: cond_true: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:807: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:805: cond_false: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:807: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:808: cond_false: Condition "v == resbuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:810: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:811: tainted_data_transitive: Call to function "strchr" with tainted argument "resbuf" returns tainted data. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:811: var_assign: Assigning: "v" = "strchr", which taints "v". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:812: cond_false: Condition "!v", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:813: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:815: cond_true: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:816: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:815: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:815: cond_false: Condition "*__ctype_b_loc()[(int)*v] & 8192 /* (unsigned short)_ISspace */", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:816: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:817: tainted_data_transitive: Call to function "gf_strdup" with tainted argument "v" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: tainted_data_transitive: Calling function "memcpy" with tainted argument "src" taints "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_tainted_data: Returning tainted variable "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:817: var_assign: Assigning: "v" = "gf_strdup", which taints "v". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:818: cond_false: Condition "!v", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:819: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:822: cond_false: Condition "!k", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:825: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:827: cond_true: Condition "strcmp(k, "worker_status") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:831: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:884: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-geo-rep.c:885: tainted_data: Passing tainted variable "v" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:529: cond_true: Condition "!brick_path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:530: cond_true: Condition "!throughput", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:531: cond_true: Condition "!time", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:532: cond_false: Condition "!(blk_size > 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:532: cond_false: Condition "!(blk_count > 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:533: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:538: cond_false: Condition "-1 == fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:542: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:545: cond_false: Condition "!buf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:549: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:552: cond_false: Condition "-1 == input_fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:556: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:559: cond_false: Condition "-1 == output_fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:563: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:565: cond_true: Condition "iter < blk_count", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:566: tainted_data_argument: Calling function "sys_read" taints argument "buf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:309:9: tainted_data_argument: Calling function "read" taints parameter "*buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:567: cond_true: Condition "ret != blk_size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:569: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:618: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:619: cond_true: Condition "fd >= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:621: cond_true: Condition "input_fd >= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:623: cond_true: Condition "output_fd >= 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:625: tainted_data: Passing tainted variable "buf" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:529: cond_true: Condition "!brick_path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:530: cond_true: Condition "!throughput", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:531: cond_true: Condition "!time", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:532: cond_false: Condition "!(blk_size > 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:532: cond_false: Condition "!(blk_count > 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:533: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:538: cond_false: Condition "-1 == fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:542: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:545: cond_false: Condition "!buf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:549: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:552: cond_false: Condition "-1 == input_fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:556: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:559: cond_false: Condition "-1 == output_fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:563: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:565: cond_true: Condition "iter < blk_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:567: cond_false: Condition "ret != blk_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:570: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:572: cond_false: Condition "ret != blk_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:575: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:576: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:565: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:565: cond_true: Condition "iter < blk_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:567: cond_false: Condition "ret != blk_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:570: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:572: cond_false: Condition "ret != blk_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:575: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:576: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:565: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:565: cond_false: Condition "iter < blk_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:576: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:579: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:582: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:584: cond_false: Condition "ret != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:589: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:591: cond_true: Condition "iter < blk_count", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:592: tainted_data_argument: Calling function "sys_read" taints argument "buf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:309:9: tainted_data_argument: Calling function "read" taints parameter "*buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:593: cond_false: Condition "ret != blk_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:596: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:598: cond_false: Condition "ret != blk_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:601: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:603: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:591: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:591: cond_false: Condition "iter < blk_count", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:603: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:605: cond_true: Condition "total_blks != (uint64_t)blk_size * blk_count", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:607: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:607: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:608: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:618: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:619: cond_true: Condition "fd >= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:621: cond_true: Condition "input_fd >= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:623: cond_true: Condition "output_fd >= 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:625: tainted_data: Passing tainted variable "buf" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:446: cond_true: Condition "!brick_path", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:447: cond_true: Condition "!throughput", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:448: cond_true: Condition "!time", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:449: cond_false: Condition "!(blk_size > 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:449: cond_false: Condition "!(blk_count > 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:450: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:456: cond_false: Condition "-1 == fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:460: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:463: cond_false: Condition "!buf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:466: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:469: cond_false: Condition "-1 == input_fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:473: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:476: cond_true: Condition "iter < blk_count", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:477: tainted_data_argument: Calling function "sys_read" taints argument "buf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:309:9: tainted_data_argument: Calling function "read" taints parameter "*buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:478: cond_true: Condition "ret != blk_size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:480: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:503: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:504: cond_true: Condition "fd >= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:506: cond_true: Condition "input_fd >= 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:508: tainted_data: Passing tainted variable "buf" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:640: cond_false: Condition "!vec", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:641: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:643: cond_true: Condition "i < 4", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:645: cond_false: Condition "!buff", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:646: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:649: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:643: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:643: cond_true: Condition "i < 4", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:645: cond_false: Condition "!buff", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:646: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:649: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:643: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:643: cond_false: Condition "i < 4", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:649: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:656: cond_false: Condition "!spath", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:656: cond_false: Condition "!dpath", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:657: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:661: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:662: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:665: cond_false: Condition "fd1 < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:668: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:670: cond_false: Condition "fd2 < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:673: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:675: cond_true: Condition "1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:676: tainted_data_argument: Calling function "sys_readv" taints argument "vec". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:295:9: tainted_data_argument: Calling function "readv" taints parameter "*iov". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:677: cond_false: Condition "bytes < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:682: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:683: cond_false: Condition "!bytes", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:684: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/bd/src/bd-helper.c:685: tainted_data: Passing tainted variable "vec" to a tainted sink. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:302:9: data_index: Passing tainted variable "iov" to a tainted data index sink. Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:353: cond_false: Condition "posix_xattr_ignorable(key)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:354: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:356: cond_true: Condition "!strcmp(key, "glusterfs.content")", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:356: cond_true: Condition "filler->stbuf->ia_type == IA_IFREG", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:358: cond_false: Condition "!filler->real_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:359: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:363: cond_true: Condition "req_size >= filler->stbuf->ia_size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:365: cond_false: Condition "_fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:371: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:385: cond_false: Condition "!databuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:387: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:389: tainted_data_argument: Calling function "sys_read" taints argument "databuf". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:309:9: tainted_data_argument: Calling function "read" taints parameter "*buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:390: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:396: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:400: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:405: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:421: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:422: cond_false: Condition "_fd != -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:423: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:424: tainted_data: Passing tainted variable "databuf" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:937: cond_false: Condition "__len <= 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:937: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:937: cond_false: Condition "__len <= 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:937: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:938: cond_false: Condition "!real_path", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:945: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:948: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:953: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:957: cond_false: Condition "file_fd == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:962: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:966: cond_false: Condition "!*contents", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:969: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:971: tainted_data_argument: Calling function "sys_read" taints argument "*contents". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:309:9: tainted_data_argument: Calling function "read" taints parameter "*buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:972: cond_true: Condition "ret <= 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:976: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:990: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:991: cond_true: Condition "op_ret < 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:992: tainted_data: Passing tainted variable "*contents" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:445: cond_false: Condition "cmd == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:447: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:451: cond_false: Condition "result == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:454: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: cond_true: Condition "(character = fgetc(srcfp)) != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:457: cond_true: Condition "character == 96", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:457: cond_true: Condition "!escaped", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:458: cond_false: Condition "in_backtick", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:469: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:474: cond_true: Condition "!in_backtick", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:475: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:497: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:499: cond_false: Condition "character == 92", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:501: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:505: cond_false: Condition "character == 10", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:508: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:511: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: cond_true: Condition "(character = fgetc(srcfp)) != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:457: cond_false: Condition "character == 96", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:475: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:476: cond_true: Condition "in_backtick", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:477: cond_false: Condition "i == cmd_buf_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:491: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:494: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:496: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:499: cond_true: Condition "character == 92", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:500: cond_true: Condition "!escaped", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:501: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:503: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:505: cond_false: Condition "character == 10", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:508: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:511: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: cond_true: Condition "(character = fgetc(srcfp)) != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:457: cond_true: Condition "character == 96", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:457: cond_false: Condition "!escaped", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:475: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:476: cond_true: Condition "in_backtick", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:477: cond_false: Condition "i == cmd_buf_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:491: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:494: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:496: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:499: cond_false: Condition "character == 92", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:501: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:505: cond_false: Condition "character == 10", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:508: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:511: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: cond_true: Condition "(character = fgetc(srcfp)) != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:457: cond_false: Condition "character == 96", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:475: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:476: cond_true: Condition "in_backtick", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:477: cond_true: Condition "i == cmd_buf_size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:480: cond_false: Condition "cmd == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:483: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:487: cond_false: Condition "result == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:490: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:494: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:496: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:499: cond_true: Condition "character == 92", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:500: cond_true: Condition "!escaped", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:501: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:503: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:505: cond_false: Condition "character == 10", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:508: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:511: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: loop_begin: Jumped back to beginning of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: tainted_data_return: Function "fgetc" returns tainted data. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: var_assign: Assigning: "character" = "fgetc", which taints "character". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: cond_true: Condition "(character = fgetc(srcfp)) != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:457: cond_false: Condition "character == 96", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:475: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:476: cond_true: Condition "in_backtick", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:477: cond_true: Condition "i == cmd_buf_size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:480: cond_false: Condition "cmd == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:483: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:487: cond_false: Condition "result == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:490: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:493: var_assign_var: Assigning: "cmd[i++]" = "character". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:494: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:496: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:499: cond_false: Condition "character == 92", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:501: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:505: cond_false: Condition "character == 10", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:508: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:511: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:456: cond_true: Condition "(character = fgetc(srcfp)) != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:457: cond_true: Condition "character == 96", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:457: cond_true: Condition "!escaped", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:458: cond_true: Condition "in_backtick", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:464: cond_true: Condition "ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:466: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:520: label: Reached label "out". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/graph.y:524: tainted_data: Passing tainted variable "cmd" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:547: cond_false: Condition "!(fd >= 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:547: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:548: cond_false: Condition "!query_record", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:548: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:552: tainted_data_argument: Calling function "sys_read" taints argument "buffer_len". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:309:9: tainted_data_argument: Calling function "read" taints parameter "*buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:553: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:560: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:560: cond_false: Condition "ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:563: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:567: cond_false: Condition "!buffer", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:572: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:576: var_assign_var: Assigning: "read_len" = "buffer_len". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:578: tainted_data: Using tainted variable "read_len" as a loop boundary. Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:547: cond_false: Condition "!(fd >= 0)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:547: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:548: cond_false: Condition "!query_record", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:548: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:552: tainted_data_argument: Calling function "sys_read" taints argument "buffer_len". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:309:9: tainted_data_argument: Calling function "read" taints parameter "*buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:553: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:560: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:560: cond_false: Condition "ret == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:563: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store_helper.c:566: tainted_data: Passing tainted variable "buffer_len" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:109:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:110:17: tainted_data_sink_lv_call: Passing tainted variable "size" to tainted data sink "__gf_default_calloc". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:120:9: tainted_data_sink_lv_call: Passing tainted variable "size" to tainted data sink "calloc". Error: TAINTED_SCALAR: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2407: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2410: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2414: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2415: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2420: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2421: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:2423: tainted_data: Passing tainted variable "argv" to a tainted sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1863:9: cond_true: Condition "sys_access("/var/lib/glusterd/secure-access", 0) == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1868:9: cond_false: Condition "cmd_args->print_netgroups", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1874:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1876:9: cond_false: Condition "cmd_args->print_exports", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1882:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1887:9: cond_true: Condition "1 == cmd_args->debug_mode", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1893:9: data_index: Passing tainted variable "argv[0]" to a tainted data index sink. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1432:9: tainted_data_transitive: Call to function "gf_strdup" with tainted argument "exec_name" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:189:9: cond_false: Condition "!dup_str", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:190:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:192:9: tainted_data_transitive: Calling function "memcpy" with tainted argument "src" taints "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.h:194:9: return_tainted_data: Returning tainted variable "dup_str". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1432:9: var_assign_alias: Assigning: "dup_execname" = "gf_strdup(exec_name)". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1435:9: cond_true: Condition "!strncmp(base, "glusterfsd", 10)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1437:9: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1441:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1443:9: data_index: Passing tainted variable "dup_execname" to a tainted data index sink. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_false: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:298:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:300:9: cond_false: Condition "!free_ptr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:301:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:303:9: var_assign_alias: Assigning: "ptr" = "free_ptr - 64UL". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:304:9: var_assign_alias: Assigning: "header" = "(struct mem_header *)ptr". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:307:9: cond_true: Condition "!(3405691582U == header->magic)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:310:9: cond_false: Condition "!mem_acct", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:312:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:315:9: data_index: Using tainted variable "header->size" as an index to pointer "free_ptr". Error: TAINTED_STRING: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:560: tainted_data_transitive: Call to function "parse_and_validate_args" with tainted argument "argv" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:518:9: cond_false: Condition "argc != 4", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:522:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:524:9: var_assign_alias: Assigning: "basedir" = "argv[1]". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:526:9: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:529:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:534:9: cond_false: Condition "ret != 16", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:537:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:542:9: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:545:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:549:9: cond_true: Condition "workers <= 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:552:9: return_tainted_data: Returning tainted variable "basedir". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:560: var_assign: Assigning: "basedir" = "parse_and_validate_args(argc, argv)", which taints "basedir". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:561: cond_false: Condition "!basedir", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:562: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:564: tainted_string: Passing tainted string "basedir" to "xfind", which cannot accept tainted data. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/tools/gfind_missing_files/gcrawler.c:480:9: tainted_string_sink_content_lv_call: Passing tainted string "basedir" to "chdir", which depends on its content. Error: TAINTED_STRING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1210: cond_false: Condition "progname == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1213: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1215: cond_true: Condition "(ch = getopt_long(argc, argv, "hVo:uzq", long_opts, NULL)) != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1217: switch: Switch case value "111". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1226: switch_case: Reached case "111". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1228: break: Breaking from switch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1244: switch_end: Reached end of switch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1245: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1215: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1215: cond_false: Condition "(ch = getopt_long(argc, argv, "hVo:uzq", long_opts, NULL)) != -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1245: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1247: cond_true: Condition "lazy", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1247: cond_false: Condition "!unmount", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1250: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1252: cond_false: Condition "optind >= argc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1255: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1255: cond_false: Condition "argc > optind + 1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1259: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1261: var_assign_var: Assigning: "origmnt" = "argv[optind]". Both are now tainted. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1264: tainted_data_transitive: Call to function "fuse_mnt_resolve_path" with tainted argument "origmnt" returns tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:157:9: cond_false: Condition "!orig[0]", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:160:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:162:9: tainted_data_transitive: Calling function "strdup" with tainted argument "orig" results in tainted data. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:162:9: var_assign: Assigning: "copy" = "strdup(orig)", which taints "copy". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:163:9: cond_false: Condition "copy == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:166:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:168:9: var_assign_alias: Assigning: "toresolv" = "copy". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:170:9: cond_true: Condition "end > copy", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:170:9: cond_true: Condition "*end == '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:170:80: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:170:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:170:9: cond_true: Condition "end > copy", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:170:9: cond_false: Condition "*end == '/'", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:170:80: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:171:9: cond_true: Condition "end[0] != '/'", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:175:17: cond_true: Condition "tmp == NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:176:25: var_assign_alias: Assigning: "lastcomp" = "copy". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:178:17: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:182:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:183:17: cond_true: Condition "strcmp(lastcomp, ".") == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:185:25: var_assign_alias: Assigning: "toresolv" = "copy". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:186:17: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:188:25: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:190:9: tainted_data_transitive: Calling function "realpath" with tainted argument "*toresolv" taints "buf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:190:9: cond_false: Condition "realpath(toresolv, buf) == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:195:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:196:9: cond_true: Condition "lastcomp == NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:197:17: tainted_data_transitive: Calling function "strdup" with tainted argument "buf" results in tainted data. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:197:17: var_assign: Assigning: "dst" = "strdup(buf)", which taints "dst". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:197:17: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:207:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:208:9: cond_true: Condition "copy != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:209:9: cond_false: Condition "dst == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:210:17: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-lib/mount-common.c:211:9: return_tainted_data: Returning tainted variable "dst". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1264: var_assign: Assigning: "mnt" = "fuse_mnt_resolve_path(progname, origmnt)", which taints "mnt". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1265: cond_true: Condition "mnt != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1267: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1270: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1273: cond_false: Condition "mnt == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1274: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1277: cond_true: Condition "unmount", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1278: cond_true: Condition "geteuid() == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:1279: tainted_string: Passing tainted string "mnt" to "unmount_fuse", which cannot accept tainted data. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:446:2: tainted_string_sink_content_lv_call: Passing tainted string "mnt" to "unmount_fuse_locked", which depends on its content. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:413:2: cond_true: Condition "getuid() != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:415:3: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:416:4: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:419:2: tainted_data_transitive: Call to function "strdup" with tainted argument "mnt" returns tainted data. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:419:2: var_assign_var: Assigning: "copy" = "strdup(mnt)". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:420:2: cond_false: Condition "copy == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:423:2: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:425:2: tainted_string_sink_content_lv_call: Passing tainted string "copy" to "chdir_to_parent", which depends on its content. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:368:2: cond_false: Condition "tmp == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:368:2: cond_false: Condition "tmp[1] == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:372:2: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:373:2: cond_true: Condition "tmp != copy", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:375:3: var_assign_parm: Assigning: "parent" = "copy", which taints "parent". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:377:2: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:383:2: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:385:2: tainted_string_sink_content_lv_call: Passing tainted string "parent" to "chdir", which depends on its content. Error: TAINTED_STRING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:122: cond_false: Condition "restricted", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:150: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:152: cond_false: Condition "chdir("/") == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:153: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:156: tainted_string_return_content: "getenv" returns tainted string content. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:156: var_assign: Assigning: "python" = "getenv("PYTHON")", which taints "python". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:157: cond_false: Condition "!python", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:158: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:159: var_assign_var: Assigning: "nargv[j++]" = "python". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161: cond_true: Condition "i < argc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:162: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161: cond_true: Condition "i < argc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:162: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161: cond_true: Condition "i < argc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:162: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161: cond_false: Condition "i < argc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:162: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:163: cond_true: Condition "config_file[0]", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:169: tainted_string: Passing tainted string "python" to "execvp", which cannot accept tainted data. Error: TAINTED_STRING: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:365: cond_false: Condition "!ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:366: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:368: cond_false: Condition "glusterfs_globals_init(ctx)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:369: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:373: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:376: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:380: cond_true: Condition "evas", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:380: cond_true: Condition "strcmp(evas, "1") == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:384: if_fallthrough: Falling through to end of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:404: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:406: cond_false: Condition "sargv", taking false branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:407: tainted_string: Passing tainted string "argv" to "invoke_gsyncd", which cannot accept tainted data. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:122:9: cond_false: Condition "restricted", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:150:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:152:9: cond_false: Condition "chdir("/") == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:153:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:157:9: cond_true: Condition "!python", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161:9: cond_true: Condition "i < argc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:162:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161:9: cond_true: Condition "i < argc", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:162:17: var_assign_var: Assigning: "nargv[j++]" = "argv[i]". Both are now tainted. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:162:17: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:161:9: cond_false: Condition "i < argc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:162:17: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:163:9: cond_true: Condition "config_file[0]", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/gsyncd.c:169:9: tainted_string_sink_content_lv_call: Passing tainted string "nargv" to "execvp", which depends on its content. Error: TOCTOU: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:900: fs_check_call: Calling function "lstat" to perform check on "mnt". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:901: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:905: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:908: cond_false: Condition "getuid() == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:909: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:911: cond_true: Condition "(stbuf->st_mode & 61440) == 16384", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:912: toctou: Calling function "chdir" that uses "mnt" after a check function. This can cause a time-of-check, time-of-use race condition. Error: TOCTOU: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:900: fs_check_call: Calling function "lstat" to perform check on "mnt". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:901: cond_false: Condition "res == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:905: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:908: cond_false: Condition "getuid() == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:909: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:911: cond_false: Condition "(stbuf->st_mode & 61440) == 16384", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:940: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:940: cond_true: Condition "(stbuf->st_mode & 61440) == 32768", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/contrib/fuse-util/fusermount.c:942: toctou: Calling function "open" that uses "mnt" after a check function. This can cause a time-of-check, time-of-use race condition. Error: UNINTENDED_INTEGER_DIVISION: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:1940: integer_division: Dividing integer expressions "4294967295UL" and "bricks_to_use", and then converting the integer quotient to type "double". Any remainder, or fractional part of the quotient, is ignored. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-selfheal.c:1940: remediation: To compute and use a non-integer quotient, change or cast either operand to type "double". If integer division is intended, consider indicating that by casting the result to type "unsigned long" . Error: UNREACHABLE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:712: unreachable: This code cannot be reached: "*__errno_location() = 38;". Error: UNREACHABLE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:663: unreachable: This code cannot be reached: "if (mode) { *__errno_loca...". Error: UNREACHABLE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heald.c:382: continue_in_do_while_false: A continue statement within a do-while loop only continues execution of the loop body if the loop continuation condition is still true. Since the condition will never be true in a "do ... while (false);" loop the continue statement has the same effect as a break statement. Did you intend execution to continue at the top of the loop? /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heald.c:382: do_while_false_condition: This loop will never continue since the condition "0" is never true. Error: UNREACHABLE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rename.c:429: unreachable: Since the loop increment "j++;" is unreachable, the loop body will never execute more than once. Error: UNREACHABLE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker.c:1588: unreachable: This code cannot be reached: "STACK_DESTROY(local->lk_fra...". Error: UNREACHABLE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:855: unreachable: This code cannot be reached: "key = keyp + 15;". Error: UNREACHABLE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c:2756: unreachable: This code cannot be reached: "up_count = volinfo->dist_le...". Error: UNREACHABLE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd.c:1106: unreachable: This code cannot be reached: "argp_failure(state, -1, 0, ...". Error: UNREACHABLE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heald.c:338: continue_in_do_while_false: A continue statement within a do-while loop only continues execution of the loop body if the loop continuation condition is still true. Since the condition will never be true in a "do ... while (false);" loop the continue statement has the same effect as a break statement. Did you intend execution to continue at the top of the loop? /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heald.c:338: do_while_false_condition: This loop will never continue since the condition "0" is never true. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:665: value_overwrite: Overwriting previous write to "ret" with value from "epoll_wait(event_pool->fd, &event, 1, -1)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:675: returned_value: Assigning value from "event_dispatch_epoll_handler(event_pool, &event)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:3928: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_bin(xattr, "system.posix_acl_access", acl_xattr, acl_size)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:3966: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_bin(xattr, "system.posix_acl_default", acl_xattr, acl_size)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:3887: returned_value: Assigning value from "posix_set_iatt_in_dict(xattr, &stbuf)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2045: value_overwrite: Overwriting previous write to "ret" with value from "cli_xml_output_vol_top_rw_perf(writer, dict, i, j)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2048: value_overwrite: Overwriting previous write to "ret" with value from "cli_xml_output_vol_top_other(writer, dict, i, j)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2057: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterEndElement(writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2030: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"timeTaken", "%f", time_taken)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4883: value_overwrite: Overwriting previous write to "ret" with value "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4887: value_overwrite: Overwriting previous write to "ret" with value from "graph_set_generic_options(this, &graph, set_dict, "rebalance-daemon")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4878: returned_value: Assigning value from "volume_volgen_graph_build_clusters(&graph, volinfo, _gf_false)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4883: value_overwrite: Overwriting previous write to "ret" with value "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4887: value_overwrite: Overwriting previous write to "ret" with value from "graph_set_generic_options(this, &graph, set_dict, "rebalance-daemon")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volgen.c:4875: returned_value: Assigning value from "volume_volgen_graph_build_clusters_tier(&graph, volinfo, _gf_false)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:1163: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:1076: returned_value: Assigning value from "cluster_mkdir(ec->xl_list, enoent, ec->nodes, replies, output, frame, ec->xl, &loc, st_mode_from_ia(ia->ia_prot, ia->ia_type), 0U, xdata)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:964: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:947: returned_value: Assigning value from "cluster_rmdir(ec->xl_list, same, ec->nodes, replies, output, frame, ec->xl, &loc, 1, NULL)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:964: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/ec/src/ec-heal.c:950: returned_value: Assigning value from "cluster_unlink(ec->xl_list, same, ec->nodes, replies, output, frame, ec->xl, &loc, 0, NULL)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1292: value_overwrite: Overwriting previous write to "ret" with value from "glfs_readdirplus_r(glfd, &statbuf, &de, &dirents)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1295: value_overwrite: Overwriting previous write to "ret" with value from "glfs_readdir_r(glfd, &de, &dirents)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1339: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1485: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1490: value_overwrite: Overwriting previous write to "ret" with value from "args.op_ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1477: returned_value: Assigning value from "gd_syncop_mgmt_commit_op(peerinfo, &args, __glusterd_uuid(), tmp_uuid, op, req_dict, op_ctx)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1354: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1369: value_overwrite: Overwriting previous write to "ret" with value from "args.op_ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1346: returned_value: Assigning value from "gd_syncop_mgmt_stage_op(peerinfo, &args, __glusterd_uuid(), tmp_uuid, op, req_dict, op_ctx)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1597: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1603: value_overwrite: Overwriting previous write to "ret" with value from "args.op_ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-syncop.c:1565: returned_value: Assigning value from "dict_get_int32(op_ctx, "hold_global_locks", &global)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2402: value_overwrite: Overwriting previous write to "ret" with value from "default_notify(this, event, data)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/trash/src/trash.c:2398: returned_value: Assigning value from "create_internalop_directory(this)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:8323: value_overwrite: Overwriting previous write to "ret" with value from "glusterd_snapshot_resume_tier(this, dict)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-snapshot.c:8320: returned_value: Assigning value from "glusterd_handle_snap_limit(dict, rsp_dict)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:1853: value_overwrite: Overwriting previous write to "ret" with value from "(rename_fail == _gf_true) ? -1 : 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:1829: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:1967: value_overwrite: Overwriting previous write to "ret" with value from "(rename_fail == _gf_true) ? -1 : 0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:1896: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:360: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterEndElement(writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:342: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"rdma", "%d", rdma_port)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:360: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterEndElement(writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:346: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"rdma", "%s", "N/A")" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:360: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterEndElement(writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:355: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"rdma", "%s", "N/A")" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:328: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterStartElement(writer, (xmlChar *)"ports")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:320: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"port", "%d", port)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:328: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterStartElement(writer, (xmlChar *)"ports")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:324: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"port", "%s", "N/A")" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:342: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"rdma", "%d", rdma_port)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:346: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"rdma", "%s", "N/A")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:332: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"tcp", "%d", port)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:342: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"rdma", "%d", rdma_port)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:346: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"rdma", "%s", "N/A")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:336: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"tcp", "%s", "N/A")" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:410: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, key, &device)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:404: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"sizeFree", "%lu", size_free)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:435: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, key, &fs_name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:429: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"mntOptions", "%s", mnt_options)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:443: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, key, &inode_size)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:437: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"fsName", "%s", fs_name)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:418: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &block_size)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:412: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"device", "%s", device)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:459: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &inodes_free)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:453: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"inodesTotal", "%lu", inodes_total)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:451: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &inodes_total)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:445: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"inodeSize", "%s", fs_name)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:402: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &size_free)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:396: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(writer, (xmlChar *)"sizeTotal", "%lu", size_total)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-sm.c:1396: value_overwrite: Overwriting previous write to "ret" with value from "(*handler)(event, event->ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-sm.c:1477: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-sm.c:1465: returned_value: Assigning value from "glusterd_store_peerinfo(peerinfo)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2237: value_overwrite: Overwriting previous write to "ret" with value from "glusterd_op_sm_inject_event(event_type, txn_id, ev_ctx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2219: returned_value: Assigning value from "dict_get_bin(req_ctx->dict, "transaction_id", (void **)&txn_id)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1456: value_overwrite: Overwriting previous write to "ret" with value from "glusterd_set_txn_opinfo(txn_id, &opinfo)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1425: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:645: value_overwrite: Overwriting previous write to "ret" with value from "glusterd_xfer_cli_deprobe_resp(ctx->req, op_ret, op_errno, NULL, ctx->hostname, ctx->dict)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:613: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1273: value_overwrite: Overwriting previous write to "ret" with value from "glusterd_set_txn_opinfo(txn_id, &opinfo)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:1265: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2344: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2361: value_overwrite: Overwriting previous write to "ret" with value "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2368: value_overwrite: Overwriting previous write to "ret" with value from "glusterd_submit_request(rpc, req, dummy_frame, priv->gfs_mgmt, req->op, NULL, this, glusterd_brick_op_cbk, (xdrproc_t)xdr_gd1_mgmt_brick_op_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c:2316: returned_value: Assigning value from "glusterd_node_op_build_payload(req_ctx->op, (gd1_mgmt_brick_op_req **)&req, req_ctx->dict)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2920: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, key, &brick)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2958: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterEndElement(local->writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:2907: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(local->writer, (xmlChar *)"numberOfBricks", "%d x %d = %d", value[HOT_BRICK_COUNT] / hot_dist_count, hot_dist_count, value[HOT_BRICK_COUNT])" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3032: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, key, &brick)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3083: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterEndElement(local->writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3006: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(local->writer, (xmlChar *)"numberOfBricks", " %d x (%d + %d) = %d", value[COLD_BRICK_COUNT] / value[COLD_DIST_COUNT], value[COLD_DISPERSE_COUNT] - value[COLD_REDUNDANCY_COUNT], value[COLD_REDUNDANCY_COUNT], value[COLD_BRICK_COUNT])" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3032: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, key, &brick)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3083: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterEndElement(local->writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:3017: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(local->writer, (xmlChar *)"numberOfBricks", "%d x %d = %d", value[COLD_BRICK_COUNT] / value[COLD_DIST_COUNT], value[COLD_DIST_COUNT], value[COLD_BRICK_COUNT])" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4503: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterEndElement(writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-xml-output.c:4495: returned_value: Assigning value from "cli_xml_output_vol_gsync_status(dict, writer)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:3228: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:3226: returned_value: Assigning value from "glusterd_svcs_reconfigure()" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:646: value_overwrite: Overwriting previous write to "ret" with value from "dict_allocate_and_serialize(dict, &brick_req->input.input_val, &brick_req->input.input_len)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:597: returned_value: Assigning value from "dict_set_int32(dict, "xl-op", heal_op)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:646: value_overwrite: Overwriting previous write to "ret" with value from "dict_allocate_and_serialize(dict, &brick_req->input.input_val, &brick_req->input.input_len)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:623: returned_value: Assigning value from "glusterd_volinfo_find(volname, &volinfo)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:275: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_int32(dict, "glusterfs.entrylk-count", count)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:269: returned_value: Assigning value from "dict_get_int32(dict, "glusterfs.entrylk-count", &maxcount)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:421: value_overwrite: Overwriting previous write to "ret" with value from "sys_stat(path, &stbuf)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:413: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1847: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:1837: returned_value: Assigning value from "glusterd_event_connected_inject(peerctx)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:2242: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handshake.c:2232: returned_value: Assigning value from "glusterd_event_connected_inject(peerctx)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2827: value_overwrite: Overwriting previous write to "ret" with value from "glusterd_submit_reply(req, &rsp, NULL, 0, NULL, (xdrproc_t)xdr_gd1_mgmt_friend_update_rsp)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2746: returned_value: Assigning value from "glusterd_handle_friend_update_delete(dict)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2196: value_overwrite: Overwriting previous write to "ret" with value from "glusterd_submit_reply(req, &rsp, NULL, 0, NULL, (xdrproc_t)xdr_gf1_cli_fsm_log_rsp)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-handler.c:2193: returned_value: Assigning value from "dict_allocate_and_serialize(dict, &rsp.fsm_log.fsm_log_val, &rsp.fsm_log.fsm_log_len)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2572: value_overwrite: Overwriting previous write to "ret" with value "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-parser.c:2569: returned_value: Assigning value from "dict_set_dynstr(dict, "op_value", append_str)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:11104: value_overwrite: Overwriting previous write to "ret" with value "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:11138: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:11118: returned_value: Assigning value from "cli_to_glusterd(&req, frame, gf_cli_snapshot_cbk, (xdrproc_t)xdr_gf_cli_req, snap_dict, GLUSTER_CLI_SNAP, this, cli_rpc_prog, NULL)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10636: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, "clonename", clone_name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10638: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:10632: returned_value: Assigning value from "dict_get_int8(dict, "soft-limit-reach", soft_limit_flag)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:255: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, key, &uuid_buf)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:297: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:290: returned_value: Assigning value from "gf_cli_output_peer_hostnames(dict, hostname_count, key)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1187: value_overwrite: Overwriting previous write to "ret" with value from "syncop_unlink(from, loc, NULL, NULL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1184: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1417: value_overwrite: Overwriting previous write to "ret" with value from "__dht_rebalance_create_dst_file(to, from, loc, &stbuf, &dst_fd, xattr)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1413: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1730: value_overwrite: Overwriting previous write to "ret" with value from "syncop_fremovexattr(to, dst_fd, conf->link_xattr_name, NULL, NULL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1726: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1707: value_overwrite: Overwriting previous write to "ret" with value from "syncop_fsetattr(from, src_fd, &empty_iatt, 1, NULL, NULL, NULL, NULL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1674: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1707: value_overwrite: Overwriting previous write to "ret" with value from "syncop_fsetattr(from, src_fd, &empty_iatt, 1, NULL, NULL, NULL, NULL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1686: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1501: value_overwrite: Overwriting previous write to "ret" with value from "syncop_fstat(from, src_fd, &new_stbuf, NULL, NULL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1495: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1667: value_overwrite: Overwriting previous write to "ret" with value from "syncop_listxattr(from, loc, &xattr, NULL, NULL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1651: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1748: value_overwrite: Overwriting previous write to "ret" with value from "syncop_stat(from, loc, &empty_iatt, NULL, NULL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1735: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1791: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-rebalance.c:1783: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:2567: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_uint32(local->xattr_req, conf->xattr_name, 16U)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:2631: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_uint32(local->xattr_req, conf->xattr_name, 16U)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/dht/src/dht-common.c:2527: returned_value: Assigning value from "dict_set_uint32(local->xattr_req, conf->commithash_xattr_name, 4U)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:2095: value_overwrite: Overwriting previous write to "ret" with value from "rsp.op_ret". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:1971: returned_value: Assigning value from "dict_get_str(dict, "rebalance-id", &task_id_str)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:3627: value_overwrite: Overwriting previous write to "local->op_ret" with value "117". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:3626: assigned_value: Assigning value "-1" to "local->op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:5698: value_overwrite: Overwriting previous write to "ret" with value "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-common.c:5696: returned_value: Assigning value from "dict_set_str(dict, "replica.split-brain-status", "Failed to obtain replies from all bricks of the replica (are they up?). Cannot resolve split-brain.")" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:3489: value_overwrite: Overwriting previous write to "ret" with value from "print_quota_list_usage_output(local, path, avail, sl_final, limits, used_space, sl, hl, sl_num, limit_set)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:3494: value_overwrite: Overwriting previous write to "ret" with value from "print_quota_list_object_output(local, path, avail, sl_final, limits, used_space, sl, hl, sl_num, limit_set)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:3461: returned_value: Assigning value from "gf_string2percent(default_sl, &sl_num)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:8736: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, key, &path)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:8742: returned_value: Assigning value from "dict_get_uint32(dict, key, &time)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6291: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &profile_info[i].fop_hits)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6324: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &sec)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6283: returned_value: Assigning value from "dict_get_uint64(dict, key, &upcall_info[i].fop_hits)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6283: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &upcall_info[i].fop_hits)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6291: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &profile_info[i].fop_hits)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6324: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &sec)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6277: returned_value: Assigning value from "dict_get_uint64(dict, key, &wb_counts[i])" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6277: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &wb_counts[i])". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6283: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &upcall_info[i].fop_hits)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6291: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &profile_info[i].fop_hits)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6324: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_uint64(dict, key, &sec)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-rpc-ops.c:6270: returned_value: Assigning value from "dict_get_uint64(dict, key, &rb_counts[i])" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:487: value_overwrite: Overwriting previous write to "parent" with value from "inode_parent(cur_inode, pgfid, name)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/quota/src/quota.c:475: assigned_pointer: Assigning value from "local->loc.parent" to "parent" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:708: value_overwrite: Overwriting previous write to "ret" with value from "syncop_readdir(readdir_xl, fd, 131072UL, offset, &entries, NULL, NULL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:749: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:735: returned_value: Assigning value from "glfsh_heal_entries(fs, top_subvol, rootloc, &entries, &offset, num_entries, xattr_req)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker.c:3428: value_overwrite: Overwriting previous write to "ret" with value from "gf_string2boolean(data->data, &flag)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/marker/src/marker.c:3418: returned_value: Assigning value from "gf_string2int32(data->data, &priv->version)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:298: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_int32(dict, "glusterfs.inodelk-count", count)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:292: returned_value: Assigning value from "dict_get_int32(dict, "glusterfs.inodelk-count", &maxcount)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:253: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_int32(dict, "glusterfs.parent-entrylk", entrylk)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:247: returned_value: Assigning value from "dict_get_int32(dict, "glusterfs.parent-entrylk", &maxcount)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:322: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_int32(dict, "glusterfs.posixlk-count", count)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/locks/src/posix.c:316: returned_value: Assigning value from "dict_get_int32(dict, "glusterfs.posixlk-count", &maxcount)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store.c:119: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store.c:113: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store.c:288: value_overwrite: Overwriting previous write to "ret" with value from "delete_conn_node(_conn_node)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store.c:264: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store.c:288: value_overwrite: Overwriting previous write to "ret" with value from "delete_conn_node(_conn_node)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/gfdb/gfdb_data_store.c:275: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:1549: value_overwrite: Overwriting previous write to "ret" with value from "glusterfs_submit_reply(req, &brick_rsp, NULL, 0, NULL, (xdrproc_t)xdr_gd1_mgmt_brick_op_rsp)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:1544: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:388: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_double(dict, "time", time)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:380: returned_value: Assigning value from "glusterfs_volume_top_read_perf(blk_size, blk_count, xlator_req.name, &throughput, &time)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:388: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_double(dict, "time", time)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:384: returned_value: Assigning value from "glusterfs_volume_top_write_perf(blk_size, blk_count, xlator_req.name, &throughput, &time)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:2081: value_overwrite: Overwriting previous write to "ret" with value from "mgmt_submit_request(&req, frame, ctx, &clnt_handshake_prog, GF_HNDSK_EVENT_NOTIFY, glusterfs_rebalance_event_notify_cbk, (xdrproc_t)xdr_gf_event_notify_req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/glusterfsd/src/glusterfsd-mgmt.c:2077: returned_value: Assigning value from "dict_allocate_and_serialize(dict, &req.dict.dict_val, &req.dict.dict_len)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs3.c:3352: value_overwrite: Overwriting previous write to "ret" with value from "nfs3_fh_resolve_and_resume(cs, fh, name, nfs3_mknod_resume)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nfs3.c:3347: assigned_value: Assigning value "-9" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:3094: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_int32(rsp_dict, "count", vol_count)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-op-sm.c:3081: returned_value: Assigning value from "glusterd_add_volume_to_dict(volinfo, rsp_dict, 1, "volume")" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:2812: value_overwrite: Overwriting previous write to "ret" with value from "runner_start(&runner)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/cli/src/cli-cmd-volume.c:2810: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5032: value_overwrite: Overwriting previous write to "op_ret" with value from "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4863: assigned_value: Assigning value "-1" to "op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5032: value_overwrite: Overwriting previous write to "op_ret" with value from "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4880: assigned_value: Assigning value "-1" to "op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5032: value_overwrite: Overwriting previous write to "op_ret" with value from "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4901: assigned_value: Assigning value "-1" to "op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5032: value_overwrite: Overwriting previous write to "op_ret" with value from "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4987: assigned_value: Assigning value "-1" to "op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5032: value_overwrite: Overwriting previous write to "op_ret" with value from "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:5005: assigned_value: Assigning value "-1" to "op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2542: value_overwrite: Overwriting previous write to "ret" with value from "sys_unlink("/var/run/rpc.statd.pid")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2527: returned_value: Assigning value from "runcmd("pkill", "-9", "rpc.statd", NULL)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2542: value_overwrite: Overwriting previous write to "ret" with value from "sys_unlink("/var/run/rpc.statd.pid")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/nlm4.c:2539: returned_value: Assigning value from "runcmd("pkill", "-9", "rpc.statd", NULL)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:279: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix-helpers.c:272: returned_value: Assigning value from "_posix_xattr_get_set_from_backend(filler, key)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:1686: value_overwrite: Overwriting previous write to "ret" with value from "rpc_transport_submit_request(conn->trans, &req)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:1682: returned_value: Assigning value from "rpc_transport_connect(conn->trans, conn->config.remote_port)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4356: value_overwrite: Overwriting previous write to "ret" with value from "gf_store_iter_get_next(iter, &key, &value, &op_errno)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:4344: returned_value: Assigning value from "gd_add_address_to_peer(peerinfo, value)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3287: value_overwrite: Overwriting previous write to "ret" with value from "sys_lstat(entry_path, &st)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3326: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-store.c:3319: returned_value: Assigning value from "glusterd_store_perform_node_state_store(volinfo)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4797: value_overwrite: Overwriting previous write to "op_ret" with value from "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4615: assigned_value: Assigning value "-1" to "op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4797: value_overwrite: Overwriting previous write to "op_ret" with value from "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4627: assigned_value: Assigning value "-1" to "op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4797: value_overwrite: Overwriting previous write to "op_ret" with value from "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4745: assigned_value: Assigning value "-1" to "op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4797: value_overwrite: Overwriting previous write to "op_ret" with value from "size". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:4762: assigned_value: Assigning value "-1" to "op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:9291: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_int32(ctx_dict, "count", node_count + rsp_node_count)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:9281: returned_value: Assigning value from "dict_get_int32(ctx_dict, "brick-index-max", &brick_index_max)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:10303: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-utils.c:10300: returned_value: Assigning value from "dict_set_str(ctx_dict, "remove-brick-id", task_id_str)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:2309: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, "transport", &trans_type)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:2239: returned_value: Assigning value from "dict_get_int32(dict, "arbiter-count", &volinfo->arbiter_count)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:2309: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, "transport", &trans_type)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-volume-ops.c:2267: returned_value: Assigning value from "dict_get_int32(dict, "arbiter-count", &volinfo->arbiter_count)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1338: value_overwrite: Overwriting previous write to "ret" with value from "rpcsvc_transport_submit(trans, &recordhdr, 1, proghdr, hdrcount, payload, payloadcount, iobref, req->trans_private)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc.c:1332: returned_value: Assigning value from "rpcsvc_cache_reply(req, iobref, &recordhdr, 1, proghdr, hdrcount, payload, payloadcount)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4935: value_overwrite: Overwriting previous write to "op_errno" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4930: assigned_value: Assigning value "22" to "op_errno" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:681: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/experimental/jbr-server/src/jbr-cg.c:677: returned_value: Assigning value from "jbr_perform_lk_on_leader(frame, this, fd, cmd, flock, xdata)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-pmap.c:363: value_overwrite: Overwriting previous write to "p" with value from "pmap_registry_search(this, brickname, type, _gf_true)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-pmap.c:369: value_overwrite: Overwriting previous write to "p" with value from "pmap_registry_search_by_xprt(this, xprt, type)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-pmap.c:359: assigned_value: Assigning value from "port" to "p" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-helper.h:296: value_overwrite: Overwriting previous write to "ret" with value "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-helper.h:300: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_int32(*xdata, "gf_request_link_count", 1)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-helper.h:287: assigned_value: Assigning value "1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:206: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterEndDocument(glfsh_writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:203: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(glfsh_writer, (xmlChar *)"opErrstr", "%s", "")" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:206: value_overwrite: Overwriting previous write to "ret" with value from "xmlTextWriterEndDocument(glfsh_writer)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/heal/src/glfs-heal.c:199: returned_value: Assigning value from "xmlTextWriterWriteFormatElement(glfsh_writer, (xmlChar *)"opErrstr", "%s", op_errstr)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc-auth.c:473: value_overwrite: Overwriting previous write to "result" with value from "gf_asprintf(&srchstr, "rpc-auth.%s.%s", auth->name, volname)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc-auth.c:485: assigned_value: Assigning value "1" to "result" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc-auth.c:473: value_overwrite: Overwriting previous write to "result" with value from "gf_asprintf(&srchstr, "rpc-auth.%s.%s", auth->name, volname)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc-auth.c:490: assigned_value: Assigning value "2" to "result" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc-auth.c:473: value_overwrite: Overwriting previous write to "result" with value from "gf_asprintf(&srchstr, "rpc-auth.%s.%s", auth->name, volname)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpcsvc-auth.c:493: assigned_value: Assigning value "3" to "result" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:953: value_overwrite: Overwriting previous write to "gf_dump_strfd" with value "NULL". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/statedump.c:950: assigned_pointer: Assigning value from "strfd" to "gf_dump_strfd" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-self-heald.c:1187: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_str(output, key, "Brick is not connected")". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-self-heald.c:1192: value_overwrite: Overwriting previous write to "ret" with value from "afr_shd_get_index_count(this, i, &cnt)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/cluster/afr/src/afr-self-heald.c:1194: returned_value: Assigning value from "dict_set_uint64(output, key, cnt)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:594: value_overwrite: Overwriting previous write to "ret" with value "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:597: value_overwrite: Overwriting previous write to "ret" with value from "dict_set_int32(bricks_dict, "count", count)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:608: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_str(dict, key, &brick)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:651: value_overwrite: Overwriting previous write to "ret" with value from "dict_get_int32(dict, "replica-count", &replica_count)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-tier.c:499: returned_value: Assigning value from "dict_set_str(rsp_dict, "remove-brick-id", task_id_str)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:283: value_overwrite: Overwriting previous write to "op_errno" with value "12". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:290: value_overwrite: Overwriting previous write to "op_errno" with value from "*__errno_location()". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server-handshake.c:275: assigned_value: Assigning value "2" to "op_errno" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:618: value_overwrite: Overwriting previous write to "ret" with value from "pthread_create(&th_id[iter], NULL, gf_changelog_consume_wrap, curr)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:634: value_overwrite: Overwriting previous write to "ret" with value from "pthread_join(th_id[iter], NULL)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changelog/lib/src/gf-history-changelog.c:624: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3648: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:3646: returned_value: Assigning value from "socket_getpeername(this, peeraddr, addrlen)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-helper.c:241: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/changetimerecorder/src/ctr-helper.c:238: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event.c:268: value_overwrite: Overwriting previous write to "ret" with value from "event_unregister(event_pool, fd[0], idx)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event.c:261: returned_value: Assigning value from "pthread_cond_timedwait(&event_pool->cond, &event_pool->mutex, &sleep_till)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1687: value_overwrite: Overwriting previous write to "ret" with value "-1". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1683: returned_value: Assigning value from "glusterd_store_volinfo(volinfo, GLUSTERD_VOLINFO_VER_AC_INCREMENT)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1699: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c:1693: returned_value: Assigning value from "(*priv->nfs_svc.manager)(&priv->nfs_svc, NULL, 0)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:845: value_overwrite: Overwriting previous write to "ret" with value from "validate_auth_options(kid, options)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:833: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:966: value_overwrite: Overwriting previous write to "ret" with value "0". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-clnt.c:962: returned_value: Assigning value from "(*clnt->notifyfn)(clnt, clnt_mydata, RPC_CLNT_DESTROY, NULL)" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2129: value_overwrite: Overwriting previous write to "op_ret" with value from "posix_pstat(this, loc->pargfid, par_path, &postparent)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/storage/posix/src/posix.c:2126: returned_value: Assigning value from "posix_set_iatt_in_dict(unwind_dict, &postbuf)" to "op_ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/procdiggy.c:110: value_overwrite: Overwriting previous write to "ret" with value from "(*proch)(pid, ppid, name, data)". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/geo-replication/src/procdiggy.c:108: assigned_value: Assigning value "-1" to "ret" here, but that stored value is overwritten before it can be used. Error: UNUSED_VALUE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/events.c:113: value_overwrite: Overwriting previous write to "ret" with value "EVENT_SEND_OK". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/events.c:110: assigned_value: Assigning value "EVENT_ERROR_SEND" to "ret" here, but that stored value is overwritten before it can be used. Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:406: cond_false: Condition "!event_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:406: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:410: cond_true: Condition "slot->fd == fd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:412: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:416: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:421: goto: Jumping to label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:427: label: Reached label "unlock". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:428: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:430: closed_arg: "event_slot_unref(struct event_pool *, struct event_slot_epoll *, int)" closes "slot->fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:216:2: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:219:3: var_assign_parm: Assigning: "fd" = "slot->fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:222:2: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:224:2: cond_false: Condition "ref", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:226:3: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:230:2: cond_true: Condition "do_close", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:231:3: closed_arg: "sys_close" closes parameter "fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:400:9: cond_true: Condition "fd >= 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:401:17: closed_arg: "close" closes parameter "fd". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:431: double_close: Calling "event_slot_unref(struct event_pool *, struct event_slot_epoll *, int)" closes handle "slot->fd" which has already been closed. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:216:2: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:219:3: var_assign_parm: Assigning: "fd" = "slot->fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:222:2: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:224:2: cond_false: Condition "ref", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:226:3: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:230:2: cond_true: Condition "do_close", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/event-epoll.c:231:3: closed_arg: "sys_close" closes parameter "fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:400:9: cond_true: Condition "fd >= 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:401:17: closed_arg: "close" closes parameter "fd". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:919: cond_true: Condition "ret != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:923: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:923: cond_false: Condition "!((st.st_mode & 61440) == 16384)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:930: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:931: cond_false: Condition "st.st_uid != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:931: cond_false: Condition "st.st_mode & (18U /* (0x80 >> 3) | ((0x80 >> 3) >> 3) */)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:939: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:940: cond_true: Condition "!(st.st_mode & (9U /* (0x40 >> 3) | ((0x40 >> 3) >> 3) */))", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:949: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:951: cond_true: Condition "ret != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:955: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:961: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:963: cond_false: Condition "st2.st_ino == st.st_ino", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:964: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:966: cond_false: Condition "st2.st_uid != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:966: cond_true: Condition "st2.st_mode & (18U /* (0x80 >> 3) | ((0x80 >> 3) >> 3) */)", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:966: cond_false: Condition "!(st2.st_mode & 512)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:975: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:976: cond_true: Condition "!(st.st_mode & (9U /* (0x40 >> 3) | ((0x40 >> 3) >> 3) */))", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:986: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:949: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:949: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:951: cond_true: Condition "ret != -1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:952: alias: Assigning: "dfd2" = "ret". Now both are same file descriptor. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:955: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:961: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:963: cond_false: Condition "st2.st_ino == st.st_ino", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:964: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:966: cond_false: Condition "st2.st_uid != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:966: cond_false: Condition "st2.st_mode & (18U /* (0x80 >> 3) | ((0x80 >> 3) >> 3) */)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:975: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:976: cond_true: Condition "!(st.st_mode & (9U /* (0x40 >> 3) | ((0x40 >> 3) >> 3) */))", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:984: alias: Assigning: "dfd" = "dfd2". Now both are same file descriptor. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:986: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:949: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:949: cond_true: Condition "true", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:951: cond_false: Condition "ret != -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:954: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:955: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:960: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1004: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1005: cond_true: Condition "dfd0 != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1007: cond_true: Condition "dfd != -1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1008: closed_arg: "sys_close(int)" closes "dfd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:400:9: cond_true: Condition "fd >= 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:401:17: closed_arg: "close" closes parameter "fd". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1009: cond_true: Condition "dfd2 != -1", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/mgmt/glusterd/src/glusterd.c:1010: double_close: Calling "sys_close(int)" closes handle "dfd2" which has already been closed. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:400:9: cond_true: Condition "fd >= 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/syscall.c:401:17: closed_arg: "close" closes parameter "fd". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:129: cond_false: Condition "!meta_fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:130: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:132: cond_true: Condition "!meta_fd->size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:136: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:137: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:140: cond_false: Condition "!iobref", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:143: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:145: cond_false: Condition "iobref_add(iobref, iobuf) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:149: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:152: freed_arg: "iobuf_unref" frees "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/meta/src/meta-defaults.c:154: deref_after_free: Dereferencing freed pointer "iobuf". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:926: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:926: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:927: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:927: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:928: cond_false: Condition "!fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:928: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:929: cond_false: Condition "!fd->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:929: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:932: cond_false: Condition "!inode_ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:938: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:941: cond_false: Condition "!sfd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:947: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:956: cond_false: Condition "inode_ctx->type == SNAP_VIEW_ENTRY_POINT_INODE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:961: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:963: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:969: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:971: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:973: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:980: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:983: cond_false: Condition "!value", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:991: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:994: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1001: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1006: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1008: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1008: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1012: freed_arg: "__gf_free" frees "value". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1013: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1060: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1061: cond_true: Condition "op_ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1062: double_free: Calling "__gf_free" frees pointer "value" which has already been freed. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:926: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:926: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:927: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:927: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:928: cond_false: Condition "!fd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:928: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:929: cond_false: Condition "!fd->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:929: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:932: cond_false: Condition "!inode_ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:938: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:941: cond_false: Condition "!sfd", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:947: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:956: cond_false: Condition "inode_ctx->type == SNAP_VIEW_ENTRY_POINT_INODE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:961: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:963: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:969: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:971: cond_true: Condition "name", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:973: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:980: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:983: cond_false: Condition "!value", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:991: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:994: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1001: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1006: cond_true: Condition "op_ret < 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1008: cond_false: Condition "0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1008: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1012: freed_arg: "__gf_free" frees "value". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1013: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1060: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1061: cond_true: Condition "op_ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:1062: pass_freed_arg: Passing freed pointer "value" as an argument to "__gf_free". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:805: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:805: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:806: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:806: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:807: cond_false: Condition "!loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:807: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:808: cond_false: Condition "!loc->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:808: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:811: cond_false: Condition "!inode_ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:817: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:825: cond_false: Condition "inode_ctx->type == SNAP_VIEW_ENTRY_POINT_INODE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:830: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "i < _private->num_snaps", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "_private->dirents->fs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "fs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "_private->dirents->fs == fs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_false: Condition "!found", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_false: Condition "!fs", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_false: Condition "!fs", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "!object", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_false: Condition "tmp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:836: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:842: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:845: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:853: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:856: cond_false: Condition "!value", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:863: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:866: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:873: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:876: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:888: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:891: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:896: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:897: freed_arg: "__gf_free" frees "value". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:902: cond_true: Condition "op_ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:903: double_free: Calling "__gf_free" frees pointer "value" which has already been freed. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:805: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:805: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:806: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:806: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:807: cond_false: Condition "!loc", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:807: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:808: cond_false: Condition "!loc->inode", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:808: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:811: cond_false: Condition "!inode_ctx", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:817: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:825: cond_false: Condition "inode_ctx->type == SNAP_VIEW_ENTRY_POINT_INODE", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:830: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "i < _private->num_snaps", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "_private->dirents->fs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "fs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "_private->dirents->fs == fs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: break: Breaking from loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_false: Condition "!found", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_false: Condition "!fs", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_false: Condition "!fs", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_true: Condition "!object", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: cond_false: Condition "tmp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:832: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:836: cond_false: Condition "!dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:842: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:845: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:853: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:856: cond_false: Condition "!value", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:863: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:866: cond_false: Condition "size == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:873: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:876: cond_false: Condition "name", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:888: else_branch: Reached else branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:891: cond_false: Condition "op_ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:896: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:897: freed_arg: "__gf_free" frees "value". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:902: cond_true: Condition "op_ret", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/snapview-server/src/snapview-server.c:903: pass_freed_arg: Passing freed pointer "value" as an argument to "__gf_free". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3443: cond_false: Condition "local->op_ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3447: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3449: cond_false: Condition "local->offset >= local->prebuf.ia_size", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3468: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3475: cond_true: Condition "local->offset + local->total_size == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3483: cond_false: Condition "!local->inode_list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3484: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3487: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3488: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3491: cond_false: Condition "!local->iobref", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3494: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3496: cond_false: Condition "iobref_add(local->iobref, iobuf) != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3499: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3501: freed_arg: "iobuf_unref" frees "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/features/shard/src/shard.c:3502: use_after_free: Using freed pointer "iobuf". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1095: cond_false: Condition "!filepath", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1095: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1098: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1099: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1102: cond_false: Condition "!file", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1106: cond_false: Condition "!file->ng_file_dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1110: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1113: cond_false: Condition "!file->filename", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1117: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1120: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1121: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1124: cond_true: Condition "(read = getline(&line, &len, fp)) != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1125: cond_false: Condition "*line == '#'", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1126: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1130: cond_true: Condition "ret == -12", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1134: freed_arg: "ng_file_deinit" frees "file". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:152:9: cond_false: Condition "!ngfile", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:154:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:157:9: cond_false: Condition "!__deleted_entries", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:157:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:162:9: freed_arg: "__gf_free" frees parameter "ngfile". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1136: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1153: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1154: cond_true: Condition "file", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1155: double_free: Calling "ng_file_deinit" frees pointer "file" which has already been freed. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:152:9: cond_false: Condition "!ngfile", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:154:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:157:9: cond_false: Condition "!__deleted_entries", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:157:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:162:9: freed_arg: "__gf_free" frees parameter "ngfile". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1095: cond_false: Condition "!filepath", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1095: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1098: cond_false: Condition "!fp", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1099: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1102: cond_false: Condition "!file", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1103: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1106: cond_false: Condition "!file->ng_file_dict", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1110: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1113: cond_false: Condition "!file->filename", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1117: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1120: cond_false: Condition "ret < 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1121: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1124: cond_true: Condition "(read = getline(&line, &len, fp)) != -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1125: cond_false: Condition "*line == '#'", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1126: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1130: cond_true: Condition "ret == -12", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1134: freed_arg: "ng_file_deinit" frees "file". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:152:9: cond_false: Condition "!ngfile", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:154:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:157:9: cond_false: Condition "!__deleted_entries", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:157:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:162:9: freed_arg: "__gf_free" frees parameter "ngfile". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1136: goto: Jumping to label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1153: label: Reached label "err". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1154: cond_true: Condition "file", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/nfs/server/src/netgroups.c:1155: pass_freed_arg: Passing freed pointer "file" as an argument to "ng_file_deinit". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3396: cond_true: Condition "header->rm_body.rm_error.rm_type == ERR_VERS", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3408: cond_false: Condition "iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3411: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3414: cond_false: Condition "iobref == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3417: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3420: freed_arg: "iobuf_unref" frees "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3422: deref_after_free: Dereferencing freed pointer "iobuf". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: cond_true: Condition "(readch + i).rc_discrim != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3634: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: cond_true: Condition "(readch + i).rc_discrim != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3634: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: cond_false: Condition "(readch + i).rc_discrim != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3634: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3636: cond_false: Condition "i == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3642: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3647: cond_false: Condition "iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3649: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3651: cond_true: Condition "post->ctx.iobref == NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3653: cond_true: Condition "post->ctx.iobref == NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3654: freed_arg: "iobuf_unref" frees "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3655: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3753: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3754: cond_false: Condition "list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3755: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3756: cond_false: Condition "wr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3757: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3759: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3760: cond_false: Condition "total_ref-- > 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3761: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3763: cond_true: Condition "iobuf != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3764: double_free: Calling "iobuf_unref" frees pointer "iobuf" which has already been freed. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: cond_true: Condition "(readch + i).rc_discrim != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3634: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: cond_true: Condition "(readch + i).rc_discrim != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3634: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: cond_false: Condition "(readch + i).rc_discrim != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3634: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3636: cond_false: Condition "i == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3642: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3647: cond_false: Condition "iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3649: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3651: cond_true: Condition "post->ctx.iobref == NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3653: cond_true: Condition "post->ctx.iobref == NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3654: freed_arg: "iobuf_unref" frees "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3655: goto: Jumping to label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3753: label: Reached label "out". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3754: cond_false: Condition "list", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3755: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3756: cond_false: Condition "wr", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3757: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3759: cond_true: Condition "ret == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3760: cond_false: Condition "total_ref-- > 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3761: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3763: cond_true: Condition "iobuf != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3764: pass_freed_arg: Passing freed pointer "iobuf" as an argument to "iobuf_unref". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: cond_true: Condition "(readch + i).rc_discrim != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3634: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: cond_true: Condition "(readch + i).rc_discrim != 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3634: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3632: cond_false: Condition "(readch + i).rc_discrim != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3634: loop_end: Reached end of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3636: cond_false: Condition "i == 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3642: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3647: cond_false: Condition "iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3649: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3651: cond_true: Condition "post->ctx.iobref == NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3653: cond_false: Condition "post->ctx.iobref == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3656: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3660: freed_arg: "iobuf_unref" frees "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:3662: deref_after_free: Dereferencing freed pointer "iobuf". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4159: cond_true: Condition "1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4162: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4168: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4173: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4180: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4184: cond_true: Condition "!failed", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4184: cond_true: Condition "(num_wr = ibv_poll_cq(event_cq, 10, wc)) > 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4187: cond_true: Condition "index < num_wr", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4187: cond_true: Condition "!failed", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4203: cond_true: Condition "peer != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4209: cond_true: Condition "wc[index].status != IBV_WC_SUCCESS", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4217: cond_true: Condition "peer", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4219: freed_arg: "rpc_transport_unref" frees "peer->trans". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:507:2: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:507:2: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:515:2: cond_true: Condition "refcount == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:516:17: cond_true: Condition "this->mydata", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:521:17: freed_arg: "rpc_transport_destroy" frees parameter "this". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:456:2: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:456:2: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:458:9: cond_true: Condition "this->clnt_options", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:460:9: cond_true: Condition "this->options", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:462:2: cond_true: Condition "this->fini", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:469:9: cond_true: Condition "this->dl_handle", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:472:9: cond_true: Condition "this->ssl_name", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:476:2: freed_arg: "__gf_free" frees parameter "this". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/rdma/src/rdma.c:4220: pass_freed_arg: Passing freed pointer "peer->trans" as an argument to "rpc_transport_disconnect". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1029: switch: Switch case value "GF_FOP_READ". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1108: switch_case: Reached case "GF_FOP_READ". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1114: cond_false: Condition "op_errno", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1117: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1118: cond_true: Condition "!local->fd", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1123: cond_false: Condition "rsp_iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1126: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1128: cond_true: Condition "!*rsp_iobref", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1130: cond_false: Condition "*rsp_iobref == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1133: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1137: freed_arg: "iobuf_unref" frees "rsp_iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1139: cond_false: Condition "*rsp_count + 1 >= 16", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1142: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-helpers.c:1143: deref_after_free: Dereferencing freed pointer "rsp_iobuf". Error: USE_AFTER_FREE: /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:43: alias: Assigning: "client" = "data". Now both point to the same storage. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:46: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:46: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:53: cond_false: Condition "serv_ctx == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:58: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:60: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:62: cond_true: Condition "serv_ctx->grace_timer", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:67: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:68: cond_true: Condition "timer", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:72: cond_true: Condition "cancelled", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:79: freed_arg: "gf_client_put" frees "client". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:292:9: cond_false: Condition "client == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:293:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:295:9: cond_true: Condition "detached", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:299:9: cond_true: Condition "bind_ref == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:306:9: cond_true: Condition "unref", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:307:17: cond_true: Condition "detached", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:309:17: freed_arg: "gf_client_unref" frees parameter "client". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:424:9: cond_false: Condition "!client", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:428:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:434:9: cond_true: Condition "refcount == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:437:17: freed_arg: "client_destroy" frees parameter "client". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:354:9: cond_false: Condition "client == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:358:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:362:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:363:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:365:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:372:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:374:9: cond_true: Condition ">rav->list != &client->this->ctx->graphs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:376:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:374:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:374:9: cond_false: Condition ">rav->list != &client->this->ctx->graphs", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:376:9: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:382:9: freed_arg: "__gf_free" frees parameter "client". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:81: cond_true: Condition "detached", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:82: pass_freed_arg: Passing freed pointer "client" as an argument to "server_connection_cleanup". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5603: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5603: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5603: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5604: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5613: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5616: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5621: cond_true: Condition "readdir_rsp_size + 24 + 228 > 2048", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5624: cond_false: Condition "rsp_iobref == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5626: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5632: cond_false: Condition "rsp_iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5634: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5637: freed_arg: "iobuf_unref" frees "rsp_iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5640: deref_after_free: Dereferencing freed pointer "rsp_iobuf". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5703: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5703: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5703: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5704: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5710: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5713: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5719: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5722: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5727: cond_true: Condition "readdirp_rsp_size + 24 + 228 > 2048", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5731: cond_false: Condition "rsp_iobref == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5733: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5739: cond_false: Condition "rsp_iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5741: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5744: freed_arg: "iobuf_unref" frees "rsp_iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:5747: deref_after_free: Dereferencing freed pointer "rsp_iobuf". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3678: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3678: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3678: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3679: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3686: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3689: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3695: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3698: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3701: cond_false: Condition "rsp_iobref == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3703: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3706: cond_false: Condition "rsp_iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3708: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3711: freed_arg: "iobuf_unref" frees "rsp_iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3713: deref_after_free: Dereferencing freed pointer "rsp_iobuf". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4251: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4251: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4251: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4252: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4259: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4262: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4265: cond_false: Condition "ret", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4268: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4272: cond_false: Condition "rsp_iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4275: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4278: cond_false: Condition "rsp_iobref == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4281: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4284: freed_arg: "iobuf_unref" frees "rsp_iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:4286: deref_after_free: Dereferencing freed pointer "rsp_iobuf". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1575: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1575: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1576: cond_false: Condition "!this->private", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1576: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1584: switch: Switch case value "SP_STATE_ACCEPTED_SUCCESS_REPLY_INIT". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1586: switch_case: Reached case "SP_STATE_ACCEPTED_SUCCESS_REPLY_INIT". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1594: cond_true: Condition "remaining > default_read_size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1602: cond_true: Condition "frag->pending_vector->iov_len == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1602: cond_true: Condition "remaining > frag->remaining_size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1602: cond_false: Condition "ret == -1", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1602: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1602: cond_false: Condition "ret > 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1602: cond_false: Condition "frag->remaining_size != 0", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1602: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1619: cond_true: Condition "!size", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1622: goto: Jumping to label "read_proc_opaque". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1637: label: Reached label "read_proc_opaque". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1638: cond_true: Condition "in->payload_vector.iov_base == NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1643: cond_false: Condition "iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1646: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1648: cond_true: Condition "in->iobref == NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1650: cond_false: Condition "in->iobref == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1654: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1658: freed_arg: "iobuf_unref" frees "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-transport/socket/src/socket.c:1660: deref_after_free: Dereferencing freed pointer "iobuf". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3405: cond_false: Condition "!frame", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3405: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3405: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3406: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3413: cond_false: Condition "!local", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3416: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3419: cond_true: Condition "args->loc", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3419: cond_true: Condition "args->loc->inode", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3420: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3425: cond_true: Condition "args->xdata", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3427: cond_true: Condition "content != NULL", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3429: cond_false: Condition "rsp_iobref == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3431: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3437: cond_false: Condition "rsp_iobuf == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3439: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3442: freed_arg: "iobuf_unref" frees "rsp_iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:836:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:838:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:843:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:845:9: cond_true: Condition "!ref", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:846:17: freed_arg: "iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:804:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:807:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:811:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:814:9: cond_false: Condition "!iobuf_pool", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:818:9: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:822:17: freed_arg: "__iobuf_put" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: cond_false: Condition "!iobuf_arena", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:755:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: cond_false: Condition "!iobuf", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:756:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:761:9: cond_true: Condition "index == -1", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:766:17: cond_true: Condition "use_spinlocks", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/iobuf.c:768:17: freed_arg: "__gf_free" frees parameter "iobuf". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/client/src/client-rpc-fops.c:3444: deref_after_free: Dereferencing freed pointer "rsp_iobuf". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:498: cond_false: Condition "!xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:498: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:503: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:509: switch: Switch case value "RPCSVC_EVENT_DISCONNECT". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:528: switch_case: Reached case "RPCSVC_EVENT_DISCONNECT". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:535: cond_false: Condition "list_empty(&trans->list)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:537: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:548: alias: Assigning: "client" = "trans->xl_private". Now both point to the same storage. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:549: cond_false: Condition "!client", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:550: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:557: cond_true: Condition "ret", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:566: cond_true: Condition "!conf->lk_heal", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:568: freed_arg: "gf_client_put" frees "client". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:292:9: cond_false: Condition "client == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:293:17: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:295:9: cond_true: Condition "detached", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:299:9: cond_true: Condition "bind_ref == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:306:9: cond_true: Condition "unref", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:307:17: cond_true: Condition "detached", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:309:17: freed_arg: "gf_client_unref" frees parameter "client". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:424:9: cond_false: Condition "!client", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:428:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:434:9: cond_true: Condition "refcount == 0", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:437:17: freed_arg: "client_destroy" frees parameter "client". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:354:9: cond_false: Condition "client == NULL", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:358:9: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:362:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:363:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:365:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:372:9: cond_true: Condition "use_spinlocks", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:374:9: cond_true: Condition ">rav->list != &client->this->ctx->graphs", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:376:9: loop: Jumping back to the beginning of the loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:374:9: loop_begin: Jumped back to beginning of loop. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:374:9: cond_false: Condition ">rav->list != &client->this->ctx->graphs", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:376:9: loop_end: Reached end of loop. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/client_t.c:382:9: freed_arg: "__gf_free" frees parameter "client". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:569: cond_true: Condition "detached", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:570: pass_freed_arg: Passing freed pointer "client" as an argument to "server_connection_cleanup". Error: USE_AFTER_FREE: path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:498: cond_false: Condition "!xl", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:498: cond_false: Condition "!data", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:503: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:506: alias: Assigning: "trans" = "data". Now both point to the same storage. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:509: switch: Switch case value "RPCSVC_EVENT_DISCONNECT". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:528: switch_case: Reached case "RPCSVC_EVENT_DISCONNECT". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:535: cond_false: Condition "list_empty(&trans->list)", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:537: if_end: End of if statement. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:545: freed_arg: "rpc_transport_unref" frees "trans". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:507:2: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:507:2: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:515:2: cond_true: Condition "refcount == 0", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:516:17: cond_true: Condition "this->mydata", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:521:17: freed_arg: "rpc_transport_destroy" frees parameter "this". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:456:2: cond_false: Condition "!this", taking false branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:456:2: if_end: End of if statement. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:458:9: cond_true: Condition "this->clnt_options", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:460:9: cond_true: Condition "this->options", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:462:2: cond_true: Condition "this->fini", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:469:9: cond_true: Condition "this->dl_handle", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:472:9: cond_true: Condition "this->ssl_name", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/rpc/rpc-lib/src/rpc-transport.c:476:2: freed_arg: "__gf_free" frees parameter "this". path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:295:9: cond_true: Condition "!(*__glusterfs_this_location())->ctx->mem_acct_enable", taking true branch. path:/home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: cond_true: Condition "free_ptr != NULL", taking true branch. /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/libglusterfs/src/mem-pool.c:296:17: freed_arg: "free" frees parameter "free_ptr". /home/staticanalysis/src/git/2017-04-04/cov-master/glusterfs/xlators/protocol/server/src/server.c:548: deref_after_free: Dereferencing freed pointer "trans". _______________________________________________ Gluster-devel mailing list Gluster-devel@xxxxxxxxxxx http://lists.gluster.org/mailman/listinfo/gluster-devel