Skip to content

Commit

Permalink
add unnecessary sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaklyy committed Nov 24, 2023
1 parent 3690c46 commit f50274b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ void readData(u32* buffer, const u8 bytes)
{
for (int i = 0; i < bytes; i++)
{
if (pointer >= rastertest_data_size) return;

*buffer <<= 8;
*buffer |= rastertest_data[pointer];
pointer++;
Expand Down

0 comments on commit f50274b

Please sign in to comment.