Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
etTrans security fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 29, 2023
1 parent 73114bb commit edd9019
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/etTran.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ IntegerVector toCmt(RObject inCmt, CharacterVector& state, const bool isDvid,
warn = warn + std::to_string(warnDvid[i]) + ", ";
}
warn = warn + std::to_string(warnDvid[warnDvid.size()-1]);
Rf_warningcall(R_NilValue, warn.c_str());
Rf_warningcall(R_NilValue, "%s", warn.c_str());
}
if (warnConvertDvid.size() > 0){
Rf_warningcall(R_NilValue, warnC.c_str());
Rf_warningcall(R_NilValue, "%s", warnC.c_str());
}
return out;
} else {
Expand Down Expand Up @@ -647,7 +647,7 @@ List etTransParse(List inData, List mv, bool addCmt=false,
wKeep += " " + as<std::string>(keep[j]);
}
}
Rf_warningcall(R_NilValue, wKeep.c_str());
Rf_warningcall(R_NilValue, "%s", wKeep.c_str());
}
List covUnits(covCol.size());
CharacterVector covUnitsN(covCol.size());
Expand Down Expand Up @@ -1857,7 +1857,7 @@ List etTransParse(List inData, List mv, bool addCmt=false,
doseId.push_back(allId[j]);
}
}
Rf_warningcall(R_NilValue, idWarn.c_str());
Rf_warningcall(R_NilValue, "%s", idWarn.c_str());
redoId=true;
}
}
Expand Down Expand Up @@ -1895,7 +1895,7 @@ List etTransParse(List inData, List mv, bool addCmt=false,
}
}
}
if (!_ini0) Rf_warningcall(R_NilValue, idWarn.c_str());
if (!_ini0) Rf_warningcall(R_NilValue, "%s", idWarn.c_str());
}
if (warnCensNA) Rf_warningcall(R_NilValue, _("censoring missing 'DV' values do not make sense"));
if (warnNaTime) Rf_warningcall(R_NilValue, _("missing 'TIME' values do not make sense (ignored)"));
Expand Down

0 comments on commit edd9019

Please sign in to comment.