[dashboards] GMVReader warnings
on paraview-branch-master-[fedora33_static_mpi_offscreen_osmesa_python]
https://open.cdash.org/viewBuildError.php?type=1&buildid=7115606
In file included from ../Plugins/GMVReader/Reader/vtkGMVReader.cxx:65:
../Plugins/GMVReader/Reader/gmvread.c: In function 'void GMVRead::readunits(FILE*, int)':
../Plugins/GMVReader/Reader/gmvread.c:3749:17: warning: 'char* strncpy(char*, const char*, size_t)' specified bound depends on the length of the source argument [-Wstringop-overflow=]
3749 | strncpy(&unitstr[i*MAXCUSTOMNAMELENGTH], unitname, GMV_MIN(strlen(unitname), MAXCUSTOMNAMELENGTH-1));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Plugins/GMVReader/Reader/gmvread.c:3749:75: note: length computed here
45 | #define GMV_MIN(a1,a2) ( ((a1) < (a2)) ? (a1):(a2) )
| ~~~~
......
3749 | strncpy(&unitstr[i*MAXCUSTOMNAMELENGTH], unitname, GMV_MIN(strlen(unitname), MAXCUSTOMNAMELENGTH-1));
../Plugins/GMVReader/Reader/gmvread.c:3694:14: warning: 'char* strncpy(char*, const char*, size_t)' specified bound depends on the length of the source argument [-Wstringop-overflow=]
../Plugins/GMVReader/Reader/gmvread.c:1383:13: warning: 'char* strcpy(char*, const char*)' writing one too many bytes into a region of a size that depends on 'strlen' [-Wstringop-overflow=]
Edited by Mathieu Westphal (Kitware)