Actions
Bug #835
closedWarnings from GCC 8 in dulconst.cc
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