https://github.com/hiyohiyo/CrystalDiskInfo/blob/656db0d0904a6c0388f65b074617a1f2eaced0ea/AtaSmart.cpp#L2282commandTypeString has 24 elements (last index 23), if commandType is equal to COMMAND_TYPE::CMD_TYPE_DEBUG of value 24 then that would be outside the array. (Is commandTypeString missing an entry for debug at end which exist in COMMAND_TYPE? Or perhaps the check in if-condition should be changed to "commandType < COMMAND_TYPE::CMD_TYPE_DEBUG"? I'm not sure which...)
https://github.com/hiyohiyo/CrystalDiskInfo/blob/656db0d0904a6c0388f65b074617a1f2eaced0ea/OptionDlg.cpp#L108
m_ColorCode
is accessed at index 128 but the array only has 81 elements.https://github.com/hiyohiyo/CrystalDiskInfo/blob/656db0d0904a6c0388f65b074617a1f2eaced0ea/AtaSmart.cpp#L2282
commandTypeString
has 24 elements (last index 23), ifcommandType
is equal toCOMMAND_TYPE::CMD_TYPE_DEBUG
of value 24 then that would be outside the array. (IscommandTypeString
missing an entry for debug at end which exist inCOMMAND_TYPE
? Or perhaps the check in if-condition should be changed to "commandType < COMMAND_TYPE::CMD_TYPE_DEBUG"? I'm not sure which...)