]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/log
thirdparty/rrdtool-1.x.git
8 years agosrc/rrd_dump.c: fix icc warning "external declaration in primary source file"
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"

8 years agosrc/rrd_list.c: fix icc warnings "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"

8 years agosrc/rrd_create.c: fix icc warning "variable was set but never used"
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"

8 years agosrc/rrd_create.c: fix icc warnings "external declaration in primary source file"
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

8 years agosrc/rrd_graph_helper.c: fix icc warnings "external declaration in primary source...
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

8 years agosrc/rrd_xport.c: fix icc warnings "external declaration in primary source file"
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"

8 years agosrc/rrd_graph.c: fix icc warning "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"

8 years agosrc/rrd_update.c: fix icc warnings "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"

8 years agosrc/rrd_rpncalc.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"

8 years agosrc/rrd_tune.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"

8 years agosrc/rrd_tool.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

8 years agosrc/rrd_cgi.c: fix icc warnings "function was declared but never referenced"
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.

8 years agosrc/rrd_cgi.c: fix icc warnings "external declaration in primary source file"
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

8 years agobindings/perl-shared/RRDs.xs: fix gcc warning "pointer targets differ in signedness"
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)); \
                ^

8 years agobindings/perl-shared/RRDs.xs: fix gcc warning "unused variable"
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;
                               ^

8 years agobindings/perl-shared/RRDs.xs: fix gcc warning "enumeration value 'CF_HWPREDICT' not...
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

8 years agosrc/rrd_graph.c: fix gcc warning "'tmp' may be used uninitialized in this function"
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;
             ^

8 years agosrc/rrd_graph.c: fix gcc warning "assignment discards 'const' qualifier"
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;
                    ^

8 years agosrc/rrd_graph_helper.c: fix gcc warning "comparison is always false"
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.

8 years agosrc/rrd_list.c: fix gcc warning "ISO C does not permit named variadic macros"
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...)   \
                                                          ^

8 years agosrc/optparse.c: fix gcc warning "ISO C does not permit named variadic macros"
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...) \
                                        ^

8 years agosrc/rrd_info.c: fix gcc warning "assignment discards 'const' qualifier"
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;
                   ^

8 years agoMerge pull request #733 from Marek77/pr_list
Tobias Oetiker [Thu, 1 Sep 2016 06:48:59 +0000 (08:48 +0200)] 
Merge pull request #733 from Marek77/pr_list

adds command 'LIST'

8 years agotests/: adds list1 'rrdtool list' test script 733/head
Marek Schimara [Wed, 31 Aug 2016 12:35:49 +0000 (14:35 +0200)] 
tests/: adds list1 'rrdtool list' test script

8 years agosrc/rrd_daemon.c,src/rrd_list.c: moves LIST-specific code into rrd_list_r
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

8 years agosrc/rrd_list.c: fix option handling
Marek Schimara [Thu, 25 Aug 2016 14:35:49 +0000 (16:35 +0200)] 
src/rrd_list.c: fix option handling

8 years agosrc/rrd_daemon.c: adds symlink check for the 'LIST' command
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

8 years agoMerge pull request #734 from biell/master
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

8 years agofix segfault on non-existent RRD file when using rrdcached 734/head
biell [Wed, 24 Aug 2016 18:39:32 +0000 (14:39 -0400)] 
fix segfault on non-existent RRD file when using rrdcached

8 years agodoc: adds documentation for the LIST command
Marek Schimara [Wed, 24 Aug 2016 13:20:43 +0000 (15:20 +0200)] 
doc: adds documentation for the LIST command

8 years agoPerl shared bindings: Add bindings 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

8 years agoPython 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

8 years agorrd_daemon: Add LIST command to list the rrd databases
Sebastien Dugue [Tue, 28 Oct 2014 14:37:03 +0000 (15:37 +0100)] 
rrd_daemon: Add LIST command to list the rrd databases

8 years agoMerge pull request #732 from Marek77/pr_mkdir
Tobias Oetiker [Wed, 24 Aug 2016 09:34:23 +0000 (11:34 +0200)] 
Merge pull request #732 from Marek77/pr_mkdir

Fix "mkdir -p"

8 years agoMerge pull request #731 from Marek77/pr_loglevel
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'

8 years agorrd_daemon: Log strerror(errno) when rrd_mkdir_p() fails 732/head
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.

8 years agorrd_utils: Fix broken recusive directory creation in multithreaded context
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.

8 years agodoc/rrdcached.pod: adds description of the '-V log_level' CLI option 731/head
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

8 years agoMerge pull request #730 from Marek77/pr_acinclude
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

8 years agoMerge pull request #729 from Marek77/pr_fallocate
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

8 years agosrc/rrd_daemon.c: adds option '-V LOGLEVEL'
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

8 years agom4/acinclude.m4: fix for build error 'possibly undefined macro: AS_VAR_COPY' 730/head
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)

8 years agosrc/rrd_open.c: fix crash (SIGBUS) trying to CREATE a rrd on a full filesystem 729/head
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()

9 years agoMerge pull request #716 from Marek77/master_coverity
Tobias Oetiker [Thu, 14 Jul 2016 11:26:58 +0000 (13:26 +0200)] 
Merge pull request #716 from Marek77/master_coverity

Master coverity

9 years agoMerge pull request #723 from N3WWN/master
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

9 years agoFIX for Issue 695 - master branch 723/head
Rich Alloway [Wed, 13 Jul 2016 12:50:00 +0000 (08:50 -0400)] 
FIX for Issue 695 - master branch

9 years agoMerge pull request #715 from itensionanders/coords
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

9 years agoShow legend coords in graphv, for making img map 715/head
Anders Björklund [Sun, 26 Jun 2016 11:53:02 +0000 (13:53 +0200)] 
Show legend coords in graphv, for making img map

9 years agoAdd gfx_get_text_height function, to match width
Anders Björklund [Sun, 26 Jun 2016 11:53:02 +0000 (13:53 +0200)] 
Add gfx_get_text_height function, to match width

9 years agofix style 716/head
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

9 years agosrc/rrd_cgi.c: fix Coverity CID#13625 Truncated stdio return value
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

9 years agosrc/rrd_daemon.c: fix Coverity CID#13627 Unchecked return value from library
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

9 years agosrc/rrd_fetch_libdbi.c: fix Coverity CID#13630 Unchecked return value
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

9 years agosrc/rrd_fetch_libdbi.c: fix Coverity CID#13634 Logically dead code
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.

9 years agosrc/rrd_daemon.c: fix Coverity CID#13637 Missing unlock
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

9 years agosrc/rrd_xport.c: fix Coverity CID#13640 Array compared against 0
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.

9 years agosrc/rrd_graph_helper.c: fix Coverity CIDs#13641,#13642 Dereference null return value
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

9 years agobindings/perl-shared/RRDs.xs: fix Coverity CID#13647 Resource leak
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

9 years agosrc/rrd_cgi.c: fix Coverity CID#13652 Resource leak
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

9 years agosrc/rrd_cgi.c: fix Coverity CID#13654 Resource leak
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

9 years agosrc/rrd_cgi.c: fix Coverity CID#13655 Resource leak
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

9 years agosrc/rrd_daemon.c: fix Coverity CIDs#13659,#13660 Resource leak
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

9 years agosrc/rrd_hw.c: fix Coverity CIDs#13664,#13665 Resource leak
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

9 years agosrc/rrd_open.c: fix Coverity CID#13666 Resource leak
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

9 years agosrc/rrd_xport.c: fix Coverity CIDs#13670,#13671 Resource leak
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

9 years agosrc/rrd_daemon.c: fix Coverity CID#13672 Pointer to local outside scope
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

9 years agosrc/rrd_graph_helper.c: fix Coverity CID#13675 Dereference before null check
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

9 years agosrc/rrd_open.c: fix Coverity CID#13676 Dereference before null check
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

9 years agosrc/rrd_utils.c: fix Coverity CID#13677 Sizeof not portable
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

9 years agosrc/rrd_fetch_libdbi.c: fix Coverity CID#13678 Copy into fixed size buffer (buffer...
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

9 years agosrc/rrd_parsetime.c: fix Coverity CID#13692 Missing varargs init or cleanup
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

9 years agosrc/rrd_client.c: fix Coverity CID#17400 Resource leak
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

9 years agosrc/rrd_client.c: fix Coverity CID#17401 Resource leak
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

9 years agosrc/rrd_xport.c: fix Coverity CID#23524 Uninitialized scalar variable
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

9 years agosrc/rrd_fetch_libdbi.c: fix Coverity CID#26513 Buffer not null terminated
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

9 years agosrc/rrd_graph.c: fix Coverity CID#26514 Buffer not null terminated
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

9 years agosrc/rrd_flushcached.c: fix Coverity CID#26516 Resource leak
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

9 years agosrc/rrd_lastupdate.c: fix Coverity CID#26518 Resource leak
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

9 years agosrc/rrd_graph_helper.c: fix Coverity CID#26523 Buffer not null terminated
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

9 years agosrc/rrd_fetch.c: fix Coverity CID#26524 Resource leak
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

9 years agosrc/rrd_daemon.c: fix Coverity CID#26525 Buffer not null terminated
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

9 years agosrc/rrd_graph_helper.c: fix Coverity CID#26527 Buffer not null terminated
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

9 years agosrc/rrd_first.c: fix Coverity CID#26528 Resource leak
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

9 years agosrc/rrd_create.c: fix Coverity CID#26529 Resource leak
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

9 years agosrc/rrd_last.c: fix Coverity CID#26531 Resource leak
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

9 years agosrc/rrd_update.c: fix Coverity CID#26532 Resource leak
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

9 years agosrc/rrd_dump.c: fix Coverity CID#26534 Resource leak
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

9 years agosrc/rrd_info.c: fix Coverity CID#26535 Resource leak
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

9 years agosrc/rrd_cgi.c: fix Coverity CIDs#17398,#13656 Resource leak
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

9 years agosrc/rrd_cgi.c: fix Coverity CID#13656 Resource leak
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

9 years agosrc/rrd_daemon.c: fix Coverity CID#32399 Buffer not null terminated
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

9 years agosrc/rrd_create.c: fix Coverity CID#32400 Buffer not null terminated
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

9 years agosrc/rrd_graph_helper.c: fix Coverity CID#32401 Buffer not null terminated
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

9 years agosrc/rrd_open.c: fix Coverity CID#32402 Unchecked return value from library
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

9 years agosrc/rrd_modify.c: fix Coverity CID#32405 Logically dead code
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

9 years agosrc/rrd_modify.c: fix Coverity CID#32406 Logically dead code
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;

9 years agosrc/rrd_daemon.c: fix Coverity CID#32408 Missing unlock
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

9 years agosrc/rrd_client.c: fix Coverity CID#32409 Missing unlock
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

9 years agosrc/rrd_daemon.c: fix Coverity CID#32412 Nesting level does not match indentation
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

9 years agosrc/rrd_graph.c: fix Coverity CID#32414 Array compared against 0
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.