Don't allow quat="0 0 0 0" in XML.

PiperOrigin-RevId: 557535436
Change-Id: Ie71246da5fff67a7cc37cb1801dd88d4a79b5766
This commit is contained in:
Yuval Tassa
2023-08-16 10:46:29 -07:00
committed by Copybara-Service
parent 15d74ba939
commit cf310079e2
4 changed files with 36 additions and 5 deletions
+3
View File
@@ -145,6 +145,9 @@ class mjXUtil {
T* data, std::string& text,
bool required = false, bool exact = true);
static int ReadQuat(tinyxml2::XMLElement* elem, const char* attr, double* data,
std::string& text, bool required = false);
// deprecated: use ReadAttrVec
static int ReadVector(tinyxml2::XMLElement* elem, const char* attr,
std::vector<double>& vec, std::string& text, bool required = false);