commit 96bab3556113e6684d4a34759042330cdcaba4ff Author: Daniel Swanson Date: Fri Jun 18 10:23:27 2021 -0500 InputFile block reading should respect null flush (really this is an error state either way, but I think this is slightly more correct) diff --git a/lttoolbox/input_file.cc b/lttoolbox/input_file.cc index 2bd9a8f..307c8c9 100644 --- a/lttoolbox/input_file.cc +++ b/lttoolbox/input_file.cc @@ -160,6 +160,9 @@ InputFile::readBlock(const UChar32 start, const UChar32 end) UChar32 c = 0; while (c != end && !eof()) { c = get(); + if (c == '\0') { + break; + } ret += c; if (c == '\\') { ret += get(); @@ -177,6 +180,9 @@ InputFile::finishWBlank() UChar32 c = 0; while (!eof()) { c = get(); + if (c == '\0') { + break; + } ret += c; if (c == '\\') { ret += get();