commit | e86245a09bb8b9e72f5dc68083444ec938865798 | [log] [tgz] |
---|---|---|
author | Zonr Chang <zonr@google.com> | Tue Oct 12 21:42:13 2010 +0800 |
committer | Zonr Chang <zonr@google.com> | Tue Oct 12 21:42:13 2010 +0800 |
tree | 6e933cbf83460cf1bc2b8fbd18eed78d245ef667 | |
parent | 641558f02fe6ce0ee3ae5076eb366c25e2ad5903 [diff] [blame] |
Fix potential memory corruption in checkODR().
diff --git a/slang_rs.h b/slang_rs.h index 613de76..025861d 100644 --- a/slang_rs.h +++ b/slang_rs.h
@@ -60,7 +60,9 @@ bool generateBitcodeAccessor(const std::string &OutputPathBase, const std::string &PackageName); - bool checkODR(); + // CurInputFile is the pointer to a char array holding the input filename + // and is valid before compile() ends. + bool checkODR(const char *CurInputFile); protected: virtual void initDiagnostic();