mirror of
https://github.com/pret/pokeruby.git
synced 2026-10-01 23:31:52 -04:00
fix std::string buffer overflow in scaninc
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user