1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-26 10:29:31 +00:00

Resolves out-of-bounds reads.

This commit is contained in:
Thomas Harte 2020-11-21 22:36:10 -05:00
parent 3cba3a5ac0
commit 9b45c5a1cd

View File

@ -31,7 +31,7 @@ class ClockStorage {
0x00, 0x02, 0x63, 0x00,
0x03, 0x88, 0x00, 0x4c
};
memcpy(data_, default_data, sizeof(data_));
memcpy(data_, default_data, sizeof(default_data));
memset(&data_[sizeof(default_data)], 0xff, sizeof(data_) - sizeof(default_data));
}