Actions
Bug #5983
closedSaxon.C.API/SaxonApiException.cpp calculates wrong strlen
Start date:
2023-04-19
Due date:
% Done:
100%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.1
Fixed in version:
12.2
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
Lines 86ff:
if(sysId != nullptr) {
//systemId = (char *)sysId;
size_t destination_size = strlen(ec);
systemId = (char *)malloc(sizeof(char)*destination_size);
snprintf(systemId, destination_size, "%s", sysId);
} else {
systemId = nullptr;
}
here strlen(ec) is wrong, it should be strlen(sysId), because this is what snprintf uses.
Please register to edit this issue
Actions