Skip to content

Commit

Permalink
fix(lib): codeql report
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Jun 14, 2024
1 parent 472baa6 commit 9f8b61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/format/GMA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ bool GMA::verifyFileChecksum() const {
return true;
}

auto checksum = *reinterpret_cast<std::uint32_t*>(data.data() + data.size() - sizeof(std::uint32_t));
auto checksum = *(reinterpret_cast<std::uint32_t*>(data.data() + data.size()) - 1);
data.pop_back();
data.pop_back();
data.pop_back();
Expand Down

0 comments on commit 9f8b61c

Please sign in to comment.