Skip to content

Commit 39d1eaa

Browse files
fix integer overflow in hawkeye/src/sbox_database.cpp (#611)
1 parent 54faa98 commit 39d1eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hawkeye/src/sbox_database.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ namespace hal
304304
return ERR("S-box '" + name + "' has bit-size greater 8, but only S-boxes of up to 8 bits are supported");
305305
}
306306

307-
for (u8 alpha = 0; alpha < sbox.size(); alpha++)
307+
for (size_t alpha = 0; alpha < sbox.size(); alpha++)
308308
{
309309
std::vector<u8> sbox_alpha;
310310
for (u32 i = 0; i < sbox.size(); i++)

0 commit comments

Comments
 (0)