Don't use user input as a format string in mjCError.
PiperOrigin-RevId: 469686222 Change-Id: Icb05df04f11387847aa8d66dcf1b63da9c470b9f
This commit is contained in:
committed by
Copybara-Service
parent
090fe2db3f
commit
00fcd10b20
@@ -540,7 +540,7 @@ void mjCMesh::LoadOBJ(const mjVFS* vfs) {
|
|||||||
std::stringstream msg;
|
std::stringstream msg;
|
||||||
msg << "could not parse OBJ file '" << filename << "': \n"
|
msg << "could not parse OBJ file '" << filename << "': \n"
|
||||||
<< objReader.Error();
|
<< objReader.Error();
|
||||||
throw mjCError(this, msg.str().c_str());
|
throw mjCError(this, "%s", msg.str().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
auto attrib = objReader.GetAttrib();
|
auto attrib = objReader.GetAttrib();
|
||||||
|
|||||||
Reference in New Issue
Block a user