]>
git.ipfire.org Git - thirdparty/rrdtool-1.x.git/log
Marek Schimara [Fri, 2 Sep 2016 12:44:54 +0000 (14:44 +0200)]
src/rrd_dump.c: fix icc warning "external declaration in primary source file"
Marek Schimara [Fri, 2 Sep 2016 12:41:40 +0000 (14:41 +0200)]
src/rrd_list.c: fix icc warnings "external declaration in primary source file"
Marek Schimara [Fri, 2 Sep 2016 12:26:36 +0000 (14:26 +0200)]
src/rrd_create.c: fix icc warning "variable was set but never used"
Marek Schimara [Fri, 2 Sep 2016 12:03:27 +0000 (14:03 +0200)]
src/rrd_create.c: fix icc warnings "external declaration in primary source file"
FnvHash() is declared in fnv.h
Marek Schimara [Fri, 2 Sep 2016 11:54:58 +0000 (13:54 +0200)]
src/rrd_graph_helper.c: fix icc warnings "external declaration in primary source file"
parse_print(), parse_grad(): removed as declared but undefined
Marek Schimara [Fri, 2 Sep 2016 11:16:39 +0000 (13:16 +0200)]
src/rrd_xport.c: fix icc warnings "external declaration in primary source file"
Marek Schimara [Thu, 1 Sep 2016 14:48:16 +0000 (16:48 +0200)]
src/rrd_graph.c: fix icc warning "external declaration in primary source file"
Marek Schimara [Thu, 1 Sep 2016 14:43:40 +0000 (16:43 +0200)]
src/rrd_update.c: fix icc warnings "external declaration in primary source file"
Marek Schimara [Thu, 1 Sep 2016 14:36:34 +0000 (16:36 +0200)]
src/rrd_rpncalc.c: fix icc warnings "external declaration in primary source file"
Marek Schimara [Thu, 1 Sep 2016 14:32:52 +0000 (16:32 +0200)]
src/rrd_tune.c: fix icc warnings "external declaration in primary source file"
Marek Schimara [Thu, 1 Sep 2016 13:46:20 +0000 (15:46 +0200)]
src/rrd_tool.c: fix icc warnings "external declaration in primary source file"
All these functions are internal to rrd_tool.c
Marek Schimara [Thu, 1 Sep 2016 13:10:52 +0000 (15:10 +0200)]
src/rrd_cgi.c: fix icc warnings "function was declared but never referenced"
Functions rrdcgiHeader(), rrdcgiFree(), rrdcgiFreeList() are
never called.
Marek Schimara [Thu, 1 Sep 2016 13:06:21 +0000 (15:06 +0200)]
src/rrd_cgi.c: fix icc warnings "external declaration in primary source file"
All these functions are internal to rrd_cgi.c
Marek Schimara [Thu, 1 Sep 2016 11:52:11 +0000 (13:52 +0200)]
bindings/perl-shared/RRDs.xs: fix gcc warning "pointer targets differ in signedness"
RRDs.xs:98:16: warning: pointer targets in passing argument 2 of 'Perl_newSVpv' differ in signedness [-Wpointer-sign]
hvs(newSVpv(data->value.u_blo.ptr,data->value.u_blo.size)); \
^
Marek Schimara [Thu, 1 Sep 2016 11:24:15 +0000 (13:24 +0200)]
bindings/perl-shared/RRDs.xs: fix gcc warning "unused variable"
RRDs.xs:136:22: warning: unused variable 'new_end' [-Wunused-variable]
time_t new_start,new_end;
^
RRDs.xs:524:31: warning: unused variable 'row_cnt' [-Wunused-variable]
unsigned long step, col_cnt,row_cnt,i,ii;
^
Marek Schimara [Thu, 1 Sep 2016 09:39:27 +0000 (11:39 +0200)]
bindings/perl-shared/RRDs.xs: fix gcc warning "enumeration value 'CF_HWPREDICT' not handled in switch"
RRDs.xs:150:5: warning: enumeration value 'CF_HWPREDICT' not handled in switch [-Wswitch]
switch(cf_idx){
^
Same for: CF_SEASONAL, CF_DEVPREDICT, CF_DEVSEASONAL, CF_FAILURES, CF_MHWPREDICT
Marek Schimara [Fri, 2 Sep 2016 12:23:24 +0000 (14:23 +0200)]
src/rrd_graph.c: fix gcc warning "'tmp' may be used uninitialized in this function"
rrd_graph.c:2678:13: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
tmp += 1.0;
^
Marek Schimara [Thu, 1 Sep 2016 09:22:30 +0000 (11:22 +0200)]
src/rrd_graph.c: fix gcc warning "assignment discards 'const' qualifier"
rrd_graph.c:5221:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
im->imginfo = poptions->optarg;
^
Marek Schimara [Thu, 1 Sep 2016 09:11:31 +0000 (11:11 +0200)]
src/rrd_graph_helper.c: fix gcc warning "comparison is always false"
rrd_graph_helper.c:747:25: warning: comparison is always false due to limited range of data type [-Wtype-limits]
if (vname && (*vname>128)) {
^
Effectively, as 'vname' is a (char *), the values can go from
-128 to 127, so this was deadcode.
Marek Schimara [Thu, 1 Sep 2016 09:25:20 +0000 (11:25 +0200)]
src/rrd_list.c: fix gcc warning "ISO C does not permit named variadic macros"
rrd_list.c:16:50: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
#define SANE_ASPRINTF(_dest_str, _format, _params...) \
^
rrd_list.c:24:51: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
#define SANE_ASPRINTF2(_dest_str, _format, _params...) \
^
Marek Schimara [Thu, 1 Sep 2016 08:42:32 +0000 (10:42 +0200)]
src/optparse.c: fix gcc warning "ISO C does not permit named variadic macros"
optparse.c:4:39: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
#define opterror(options, format, args...) \
^
Marek Schimara [Thu, 1 Sep 2016 08:36:20 +0000 (10:36 +0200)]
src/rrd_info.c: fix gcc warning "assignment discards 'const' qualifier"
rrd_info.c: In function 'rrd_info_r':
rrd_info.c:178:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
info.u_str = filename;
^
Tobias Oetiker [Thu, 1 Sep 2016 06:48:59 +0000 (08:48 +0200)]
Merge pull request #733 from Marek77/pr_list
adds command 'LIST'
Marek Schimara [Wed, 31 Aug 2016 12:35:49 +0000 (14:35 +0200)]
tests/: adds list1 'rrdtool list' test script
Marek Schimara [Tue, 30 Aug 2016 15:06:28 +0000 (17:06 +0200)]
src/rrd_daemon.c,src/rrd_list.c: moves LIST-specific code into rrd_list_r
Marek Schimara [Thu, 25 Aug 2016 14:35:49 +0000 (16:35 +0200)]
src/rrd_list.c: fix option handling
Marek Schimara [Thu, 25 Aug 2016 08:19:54 +0000 (10:19 +0200)]
src/rrd_daemon.c: adds symlink check for the 'LIST' command
make sure we aren't following a symlink pointing outside of
base_dir
Tobias Oetiker [Thu, 25 Aug 2016 05:56:11 +0000 (07:56 +0200)]
Merge pull request #734 from biell/master
fix segfault on non-existent RRD file when using rrdcached
biell [Wed, 24 Aug 2016 18:39:32 +0000 (14:39 -0400)]
fix segfault on non-existent RRD file when using rrdcached
Marek Schimara [Wed, 24 Aug 2016 13:20:43 +0000 (15:20 +0200)]
doc: adds documentation for the LIST command
Sebastien Dugue [Fri, 13 Feb 2015 09:29:36 +0000 (10:29 +0100)]
Perl shared bindings: Add bindings for the LIST command
Sebastien Dugue [Thu, 30 Oct 2014 08:33:26 +0000 (09:33 +0100)]
Python bindings: Add bindings for the LIST command
Sebastien Dugue [Tue, 28 Oct 2014 14:37:03 +0000 (15:37 +0100)]
rrd_daemon: Add LIST command to list the rrd databases
Tobias Oetiker [Wed, 24 Aug 2016 09:34:23 +0000 (11:34 +0200)]
Merge pull request #732 from Marek77/pr_mkdir
Fix "mkdir -p"
Tobias Oetiker [Wed, 24 Aug 2016 08:41:24 +0000 (10:41 +0200)]
Merge pull request #731 from Marek77/pr_loglevel
rrdcached: Adds CLI option '-V log_level'
Jean-Vincent Ficet [Tue, 10 Feb 2015 15:39:18 +0000 (16:39 +0100)]
rrd_daemon: Log strerror(errno) when rrd_mkdir_p() fails
Log strerror(errno) when rrd_mkdir_p() fails in order to know what went wrong
from a client application perspective.
In this particular case, rrd_mkdir_p failed due to the lack of inodes.
Sending a message with 'No Space left on device' allowed the application
to limit the logs in the code in charge of handling the
RRDTOOL_FILESYSTEM_FULL error, rather than flooding the logs with all
the failed queries.
Jean-Vincent Ficet [Mon, 9 Feb 2015 15:26:00 +0000 (16:26 +0100)]
rrd_utils: Fix broken recusive directory creation in multithreaded context
Multithreaded applications can issue CREATE commands simultaneously
from several threads. Such commands may require to create directories
from the same root path.
Example:
Thread #1 creates /var/cache/rrd/data/switch/isw61/board0/chip1/port1
Thread #2 creates /var/cache/rrd/data/switch/isw61/board0/chip1/port3
If 2 threads attempt to create the above directories, one thread may
fail when creating a directory already created by the other thread.
The mkdir syscall fails with an error (errno = EEXIST), which causes
the whole CREATE transaction to fail.
Fixed by checking errno after invoking mkdir when creating
directories recursively.
Marek Schimara [Wed, 24 Aug 2016 08:00:58 +0000 (10:00 +0200)]
doc/rrdcached.pod: adds description of the '-V log_level' CLI option
Tobias Oetiker [Wed, 24 Aug 2016 07:28:27 +0000 (09:28 +0200)]
Merge pull request #730 from Marek77/pr_acinclude
m4/acinclude.m4: fix for build error 'possibly undefined macro: AS_VAR_COPY
Tobias Oetiker [Tue, 23 Aug 2016 14:19:20 +0000 (16:19 +0200)]
Merge pull request #729 from Marek77/pr_fallocate
src/rrd_open.c: fix crash (SIGBUS) trying to CREATE a rrd on a full fs
Marek Schimara [Fri, 24 Jun 2016 08:27:55 +0000 (10:27 +0200)]
src/rrd_daemon.c: adds option '-V LOGLEVEL'
Default log level when this flag is NOT present: LOG_ERR
Marek Schimara [Wed, 22 Jun 2016 08:41:25 +0000 (10:41 +0200)]
m4/acinclude.m4: fix for build error 'possibly undefined macro: AS_VAR_COPY'
This happens with autoconf 2.63 or older (RHEL 6)
Marek Schimara [Thu, 12 Sep 2013 11:57:50 +0000 (13:57 +0200)]
src/rrd_open.c: fix crash (SIGBUS) trying to CREATE a rrd on a full filesystem
Condition (posix_fallocate(rrd_simple_file->fd, 0, newfile_size) == -1)
is always FALSE so this check passes all the time.
See man posix_fallocate()
Tobias Oetiker [Thu, 14 Jul 2016 11:26:58 +0000 (13:26 +0200)]
Merge pull request #716 from Marek77/master_coverity
Master coverity
Tobias Oetiker [Thu, 14 Jul 2016 11:26:42 +0000 (13:26 +0200)]
Merge pull request #723 from N3WWN/master
FIX for Issue 695 - master branch
Rich Alloway [Wed, 13 Jul 2016 12:50:00 +0000 (08:50 -0400)]
FIX for Issue 695 - master branch
Tobias Oetiker [Tue, 5 Jul 2016 15:00:38 +0000 (17:00 +0200)]
Merge pull request #715 from itensionanders/coords
Output legend coords, for making img map
Anders Björklund [Sun, 26 Jun 2016 11:53:02 +0000 (13:53 +0200)]
Show legend coords in graphv, for making img map
Anders Björklund [Sun, 26 Jun 2016 11:53:02 +0000 (13:53 +0200)]
Add gfx_get_text_height function, to match width
Marek Schimara [Mon, 27 Jun 2016 09:04:37 +0000 (11:04 +0200)]
fix style
src/rrd_cgi.c
src/rrd_create.c
src/rrd_daemon.c
src/rrd_dump.c
src/rrd_fetch.c
src/rrd_first.c
src/rrd_flushcached.c
src/rrd_graph_helper.c
src/rrd_info.c
src/rrd_last.c
src/rrd_lastupdate.c
src/rrd_update.c
Marek Schimara [Fri, 17 Jun 2016 11:40:08 +0000 (13:40 +0200)]
src/rrd_cgi.c: fix Coverity CID#13625 Truncated stdio return value
Marek Schimara [Fri, 17 Jun 2016 11:33:55 +0000 (13:33 +0200)]
src/rrd_daemon.c: fix Coverity CID#13627 Unchecked return value from library
CWE-252 / https://cwe.mitre.org/data/definitions/252.html
Marek Schimara [Fri, 17 Jun 2016 11:27:07 +0000 (13:27 +0200)]
src/rrd_fetch_libdbi.c: fix Coverity CID#13630 Unchecked return value
CWE-252 / https://cwe.mitre.org/data/definitions/252.html
Marek Schimara [Fri, 17 Jun 2016 11:19:43 +0000 (13:19 +0200)]
src/rrd_fetch_libdbi.c: fix Coverity CID#13634 Logically dead code
CWE-561 / https://cwe.mitre.org/data/definitions/561.html
NOTE: this seems like a copy & paste error; either we compare
'h1' to (char)-1 in which case the code cannot be reached (the
same test is already done & it returns from the function), or
(more likely) it should be 'h2' instead.
Marek Schimara [Fri, 17 Jun 2016 11:16:50 +0000 (13:16 +0200)]
src/rrd_daemon.c: fix Coverity CID#13637 Missing unlock
CWE-667 / https://cwe.mitre.org/data/definitions/667.html
Marek Schimara [Fri, 17 Jun 2016 11:08:27 +0000 (13:08 +0200)]
src/rrd_xport.c: fix Coverity CID#13640 Array compared against 0
CWE-398 / https://cwe.mitre.org/data/definitions/398.html
(im->gdes[i].legend == 0) doesn't make sense;
im->gdes[i].legend declared as
char legend[FMT_LEG_LEN + 5]; /* legend */
NOTE: fix to be checked to ensure it conserves the intended functionality.
Marek Schimara [Fri, 17 Jun 2016 11:01:40 +0000 (13:01 +0200)]
src/rrd_graph_helper.c: fix Coverity CIDs#13641,#13642 Dereference null return value
CWE-476 / https://cwe.mitre.org/data/definitions/476.html
Marek Schimara [Fri, 17 Jun 2016 09:28:17 +0000 (11:28 +0200)]
bindings/perl-shared/RRDs.xs: fix Coverity CID#13647 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Fri, 17 Jun 2016 09:17:51 +0000 (11:17 +0200)]
src/rrd_cgi.c: fix Coverity CID#13652 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Fri, 17 Jun 2016 09:09:28 +0000 (11:09 +0200)]
src/rrd_cgi.c: fix Coverity CID#13654 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Fri, 17 Jun 2016 08:54:29 +0000 (10:54 +0200)]
src/rrd_cgi.c: fix Coverity CID#13655 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Fri, 17 Jun 2016 08:38:22 +0000 (10:38 +0200)]
src/rrd_daemon.c: fix Coverity CIDs#13659,#13660 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Fri, 17 Jun 2016 08:15:31 +0000 (10:15 +0200)]
src/rrd_hw.c: fix Coverity CIDs#13664,#13665 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Fri, 17 Jun 2016 08:10:05 +0000 (10:10 +0200)]
src/rrd_open.c: fix Coverity CID#13666 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Fri, 17 Jun 2016 08:04:46 +0000 (10:04 +0200)]
src/rrd_xport.c: fix Coverity CIDs#13670,#13671 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Fri, 17 Jun 2016 07:52:55 +0000 (09:52 +0200)]
src/rrd_daemon.c: fix Coverity CID#13672 Pointer to local outside scope
CWE-562 / https://cwe.mitre.org/data/definitions/562.html
Marek Schimara [Fri, 17 Jun 2016 07:47:25 +0000 (09:47 +0200)]
src/rrd_graph_helper.c: fix Coverity CID#13675 Dereference before null check
CWE-476 / https://cwe.mitre.org/data/definitions/476.html
Marek Schimara [Fri, 17 Jun 2016 07:45:28 +0000 (09:45 +0200)]
src/rrd_open.c: fix Coverity CID#13676 Dereference before null check
CWE-476 / https://cwe.mitre.org/data/definitions/476.html
Marek Schimara [Fri, 17 Jun 2016 07:40:47 +0000 (09:40 +0200)]
src/rrd_utils.c: fix Coverity CID#13677 Sizeof not portable
CWE-467 / https://cwe.mitre.org/data/definitions/467.html
Marek Schimara [Fri, 17 Jun 2016 07:37:46 +0000 (09:37 +0200)]
src/rrd_fetch_libdbi.c: fix Coverity CID#13678 Copy into fixed size buffer (buffer overflow)
CWE-120 / https://cwe.mitre.org/data/definitions/120.html
Marek Schimara [Fri, 17 Jun 2016 07:19:54 +0000 (09:19 +0200)]
src/rrd_parsetime.c: fix Coverity CID#13692 Missing varargs init or cleanup
CWE-573 / https://cwe.mitre.org/data/definitions/573.html
Marek Schimara [Fri, 17 Jun 2016 06:44:29 +0000 (08:44 +0200)]
src/rrd_client.c: fix Coverity CID#17400 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
+ possible segfault when accessing res->message and res == NULL
Marek Schimara [Thu, 16 Jun 2016 14:51:13 +0000 (16:51 +0200)]
src/rrd_client.c: fix Coverity CID#17401 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 14:09:00 +0000 (16:09 +0200)]
src/rrd_xport.c: fix Coverity CID#23524 Uninitialized scalar variable
CWE-457 / https://cwe.mitre.org/data/definitions/457.html
Marek Schimara [Thu, 16 Jun 2016 13:57:27 +0000 (15:57 +0200)]
src/rrd_fetch_libdbi.c: fix Coverity CID#26513 Buffer not null terminated
CWE-170 / https://cwe.mitre.org/data/definitions/170.html
Marek Schimara [Thu, 16 Jun 2016 13:54:17 +0000 (15:54 +0200)]
src/rrd_graph.c: fix Coverity CID#26514 Buffer not null terminated
CWE-170 / https://cwe.mitre.org/data/definitions/170.html
Marek Schimara [Thu, 16 Jun 2016 13:49:32 +0000 (15:49 +0200)]
src/rrd_flushcached.c: fix Coverity CID#26516 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 13:43:55 +0000 (15:43 +0200)]
src/rrd_lastupdate.c: fix Coverity CID#26518 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 13:35:22 +0000 (15:35 +0200)]
src/rrd_graph_helper.c: fix Coverity CID#26523 Buffer not null terminated
CWE-170 / https://cwe.mitre.org/data/definitions/170.html
Marek Schimara [Thu, 16 Jun 2016 11:55:39 +0000 (13:55 +0200)]
src/rrd_fetch.c: fix Coverity CID#26524 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 11:45:54 +0000 (13:45 +0200)]
src/rrd_daemon.c: fix Coverity CID#26525 Buffer not null terminated
CWE-170 / https://cwe.mitre.org/data/definitions/170.html
Marek Schimara [Thu, 16 Jun 2016 11:31:26 +0000 (13:31 +0200)]
src/rrd_graph_helper.c: fix Coverity CID#26527 Buffer not null terminated
CWE-170 / https://cwe.mitre.org/data/definitions/170.html
Marek Schimara [Thu, 16 Jun 2016 11:23:39 +0000 (13:23 +0200)]
src/rrd_first.c: fix Coverity CID#26528 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 11:18:37 +0000 (13:18 +0200)]
src/rrd_create.c: fix Coverity CID#26529 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 09:37:01 +0000 (11:37 +0200)]
src/rrd_last.c: fix Coverity CID#26531 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 09:31:41 +0000 (11:31 +0200)]
src/rrd_update.c: fix Coverity CID#26532 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 09:19:49 +0000 (11:19 +0200)]
src/rrd_dump.c: fix Coverity CID#26534 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 09:16:48 +0000 (11:16 +0200)]
src/rrd_info.c: fix Coverity CID#26535 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 09:02:27 +0000 (11:02 +0200)]
src/rrd_cgi.c: fix Coverity CIDs#17398,#13656 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Thu, 16 Jun 2016 07:06:45 +0000 (09:06 +0200)]
src/rrd_cgi.c: fix Coverity CID#13656 Resource leak
CWE-404 / https://cwe.mitre.org/data/definitions/404.html
Marek Schimara [Wed, 15 Jun 2016 14:40:05 +0000 (16:40 +0200)]
src/rrd_daemon.c: fix Coverity CID#32399 Buffer not null terminated
CWE-170 / https://cwe.mitre.org/data/definitions/170.html
Marek Schimara [Wed, 15 Jun 2016 14:30:32 +0000 (16:30 +0200)]
src/rrd_create.c: fix Coverity CID#32400 Buffer not null terminated
CWE-170 / https://cwe.mitre.org/data/definitions/170.html
Marek Schimara [Wed, 15 Jun 2016 14:19:16 +0000 (16:19 +0200)]
src/rrd_graph_helper.c: fix Coverity CID#32401 Buffer not null terminated
CWE-170 / https://cwe.mitre.org/data/definitions/170.html
Marek Schimara [Wed, 15 Jun 2016 14:12:47 +0000 (16:12 +0200)]
src/rrd_open.c: fix Coverity CID#32402 Unchecked return value from library
CWE-252 / https://cwe.mitre.org/data/definitions/252.html
Marek Schimara [Wed, 15 Jun 2016 13:53:52 +0000 (15:53 +0200)]
src/rrd_modify.c: fix Coverity CID#32405 Logically dead code
CWE-561 / https://cwe.mitre.org/data/definitions/561.html
Marek Schimara [Wed, 15 Jun 2016 13:48:34 +0000 (15:48 +0200)]
src/rrd_modify.c: fix Coverity CID#32406 Logically dead code
CWE-561 / https://cwe.mitre.org/data/definitions/561.html
Either
finalout = rrd_modify_structure == NULL => goto done;
or
finalout = rrd_modify_structure != NULL => rc = 0;
Marek Schimara [Wed, 15 Jun 2016 13:36:28 +0000 (15:36 +0200)]
src/rrd_daemon.c: fix Coverity CID#32408 Missing unlock
CWE-667 / https://cwe.mitre.org/data/definitions/667.html
Marek Schimara [Wed, 15 Jun 2016 13:31:27 +0000 (15:31 +0200)]
src/rrd_client.c: fix Coverity CID#32409 Missing unlock
CWE-667 / https://cwe.mitre.org/data/definitions/667.html
Marek Schimara [Wed, 15 Jun 2016 13:03:35 +0000 (15:03 +0200)]
src/rrd_daemon.c: fix Coverity CID#32412 Nesting level does not match indentation
CWE-483 / https://cwe.mitre.org/data/definitions/483.html
Marek Schimara [Wed, 15 Jun 2016 12:52:33 +0000 (14:52 +0200)]
src/rrd_graph.c: fix Coverity CID#32414 Array compared against 0
CWE-398 / https://cwe.mitre.org/data/definitions/398.html
'im' declared as: image_desc_t *im
im->gdes[i] is: graph_desc_t *gdes; /* points to an array of graph elements */
im->gdes[i].format is: char format[FMT_LEG_LEN + 5]; /* format for PRINT AND GPRINT */
Comparing a stack variable to NULL doesn't make sense.