Merge pull request #4762 from tomctomc/imgtool_filtbas

fix for (imgtool) filtbas when strings left unterminated in basic lines
This commit is contained in:
R. Belmont 2019-03-20 11:12:55 -04:00 committed by GitHub
commit d78cdc3ccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,6 +116,8 @@ static imgtoolerr_t basic_readfile(const basictokens *tokens,
destf.printf("%u ", (unsigned) line_number);
shift = 0x00;
in_string = false; // in case the last line didn't terminate a string
while((mem_stream->read(&b, 1) > 0) && (b != 0x00))
{
if (b == 0x22)