mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Uninitialized value build issue
This commit is contained in:
@@ -142,7 +142,7 @@ namespace hex::plugin::builtin {
|
||||
}, [](std::string value, std::endian endian) -> std::vector<u8> {
|
||||
hex::unused(endian);
|
||||
|
||||
if (value.starts_with("0b"))
|
||||
if (value.size() > 2 && value.starts_with("0b"))
|
||||
value = value.substr(2);
|
||||
|
||||
if (value.size() > 8) return { };
|
||||
|
||||
Reference in New Issue
Block a user