COMP: Use memcpy for raw memory copy

CID 1106738 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING)

Its a good practice to use memcpy over strncpy for non-null
terminated char sequences.

Change-Id: Icd4373c0528e46f007dba5f3246eb9538ef11867
BUG: Use string constructor which calculates str length

CID 1106758 (#1 of 1): Out-of-bounds access (OVERRUN)

It is preferred to use std::string constructors with count the
c-string length as opposed to manually specifying the length with is
error prone.

Change-Id: Iad6ccb87fb9fba90bf6c13db26284d50662999b2
COMP: Resource leaks

CID 1081076 (#1 of 8): Resource leak (RESOURCE_LEAK)
All 8 leaks were similiar.
labelLine was not being removed for EXIT_FAILURE.

Change-Id: Idefc8cb9b9d6afaaa47424d2182f803961ba1d57
COMP: Resource leaks

CID 1081073 (#1 of 84): Resource leak (RESOURCE_LEAK)
All 4 leaks were similiar.
low, high and lowhigh were not being removed for EXIT_FAILURE.

Change-Id: I16985608942d6ac089719c7ba4135f34f2c7f3c1
COMP: Uninitialized scalar variable

CID 1103571 (#1 of 1): Uninitialized scalar variable (UNINIT)
11. uninit_use: Using uninitialized value "NW".

switch statement did not have a default:. Added default: that throws
exception with an informative message.

Change-Id: Ic176d180ebd518cfa2509b12c5f8af2140e6685b
COMP: Unbounded source buffer

CID 1103201 (#1 of 1): Unbounded source buffer (STRING_SIZE)
string_size: Passing string "argv[2]" of unknown size to "sprintf(char
*, char const *, ...)".

Replaced sprintf with ostringstream.

Change-Id: Id06d694ff36c025c248d7357cc78eef523bb719d
Merge topic 'Coverity_itkFEMLinearSystemWrapperItpack'

94c6e04 COMP: Uninitialized scalar variable
Merge topic 'Coverity_itkLabelObjectLineTest'

0a22342 COMP: Resource leaks
Merge topic 'Coverity_itkLabelObjectLineComparatorTest'

724266f COMP: Resource leaks
Merge topic 'Coverity_ScaleSpaceGenerator2DTest'

c25ff88 COMP: Unbounded source buffer
Merge topic 'FixNullTermCopy'

06af07b COMP: Use memcpy for raw memory copy
Merge topic 'coverity_cid_1106758'

4ecdc3e BUG: Use string constructor which calculates str length
PERF: fix cppcheck perf warning

[Modules/Core/Common/include/itkAnnulusOperator.h:98]: (performance) Variable 'm_Spacing' is assigned in constructor body. Consider performing initialization in initialization list.

Change-Id: I4d3544169f8483da962d8fe280b2f6b61f9f263d
Merge topic 'cppcheck-annulus'

6a6a646 PERF: fix cppcheck perf warning
PERF: fix cppcheck issues in itk::ImageRegion

[Modules/Core/Common/include/itkImageRegion.h:184]: (performance) Variable 'same' is reassigned a value before the old one has been used.
[Modules/Core/Common/include/itkImageRegion.h:195]: (performance) Variable 'same' is reassigned a value before the old one has been used.

Change-Id: Ib03a09a37e92216d8a7ed05891eb2a5bd578858d
Merge topic 'same-ImageRegion'

a53f244 PERF: fix cppcheck issues in itk::ImageRegion