mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
From Craig Silverstein: Fix bug when reading large script files.
This commit is contained in:
parent
ed0616c6b7
commit
e5851e4e66
@ -307,6 +307,7 @@ Lex::read_file(std::string* contents)
|
||||
{
|
||||
this->input_file_->file().read(off, sizeof buf, buf, &got);
|
||||
contents->append(reinterpret_cast<char*>(&buf[0]), got);
|
||||
off += got;
|
||||
}
|
||||
while (got == sizeof buf);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user