[commit] r2487 - trunk/GME/Parser
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Thu May 8 10:13:03 CDT 2014
Author: ksmyth
Date: Thu May 8 10:13:03 2014
New Revision: 2487
Log:
Fix use-after-free bug triggered under scripts that reuse IMgaParser and fail to parse. GME-441
Modified:
trunk/GME/Parser/GenParser.h
Modified: trunk/GME/Parser/GenParser.h
==============================================================================
--- trunk/GME/Parser/GenParser.h Mon May 5 16:08:02 2014 (r2486)
+++ trunk/GME/Parser/GenParser.h Thu May 8 10:13:03 2014 (r2487)
@@ -62,6 +62,10 @@
virtual void setDocumentLocator(const Locator *const locator);
virtual void fireStartFunction(const std::tstring& name, const attributes_type& attributes) = 0;
virtual void fireEndFunction(const std::tstring& name) = 0;
+ virtual void resetDocument() {
+ // GME-441
+ locator = NULL;
+ }
public:
const Locator *locator;
More information about the gme-commit
mailing list