Project

General

Profile

Actions

Bug #835

closed

Warnings from GCC 8 in dulconst.cc

Added by Jan Schlamelcher over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
2018-06-01
Due date:
% Done:

100%

Estimated time:
Module:
dcmnet
Operating System:
Compiler:

Description

GCC 8 gives the following warnings that should be inspected and fixed:

dcmnet/libsrc/dulconst.cc: In function ‘OFCondition streamAssociatePDU(PRV_ASSOCIATEPDU*, unsigned char*, long unsigned int, long unsigned int*)’:
dcmnet/libsrc/dulconst.cc:485:19: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
     (void) strncpy((char *) b, assoc->calledAPTitle,
            ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             strlen(assoc->calledAPTitle));
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcmnet/libsrc/dulconst.cc:488:19: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
     (void) strncpy((char *) b, assoc->callingAPTitle,
            ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             strlen(assoc->callingAPTitle));
Actions #1

Updated by Marco Eichelberg over 7 years ago

  • Status changed from New to Closed
  • Assignee set to Marco Eichelberg
  • % Done changed from 0 to 100

Closed by commit #0923446.

Actions

Also available in: Atom PDF