summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
authorGravatarGravatar tomctomc <tomctomc@users.noreply.github.com>2017-04-23 18:39:52 -0400
committerGravatarGravatar tomctomc <tomctomc@users.noreply.github.com>2019-03-15 12:17:32 -0400
commit3c3e719550bc8f2eba6fde8742483ce0ded51b4c (patch)
tree4526b9564ad4f0d77782f0eecbbffdabba636a2a /src/tools
parent45c31793ad78d8d6814096b7640dbc73a6ef1fc7 (diff)
fix for filtbas when strings left unterminated in basic lines
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/imgtool/filtbas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/imgtool/filtbas.cpp b/src/tools/imgtool/filtbas.cpp
index c626fb25b86..10da0694844 100644
--- a/src/tools/imgtool/filtbas.cpp
+++ b/src/tools/imgtool/filtbas.cpp
@@ -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)