diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2017-07-29 13:43:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-29 13:43:14 -0500 |
commit | 6ed20195f090558a86984013a28f31005f9ac735 (patch) | |
tree | 56d4fc80e461456dc7b7baa8cc2fa3202b4675b5 /tools/scaninc/asm_file.cpp | |
parent | 8b39cdac9adb52a6e6abd03314056ee5d6003a1b (diff) | |
parent | 0a856fda0c19c5090b8a2ccaab7099147c287faa (diff) |
Merge pull request #392 from camthesaxman/scaninc_fix
fix scaninc buffer overflow crash
Diffstat (limited to 'tools/scaninc/asm_file.cpp')
-rw-r--r-- | tools/scaninc/asm_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scaninc/asm_file.cpp b/tools/scaninc/asm_file.cpp index c3d140bb1..6322749e2 100644 --- a/tools/scaninc/asm_file.cpp +++ b/tools/scaninc/asm_file.cpp @@ -137,7 +137,7 @@ std::string AsmFile::ReadPath() FATAL_INPUT_ERROR("path is too long"); } - return std::string(m_buffer, startPos, length); + return std::string(m_buffer + startPos, length); } void AsmFile::SkipEndOfLineComment() |