aboutsummaryrefslogtreecommitdiff
path: root/projects/xerces-c/xmlProtoConverter.h
diff options
context:
space:
mode:
authorBhargava Shastry <bshas3@gmail.com>2019-12-27 17:50:49 +0100
committerjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2019-12-27 08:50:49 -0800
commit62313d93480f2631ea82664c790fd01875b850a6 (patch)
treed073ece2e42037ab94d1dbb7afd3eb8dc903acfc /projects/xerces-c/xmlProtoConverter.h
parent65956add1114508bb8b482b6abf9ad2240130c24 (diff)
downloadoss-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.h5
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&);