diff options
author | Bhargava Shastry <bshas3@gmail.com> | 2019-12-27 17:50:49 +0100 |
---|---|---|
committer | jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> | 2019-12-27 08:50:49 -0800 |
commit | 62313d93480f2631ea82664c790fd01875b850a6 (patch) | |
tree | d073ece2e42037ab94d1dbb7afd3eb8dc903acfc /projects/xerces-c/xmlProtoConverter.h | |
parent | 65956add1114508bb8b482b6abf9ad2240130c24 (diff) | |
download | oss-fuzz-62313d93480f2631ea82664c790fd01875b850a6.tar.gz |
xml proto converter: Fix ossfuzz issue 19507 (no return value). (#3167)
Diffstat (limited to 'projects/xerces-c/xmlProtoConverter.h')
-rw-r--r-- | projects/xerces-c/xmlProtoConverter.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/projects/xerces-c/xmlProtoConverter.h b/projects/xerces-c/xmlProtoConverter.h index a6333f1b3..501dde36c 100644 --- a/projects/xerces-c/xmlProtoConverter.h +++ b/projects/xerces-c/xmlProtoConverter.h @@ -89,6 +89,11 @@ private: void visit(XmlDocument const&); + template <typename T> + bool isValid(T const& messageType) { + return T::Type_IsValid(messageType.type()); + } + std::string removeNonAscii(std::string const&); std::string getUri(Element_Id _x); std::string getPredefined(Element_Id _x, std::string const&); |