1
0
mirror of synced 2025-01-19 01:24:15 +01:00

fix: Loading of Intel Hex and Motorola SREC files with new lines inbetween

Fixes #906
This commit is contained in:
WerWolv 2023-01-26 11:05:51 +01:00
parent b3556c7c91
commit d928325fdf
3 changed files with 6 additions and 1 deletions

View File

@ -715,7 +715,6 @@
"hex.builtin.view.information.region": "Analyzed region",
"hex.builtin.view.information.plain_text": "This data is most likely plain text.",
"hex.builtin.view.information.plain_text_percentage": "Plain text percentage",
"hex.builtin.view.patches.name": "Patches",
"hex.builtin.view.patches.offset": "Offset",
"hex.builtin.view.patches.orig": "Original value",

View File

@ -142,6 +142,9 @@ namespace hex::plugin::builtin {
break;
}
}
while (std::isspace(string[offset]) && offset < string.length())
offset++;
}
} catch (const std::runtime_error &e) {

View File

@ -154,6 +154,9 @@ namespace hex::plugin::builtin {
endOfFile = true;
break;
}
while (std::isspace(string[offset]) && offset < string.length())
offset++;
}
} catch (const std::runtime_error &e) {
return { };