[devel] [PATCH 14 of 15] amfnd: Correct a number of issues identified by Coverity [#680]

2014-01-02 Thread Gary Lee
osaf/services/saf/amf/amfnd/main.cc | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) * Calling risky function (SECURE_CODING) fix buffer overflow if a string longer than 31 chars is specified for node_type diff --git a/osaf/services/saf/amf/amfnd/main.cc

[devel] [PATCH 01 of 15] amfd: Correct a number of issues identified by Coverity [#680]

2014-01-02 Thread Gary Lee
osaf/services/saf/amf/amfd/app.cc | 27 --- osaf/services/saf/amf/amfd/apptype.cc | 13 - 2 files changed, 16 insertions(+), 24 deletions(-) * Unnecessary header file (HFA) * Logically dead code (DEADCODE) * Dereference null return value (NULL_RETURNS)

[devel] [PATCH 15 of 15] amfnd: Correct a number of issues identified by Coverity [#680]

2014-01-02 Thread Gary Lee
osaf/services/saf/amf/amfnd/ckpt_updt.cc | 4 ++-- osaf/services/saf/amf/amfnd/compdb.cc| 6 +++--- osaf/services/saf/amf/amfnd/sidb.cc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) * use delete[] for variables allocated with new[] diff --git

[devel] [PATCH 11 of 15] amfnd: Correct a number of issues identified by Coverity [#680]

2014-01-02 Thread Gary Lee
osaf/services/saf/amf/amfnd/clc.cc | 11 --- osaf/services/saf/amf/amfnd/clm.cc | 11 ++- 2 files changed, 10 insertions(+), 12 deletions(-) * Unnecessary header file (HFA) * Unchecked return value (CHECKED_RETURN) * Uninitialized scalar variable (UNINIT) * Out-of-bounds read

<    5   6   7   8   9   10