mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Don't spin in an infinite loop if the decoder tries to find a data record and
the matcher fails to find anything, leaving the seek point unchanged.
This commit is contained in:
@@ -114,6 +114,8 @@ public:
|
||||
auto idbits = readRawBits(16);
|
||||
const Bytes idbytes = decodeFmMfm(idbits);
|
||||
uint8_t id = idbytes.slice(0, 1)[0];
|
||||
if (eof())
|
||||
return RecordType::UNKNOWN_RECORD;
|
||||
seek(here);
|
||||
|
||||
switch (id)
|
||||
|
||||
Reference in New Issue
Block a user