Fix coverity issues
This commit is contained in:
@@ -760,12 +760,13 @@ void XMLCALL rtengine::LCPProfile::XmlStartHandler(void* pLCPProfile, const char
|
||||
++src;
|
||||
}
|
||||
|
||||
strcpy(pProf->lastTag, src);
|
||||
|
||||
strncpy(pProf->lastTag, src, sizeof(pProf->lastTag) - 1);
|
||||
pProf->lastTag[sizeof(pProf->lastTag) - 1] = 0;
|
||||
const std::string src_str = src;
|
||||
|
||||
if (src_str == "VignetteModelPiecewiseParam") {
|
||||
strcpy(pProf->inInvalidTag, src);
|
||||
strncpy(pProf->inInvalidTag, src, sizeof(pProf->inInvalidTag) - 1);
|
||||
pProf->inInvalidTag[sizeof(pProf->inInvalidTag) - 1] = 0;
|
||||
}
|
||||
|
||||
if (src_str == "CameraProfiles") {
|
||||
|
Reference in New Issue
Block a user