highlight-3.44-1.fc30

List of Defects

Error: UNINIT_CTOR (CWE-456): [#def1]
highlight-3.44/src/cli/cmdlineoptions.h:446: member_decl: Class member declaration for "opt_asformat_output".
highlight-3.44/src/cli/cmdlineoptions.cpp:241: uninit_member: Non-static class member "opt_asformat_output" is not initialized in this constructor nor in any functions that it calls.
#  239|           }
#  240|       }
#  241|-> }
#  242|   
#  243|   CmdLineOptions::~CmdLineOptions() {}

Error: MISSING_BREAK (CWE-484): [#def2]
highlight-3.44/src/cli/cmdlineoptions.cpp:347: unterminated_case: The case for value "S_OPT_COMPAT_LINENUM" is not terminated by a 'break' statement.
highlight-3.44/src/cli/cmdlineoptions.cpp:349: fallthrough: The above case falls through to this one.
#  347|           case S_OPT_COMPAT_LINENUM:
#  348|               if ( arg=="0" ) opt_fill_zeroes=true;
#  349|->         case 'l':
#  350|               opt_linenumbers = true;
#  351|               break;

Error: UNINIT_CTOR (CWE-456): [#def3]
highlight-3.44/src/include/Diluculum/LuaFunction.hpp:210: member_decl: Class member declaration for "readerFlag_".
highlight-3.44/src/core/Diluculum/LuaFunction.cpp:39: uninit_member: Non-static class member "readerFlag_" is not initialized in this constructor nor in any functions that it calls.
#   37|         data_.typeLuaFunction = new char[size_];
#   38|         memcpy(data_.typeLuaFunction, luaChunk.c_str(), size_);
#   39|->    }
#   40|   
#   41|      LuaFunction::LuaFunction (const void* data, size_t size)

Error: UNINIT_CTOR (CWE-456): [#def4]
highlight-3.44/src/include/Diluculum/LuaFunction.hpp:210: member_decl: Class member declaration for "readerFlag_".
highlight-3.44/src/core/Diluculum/LuaFunction.cpp:46: uninit_member: Non-static class member "readerFlag_" is not initialized in this constructor nor in any functions that it calls.
#   44|         data_.typeLuaFunction = new char[size_];
#   45|         memcpy(data_.typeLuaFunction, data, size);
#   46|->    }
#   47|   
#   48|      LuaFunction::LuaFunction (lua_CFunction func)

Error: UNINIT_CTOR (CWE-456): [#def5]
highlight-3.44/src/include/Diluculum/LuaFunction.hpp:210: member_decl: Class member declaration for "readerFlag_".
highlight-3.44/src/core/Diluculum/LuaFunction.cpp:52: uninit_member: Non-static class member "readerFlag_" is not initialized in this constructor nor in any functions that it calls.
#   50|      {
#   51|         data_.typeCFunction = func;
#   52|->    }
#   53|   
#   54|      LuaFunction::LuaFunction (const LuaFunction& other)

Error: UNINIT_CTOR (CWE-456): [#def6]
highlight-3.44/src/include/Diluculum/LuaFunction.hpp:210: member_decl: Class member declaration for "readerFlag_".
highlight-3.44/src/core/Diluculum/LuaFunction.cpp:70: uninit_member: Non-static class member "readerFlag_" is not initialized in this constructor nor in any functions that it calls.
#   68|               break;
#   69|         }
#   70|->    }
#   71|   
#   72|   

Error: UNCAUGHT_EXCEPT (CWE-248): [#def7]
highlight-3.44/src/cli/main.cpp:707: root_function: In function "main(int, char const **)" an exception of type "Diluculum::LuaTypeError" is thrown and never caught.
highlight-3.44/src/cli/main.cpp:710: fun_call_w_exception: Called function throws an exception of type "Diluculum::LuaTypeError".
highlight-3.44/src/cli/main.cpp:419:9: fun_call_w_exception: Called function throws an exception of type "Diluculum::LuaTypeError".
highlight-3.44/src/cli/main.cpp:133:9: fun_call_w_exception: Called function throws an exception of type "Diluculum::LuaTypeError".
highlight-3.44/src/core/Diluculum/LuaVariable.cpp:66:20: fun_call_w_exception: Called function throws an exception of type "Diluculum::LuaTypeError".
highlight-3.44/src/core/Diluculum/LuaUtils.cpp:116:13: exception_thrown: An exception of type "Diluculum::LuaTypeError" is thrown.
#  114|            default:
#  115|            {
#  116|->             throw LuaTypeError(
#  117|                  ("Unsupported type found in call to 'ToLuaValue()': "
#  118|                   + boost::lexical_cast<std::string>(lua_type (state, index))

Error: UNCAUGHT_EXCEPT (CWE-248): [#def8]
/usr/include/c++/8/bits/move.h:47: exn_spec_violation: An exception of type "Diluculum::TypeMismatchError" is thrown but the throw list "throw()" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
/usr/include/c++/8/bits/move.h:48: fun_call_w_exception: Called function throws an exception of type "Diluculum::TypeMismatchError".
highlight-3.44/src/core/Diluculum/LuaValue.cpp:178:13: fun_call_w_exception: Called function throws an exception of type "Diluculum::TypeMismatchError".
highlight-3.44/src/core/Diluculum/LuaValue.cpp:325:10: exception_thrown: An exception of type "Diluculum::TypeMismatchError" is thrown.
#  323|         else
#  324|         {
#  325|->          throw TypeMismatchError ("string", typeName());
#  326|         }
#  327|      }

Error: CTOR_DTOR_LEAK (CWE-772): [#def9]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:76: alloc_new: Allocating memory by calling "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:76: var_assign: Assigning: "this->headers" = "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:76: ctor_dtor_leak: The constructor allocates field "headers" of "astyle::ASBeautifier" but the destructor and whatever functions it calls do not free it.
#   74|   	// initialize ASBeautifier member vectors
#   75|   	beautifierFileType = 9;		// reset to an invalid type
#   76|-> 	headers = new vector<const string*>;
#   77|   	nonParenHeaders = new vector<const string*>;
#   78|   	assignmentOperators = new vector<const string*>;

Error: CTOR_DTOR_LEAK (CWE-772): [#def10]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:77: alloc_new: Allocating memory by calling "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:77: var_assign: Assigning: "this->nonParenHeaders" = "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:77: ctor_dtor_leak: The constructor allocates field "nonParenHeaders" of "astyle::ASBeautifier" but the destructor and whatever functions it calls do not free it.
#   75|   	beautifierFileType = 9;		// reset to an invalid type
#   76|   	headers = new vector<const string*>;
#   77|-> 	nonParenHeaders = new vector<const string*>;
#   78|   	assignmentOperators = new vector<const string*>;
#   79|   	nonAssignmentOperators = new vector<const string*>;

Error: CTOR_DTOR_LEAK (CWE-772): [#def11]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:78: alloc_new: Allocating memory by calling "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:78: var_assign: Assigning: "this->assignmentOperators" = "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:78: ctor_dtor_leak: The constructor allocates field "assignmentOperators" of "astyle::ASBeautifier" but the destructor and whatever functions it calls do not free it.
#   76|   	headers = new vector<const string*>;
#   77|   	nonParenHeaders = new vector<const string*>;
#   78|-> 	assignmentOperators = new vector<const string*>;
#   79|   	nonAssignmentOperators = new vector<const string*>;
#   80|   	preBlockStatements = new vector<const string*>;

Error: CTOR_DTOR_LEAK (CWE-772): [#def12]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:79: alloc_new: Allocating memory by calling "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:79: var_assign: Assigning: "this->nonAssignmentOperators" = "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:79: ctor_dtor_leak: The constructor allocates field "nonAssignmentOperators" of "astyle::ASBeautifier" but the destructor and whatever functions it calls do not free it.
#   77|   	nonParenHeaders = new vector<const string*>;
#   78|   	assignmentOperators = new vector<const string*>;
#   79|-> 	nonAssignmentOperators = new vector<const string*>;
#   80|   	preBlockStatements = new vector<const string*>;
#   81|   	preCommandHeaders = new vector<const string*>;

Error: CTOR_DTOR_LEAK (CWE-772): [#def13]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:80: alloc_new: Allocating memory by calling "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:80: var_assign: Assigning: "this->preBlockStatements" = "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:80: ctor_dtor_leak: The constructor allocates field "preBlockStatements" of "astyle::ASBeautifier" but the destructor and whatever functions it calls do not free it.
#   78|   	assignmentOperators = new vector<const string*>;
#   79|   	nonAssignmentOperators = new vector<const string*>;
#   80|-> 	preBlockStatements = new vector<const string*>;
#   81|   	preCommandHeaders = new vector<const string*>;
#   82|   	indentableHeaders = new vector<const string*>;

Error: CTOR_DTOR_LEAK (CWE-772): [#def14]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:81: alloc_new: Allocating memory by calling "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:81: var_assign: Assigning: "this->preCommandHeaders" = "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:81: ctor_dtor_leak: The constructor allocates field "preCommandHeaders" of "astyle::ASBeautifier" but the destructor and whatever functions it calls do not free it.
#   79|   	nonAssignmentOperators = new vector<const string*>;
#   80|   	preBlockStatements = new vector<const string*>;
#   81|-> 	preCommandHeaders = new vector<const string*>;
#   82|   	indentableHeaders = new vector<const string*>;
#   83|   }

Error: CTOR_DTOR_LEAK (CWE-772): [#def15]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:82: alloc_new: Allocating memory by calling "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:82: var_assign: Assigning: "this->indentableHeaders" = "new std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const *> >".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:82: ctor_dtor_leak: The constructor allocates field "indentableHeaders" of "astyle::ASBeautifier" but the destructor and whatever functions it calls do not free it.
#   80|   	preBlockStatements = new vector<const string*>;
#   81|   	preCommandHeaders = new vector<const string*>;
#   82|-> 	indentableHeaders = new vector<const string*>;
#   83|   }
#   84|   

Error: UNINIT_CTOR (CWE-456): [#def16]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "lineIsLineCommentOnly" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:543: member_decl: Class member declaration for "shouldIndentBracedLine".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "shouldIndentBracedLine" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:544: member_decl: Class member declaration for "isInSwitch".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "isInSwitch" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:545: member_decl: Class member declaration for "foundPreCommandHeader".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "foundPreCommandHeader" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:546: member_decl: Class member declaration for "foundPreCommandMacro".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "foundPreCommandMacro" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:549: member_decl: Class member declaration for "indentCount".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "indentCount" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:550: member_decl: Class member declaration for "spaceIndentCount".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "spaceIndentCount" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:551: member_decl: Class member declaration for "spaceIndentObjCMethodAlignment".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "spaceIndentObjCMethodAlignment" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:552: member_decl: Class member declaration for "bracePosObjCMethodAlignment".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "bracePosObjCMethodAlignment" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:553: member_decl: Class member declaration for "colonIndentObjCMethodAlignment".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "colonIndentObjCMethodAlignment" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:554: member_decl: Class member declaration for "lineOpeningBlocksNum".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "lineOpeningBlocksNum" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:555: member_decl: Class member declaration for "lineClosingBlocksNum".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "lineClosingBlocksNum" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:558: member_decl: Class member declaration for "minConditionalIndent".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "minConditionalIndent" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:559: member_decl: Class member declaration for "parenDepth".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "parenDepth" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:563: member_decl: Class member declaration for "blockTabCount".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "blockTabCount" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:566: member_decl: Class member declaration for "templateDepth".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "templateDepth" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:567: member_decl: Class member declaration for "squareBracketCount".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "squareBracketCount" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:568: member_decl: Class member declaration for "prevFinalLineSpaceIndentCount".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "prevFinalLineSpaceIndentCount" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:569: member_decl: Class member declaration for "prevFinalLineIndentCount".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "prevFinalLineIndentCount" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:570: member_decl: Class member declaration for "defineIndentCount".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "defineIndentCount" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:571: member_decl: Class member declaration for "preprocBlockIndent".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "preprocBlockIndent" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:572: member_decl: Class member declaration for "quoteChar".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "quoteChar" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:573: member_decl: Class member declaration for "prevNonSpaceCh".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "prevNonSpaceCh" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:574: member_decl: Class member declaration for "currentNonSpaceCh".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "currentNonSpaceCh" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:575: member_decl: Class member declaration for "currentNonLegalCh".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "currentNonLegalCh" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:576: member_decl: Class member declaration for "prevNonLegalCh".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:83: uninit_member: Non-static class member "prevNonLegalCh" is not initialized in this constructor nor in any functions that it calls.
#   81|   	preCommandHeaders = new vector<const string*>;
#   82|   	indentableHeaders = new vector<const string*>;
#   83|-> }
#   84|   
#   85|   /**

Error: REVERSE_NEGATIVE (CWE-191): [#def17]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:1477: negative_sink_in_call: Passing "end" to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:1481: check_after_sink: You might be using variable "end" before verifying that it is >= 0.
# 1479|   
# 1480|   	// don't trim if it ends in a continuation
# 1481|-> 	if (end > -1 && str[end] == '\\')
# 1482|   		end = str.length() - 1;
# 1483|   

Error: NEGATIVE_RETURNS (CWE-394): [#def18]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2320: negative_return_fn: Function "convertedLine.find('[', 0UL)" returns a negative number. [Note: The source code implementation of the function has been overridden by a builtin model.]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2320: var_assign: Assigning: signed variable "this->bracePosObjCMethodAlignment" = "find".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2321: negative_returns: "this->bracePosObjCMethodAlignment" is passed to a parameter that cannot be negative.
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2434:2: neg_sink_parm_call: Passing "bracePos" to "operator []", which cannot accept a negative number. [Note: The source code implementation of the function has been overridden by a builtin model.]
# 2319|   			string convertedLine = getIndentedSpaceEquivalent(line_);
# 2320|   			bracePosObjCMethodAlignment = convertedLine.find('[');
# 2321|-> 			keywordIndentObjCMethodAlignment =
# 2322|   			    getObjCFollowingKeyword(convertedLine, bracePosObjCMethodAlignment);
# 2323|   			colonIndentObjCMethodAlignment = findObjCColonAlignment(convertedLine);

Error: NEGATIVE_RETURNS (CWE-394): [#def19]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2357: negative_return_fn: Function "convertedLine.find('[', 0UL)" returns a negative number. [Note: The source code implementation of the function has been overridden by a builtin model.]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2357: var_assign: Assigning: signed variable "this->bracePosObjCMethodAlignment" = "find".
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2358: negative_returns: "this->bracePosObjCMethodAlignment" is passed to a parameter that cannot be negative.
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2434:2: neg_sink_parm_call: Passing "bracePos" to "operator []", which cannot accept a negative number. [Note: The source code implementation of the function has been overridden by a builtin model.]
# 2356|   			string convertedLine = getIndentedSpaceEquivalent(line_);
# 2357|   			bracePosObjCMethodAlignment = convertedLine.find('[');
# 2358|-> 			keywordIndentObjCMethodAlignment =
# 2359|   			    getObjCFollowingKeyword(convertedLine, bracePosObjCMethodAlignment);
# 2360|   		}

Error: COPY_PASTE_ERROR (CWE-398): [#def20]
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2450: original: "searchBeg + 1UL" looks like the original copy.
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2442: copy_paste_error: "searchBeg" in "searchBeg + 1UL" looks like a copy-paste error.
highlight-3.44/src/core/astyle/ASBeautifier.cpp:2442: remediation: Should it say "objectEnd" instead?
# 2440|   	if (line[searchBeg] == '[')
# 2441|   	{
# 2442|-> 		objectEnd = line.find(']', searchBeg + 1);
# 2443|   		if (objectEnd == string::npos)
# 2444|   			return 0;

Error: UNINIT_CTOR (CWE-456): [#def21]
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostNonInStmt" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1031: member_decl: Class member declaration for "isCharImmediatelyPostNonInStmt".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isCharImmediatelyPostNonInStmt" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1032: member_decl: Class member declaration for "isImmediatelyPostComment".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostComment" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1033: member_decl: Class member declaration for "isImmediatelyPostLineComment".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostLineComment" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1034: member_decl: Class member declaration for "isImmediatelyPostEmptyBlock".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostEmptyBlock" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1035: member_decl: Class member declaration for "isImmediatelyPostObjCMethodPrefix".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostObjCMethodPrefix" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1036: member_decl: Class member declaration for "isImmediatelyPostPreprocessor".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostPreprocessor" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1037: member_decl: Class member declaration for "isImmediatelyPostReturn".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostReturn" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1038: member_decl: Class member declaration for "isImmediatelyPostThrow".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostThrow" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1039: member_decl: Class member declaration for "isImmediatelyPostNewDelete".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostNewDelete" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1040: member_decl: Class member declaration for "isImmediatelyPostOperator".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostOperator" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1041: member_decl: Class member declaration for "isImmediatelyPostTemplate".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostTemplate" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1042: member_decl: Class member declaration for "isImmediatelyPostPointerOrReference".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostPointerOrReference" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1045: member_decl: Class member declaration for "isPrependPostBlockEmptyLineRequested".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isPrependPostBlockEmptyLineRequested" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1046: member_decl: Class member declaration for "isAppendPostBlockEmptyLineRequested".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isAppendPostBlockEmptyLineRequested" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1047: member_decl: Class member declaration for "isIndentableProprocessor".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isIndentableProprocessor" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1048: member_decl: Class member declaration for "isIndentableProprocessorBlock".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isIndentableProprocessorBlock" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1049: member_decl: Class member declaration for "prependEmptyLine".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "prependEmptyLine" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1050: member_decl: Class member declaration for "appendOpeningBrace".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "appendOpeningBrace" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1051: member_decl: Class member declaration for "foundClosingHeader".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "foundClosingHeader" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1052: member_decl: Class member declaration for "isInHeader".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isInHeader" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1053: member_decl: Class member declaration for "isImmediatelyPostHeader".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isImmediatelyPostHeader" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1054: member_decl: Class member declaration for "isInCase".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isInCase" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1055: member_decl: Class member declaration for "isFirstPreprocConditional".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isFirstPreprocConditional" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1056: member_decl: Class member declaration for "processedFirstConditional".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "processedFirstConditional" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/astyle/astyle.h:1057: member_decl: Class member declaration for "isJavaStaticConstructor".
highlight-3.44/src/core/astyle/ASFormatter.cpp:99: uninit_member: Non-static class member "isJavaStaticConstructor" is not initialized in this constructor nor in any functions that it calls.
#   97|   	// initialize ASEnhancer member vectors
#   98|   	indentableMacros = new vector<const pair<const string, const string>* >;
#   99|-> }
#  100|   
#  101|   /**

Error: DEADCODE (CWE-561): [#def22]
highlight-3.44/src/core/astyle/ASFormatter.cpp:3471: cond_cannot_single: Condition "nextText == 18446744073709551615UL", taking false branch. Now the value of "nextText" cannot be equal to -1.
highlight-3.44/src/core/astyle/ASFormatter.cpp:3474: cannot_single: At condition "nextText == 18446744073709551615UL", the value of "nextText" cannot be equal to -1.
highlight-3.44/src/core/astyle/ASFormatter.cpp:3474: dead_error_condition: The condition "nextText == 18446744073709551615UL" cannot be true.
highlight-3.44/src/core/astyle/ASFormatter.cpp:3475: dead_error_line: Execution cannot reach this statement: "return false;".
# 3473|   	size_t nextText2 = line.find_first_not_of(" \t", nextText + 1);
# 3474|   	if (nextText == string::npos)
# 3475|-> 		return false;
# 3476|   	if (line[nextText2] == ')' || line[nextText2] == '*')
# 3477|   		return true;

Error: NEGATIVE_RETURNS (CWE-394): [#def23]
highlight-3.44/src/core/astyle/ASFormatter.cpp:3473: negative_return_fn: Function "line->find_first_not_of(" \t", nextText + 1UL)" returns a negative number. [Note: The source code implementation of the function has been overridden by a builtin model.]
highlight-3.44/src/core/astyle/ASFormatter.cpp:3473: var_assign: Assigning: unsigned variable "nextText2" = "find_first_not_of".
highlight-3.44/src/core/astyle/ASFormatter.cpp:3476: negative_returns: "nextText2" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
# 3474|   	if (nextText == string::npos)
# 3475|   		return false;
# 3476|-> 	if (line[nextText2] == ')' || line[nextText2] == '*')
# 3477|   		return true;
# 3478|   	return false;

Error: UNINIT_CTOR (CWE-456): [#def24]
highlight-3.44/src/include/codegenerator.h:592: member_decl: Class member declaration for "currentState".
highlight-3.44/src/core/codegenerator.cpp:153: uninit_member: Non-static class member "currentState" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/codegenerator.h:598: member_decl: Class member declaration for "currentKeywordClass".
highlight-3.44/src/core/codegenerator.cpp:153: uninit_member: Non-static class member "currentKeywordClass" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/codegenerator.h:657: member_decl: Class member declaration for "numberCurrentLine".
highlight-3.44/src/core/codegenerator.cpp:153: uninit_member: Non-static class member "numberCurrentLine" is not initialized in this constructor nor in any functions that it calls.
#  151|        outputType ( type )
#  152|   {
#  153|-> }
#  154|   
#  155|   

Error: DEADCODE (CWE-561): [#def25]
highlight-3.44/src/core/codegenerator.cpp:1032: assignment: Assigning: "align" = "0".
highlight-3.44/src/core/codegenerator.cpp:1036: const: At condition "align == 1", the value of "align" must be equal to 0.
highlight-3.44/src/core/codegenerator.cpp:1036: dead_error_condition: The condition "align == 1" cannot be true.
highlight-3.44/src/core/codegenerator.cpp:1037: dead_error_line: Execution cannot reach this statement: "this->formatter->setPointer...".
# 1035|                       align = atoi(styleParam.c_str());
# 1036|                   else if (align == 1)
# 1037|->                     formatter->setPointerAlignment(astyle::PTR_ALIGN_TYPE);
# 1038|                   else if (align == 2)
# 1039|                       formatter->setPointerAlignment(astyle::PTR_ALIGN_MIDDLE);

Error: DEADCODE (CWE-561): [#def26]
highlight-3.44/src/core/codegenerator.cpp:1032: assignment: Assigning: "align" = "0".
highlight-3.44/src/core/codegenerator.cpp:1038: const: At condition "align == 2", the value of "align" must be equal to 0.
highlight-3.44/src/core/codegenerator.cpp:1038: dead_error_condition: The condition "align == 2" cannot be true.
highlight-3.44/src/core/codegenerator.cpp:1039: dead_error_line: Execution cannot reach this statement: "this->formatter->setPointer...".
# 1037|                       formatter->setPointerAlignment(astyle::PTR_ALIGN_TYPE);
# 1038|                   else if (align == 2)
# 1039|->                     formatter->setPointerAlignment(astyle::PTR_ALIGN_MIDDLE);
# 1040|                   else if (align == 3)
# 1041|                       formatter->setPointerAlignment(astyle::PTR_ALIGN_NAME);

Error: DEADCODE (CWE-561): [#def27]
highlight-3.44/src/core/codegenerator.cpp:1032: assignment: Assigning: "align" = "0".
highlight-3.44/src/core/codegenerator.cpp:1040: const: At condition "align == 3", the value of "align" must be equal to 0.
highlight-3.44/src/core/codegenerator.cpp:1040: dead_error_condition: The condition "align == 3" cannot be true.
highlight-3.44/src/core/codegenerator.cpp:1041: dead_error_line: Execution cannot reach this statement: "this->formatter->setPointer...".
# 1039|                       formatter->setPointerAlignment(astyle::PTR_ALIGN_MIDDLE);
# 1040|                   else if (align == 3)
# 1041|->                     formatter->setPointerAlignment(astyle::PTR_ALIGN_NAME);
# 1042|               }
# 1043|               else if (isOption(arg, "align-reference=none"))

Error: DEADCODE (CWE-561): [#def28]
highlight-3.44/src/core/codegenerator.cpp:1061: assignment: Assigning: "align" = "0".
highlight-3.44/src/core/codegenerator.cpp:1065: const: At condition "align == 0", the value of "align" must be equal to 0.
highlight-3.44/src/core/codegenerator.cpp:1065: dead_error_condition: The condition "align == 0" must be true.
highlight-3.44/src/core/codegenerator.cpp:1067: dead_error_line: Execution cannot reach this statement: "if (align == 1)
  this->for...".
# 1065|                   else if (align == 0)
# 1066|                       formatter->setReferenceAlignment(astyle::REF_ALIGN_NONE);
# 1067|->                 else if (align == 1)
# 1068|                       formatter->setReferenceAlignment(astyle::REF_ALIGN_TYPE);
# 1069|                   else if (align == 2)

Error: CHECKED_RETURN (CWE-252): [#def29]
highlight-3.44/src/core/platform_fs.cpp:199: check_return: Calling "stat(entryFilepath.c_str(), &statbuf)" without checking return value. This library function may fail and return an error code. [Note: The source code implementation of the function has been overridden by a builtin model.]
#  197|           // get file status
#  198|           string entryFilepath = directory + pathSeparator + entry->d_name;
#  199|->         stat ( entryFilepath.c_str(), &statbuf );
#  200|           if ( errno ) return;
#  201|   

Error: UNINIT_CTOR (CWE-456): [#def30]
highlight-3.44/src/include/stylecolour.h:46: member_decl: Class member declaration for "iRed".
highlight-3.44/src/core/stylecolour.cpp:46: uninit_member: Non-static class member field "rgb.iRed" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/stylecolour.h:47: member_decl: Class member declaration for "iGreen".
highlight-3.44/src/core/stylecolour.cpp:46: uninit_member: Non-static class member field "rgb.iGreen" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/stylecolour.h:48: member_decl: Class member declaration for "iBlue".
highlight-3.44/src/core/stylecolour.cpp:46: uninit_member: Non-static class member field "rgb.iBlue" is not initialized in this constructor nor in any functions that it calls.
#   44|       rgbStream << red << " " << green << " " << blue;
#   45|       setRGB ( rgbStream.str() );
#   46|-> }
#   47|   
#   48|   Colour::Colour()

Error: UNINIT_CTOR (CWE-456): [#def31]
highlight-3.44/src/include/stylecolour.h:46: member_decl: Class member declaration for "iRed".
highlight-3.44/src/core/stylecolour.cpp:56: uninit_member: Non-static class member field "rgb.iRed" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/stylecolour.h:47: member_decl: Class member declaration for "iGreen".
highlight-3.44/src/core/stylecolour.cpp:56: uninit_member: Non-static class member field "rgb.iGreen" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/stylecolour.h:48: member_decl: Class member declaration for "iBlue".
highlight-3.44/src/core/stylecolour.cpp:56: uninit_member: Non-static class member field "rgb.iBlue" is not initialized in this constructor nor in any functions that it calls.
#   54|   {
#   55|       setRGB ( colourString );
#   56|-> }
#   57|   
#   58|   void Colour::setRGB ( const string & colourString )

Error: UNINIT_CTOR (CWE-456): [#def32]
highlight-3.44/src/include/xterm256generator.h:113: member_decl: Class member declaration for "canvasPadding".
highlight-3.44/src/core/xterm256generator.cpp:47: uninit_member: Non-static class member "canvasPadding" is not initialized in this constructor nor in any functions that it calls.
#   45|       spacer = " ";
#   46|       maskWs=true; // needed if canvasPadding > 0; requires tab replacement
#   47|-> }
#   48|   
#   49|   Xterm256Generator::~Xterm256Generator() {}

Error: UNINIT_CTOR (CWE-456): [#def33]
highlight-3.44/src/include/rtfgenerator.h:43: member_decl: Class member declaration for "width".
highlight-3.44/src/include/rtfgenerator.h:49: uninit_member: Non-static class member "width" is not initialized in this constructor nor in any functions that it calls.
highlight-3.44/src/include/rtfgenerator.h:45: member_decl: Class member declaration for "height".
highlight-3.44/src/include/rtfgenerator.h:49: uninit_member: Non-static class member "height" is not initialized in this constructor nor in any functions that it calls.
#   47|       PageSize()
#   48|       {
#   49|->     }
#   50|   
#   51|       /** Constructor to define page dimensions