iotaledger / entangled

enTangle'd is an amalgamation of all things Tangle
Apache License 2.0
113 stars 66 forks source link

utils: system_cpu_available inconsistent return type #1461

Closed semenov-vladyslav closed 4 years ago

semenov-vladyslav commented 4 years ago

system_cpu_available is declared as returning size_t but defined as returning int. This might result in UB, specifically the UB was triggered from iota_pow_flex in binary compiled for trinity on Windows.

semenov-vladyslav commented 4 years ago

Fixed in PR #1462.