fix: Vector out of bounds access
This commit is contained in:
parent
f243ac7464
commit
a5d202ffc8
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
||||
Subproject commit 31ae5773b099cb48cdd81bc8b6c01e6da94fe672
|
||||
Subproject commit 55324f345e955bdc8ba23b32feeae31acbbc3ffc
|
@ -655,6 +655,7 @@ namespace hex::plugin::builtin {
|
||||
const auto cellBytes = std::min<u64>(validBytes, bytesPerCell);
|
||||
|
||||
// Query cell colors
|
||||
if (x < validBytes) {
|
||||
const auto foregroundColor = queryForegroundColor(byteAddress, &bytes[x], cellBytes);
|
||||
const auto backgroundColor = [&]{
|
||||
auto color = queryBackgroundColor(byteAddress, &bytes[x], cellBytes);
|
||||
@ -675,6 +676,7 @@ namespace hex::plugin::builtin {
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Draw byte columns
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_CellPadding, ImVec2(3, 0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user