[Bugs] [Bug 1292954] all: fix various errors/warnings reported by cppcheck

bugzilla at redhat.com bugzilla at redhat.com
Fri Dec 18 20:39:01 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1292954



--- Comment #3 from Kaleb KEITHLEY <kkeithle at redhat.com> ---
Which,when that link goes away:


[cli/src/cli-rpc-ops.c:2380]: (error) Possible null pointer dereference: local
[cli/src/cli-rpc-ops.c:2557]: (error) Possible null pointer dereference: local
[cli/src/cli-rpc-ops.c:7908]: (error) Possible null pointer dereference: local
[cli/src/cli-rpc-ops.c:7917]: (error) Possible null pointer dereference: local
[cli/src/cli.c:500]: (error) va_list 'ap' was opened but not closed by
va_end().
[cli/src/cli.c:524]: (error) va_list 'ap' was opened but not closed by
va_end().
[contrib/libexecinfo/execinfo.c:359]: (error) Memory leak: rval
[extras/test/test-ffop.c:27]: (error) Buffer overrun possible for long command
line arguments.
[libglusterfs/src/event-epoll.c:117]: (error) Array
'event_pool.slots_used[1024]' accessed at index 1024, which is out of bounds.
[tests/basic/fops-sanity.c:63]: (error) Buffer overrun possible for long
command line arguments.
[tests/bugs/replicate/bug-1250170-fsync.c:39]: (error) Memory leak: buffer
[xlators/cluster/dht/src/dht-rename.c:961]: (error) Possible null pointer
dereference: local
[xlators/debug/io-stats/src/io-stats.c:681]: (error) Array
'entry.iosstat.thru_counters[2]' accessed at index 3, which is out of bounds.
[xlators/features/bit-rot/src/bitd/bit-rot.c:1697]: (error) va_list 'ap' was
opened but not closed by va_end().
[xlators/mgmt/glusterd/src/glusterd-handler.c:2231]: (error) Possible null
pointer dereference: this
[xlators/mgmt/glusterd/src/glusterd-handler.c:2874]: (error) Possible null
pointer dereference: this
[xlators/mgmt/glusterd/src/glusterd-snapshot.c:6201]: (error) Possible null
pointer dereference: volinfo
[xlators/mount/fuse/src/fuse-helpers.c:254]: (error) Resource leak: fp
[xlators/storage/posix/src/posix-helpers.c:1118]: (error) Invalid number of
character '{' when these macros are defined: 'GF_DARWIN_HOST_OS'.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=3JKSWyFOoB&a=cc_unsubscribe


More information about the Bugs mailing list