Thanks for this useful crate! Running the cpuid binary on an AMD 7713P with overflow detection enabled (either via the debug profile or explicitly enabled) results in a panic:
The problem is that l3cache_size() returns a u16 -- and the cache size here (512) times 512 exceeds a 16-bit quantity; it should be promoted to a u32 before being multiplied:
Thanks for this useful crate! Running the
cpuid
binary on an AMD 7713P with overflow detection enabled (either via the debug profile or explicitly enabled) results in a panic:The problem is that
l3cache_size()
returns a u16 -- and the cache size here (512) times 512 exceeds a 16-bit quantity; it should be promoted to au32
before being multiplied:Thanks again for the crate!