pytorch / cpuinfo

CPU INFOrmation library (x86/x86-64/ARM/ARM64, Linux/Windows/Android/macOS/iOS)
BSD 2-Clause "Simplified" License
992 stars 311 forks source link

warning: 'cpuinfo_arm_fixup_raspberry_pi_chipset' reading 64 bytes from a region of size 9 #78

Closed chenfucn closed 1 year ago

chenfucn commented 2 years ago

It appears to me that here: https://github.com/pytorch/cpuinfo/blob/master/src/arm/linux/chipset.c#L3856

const char revision[restrict static CPUINFO_HARDWARE_VALUE_MAX]

should be

const char revision[restrict static CPUINFO_REVISION_VALUE_MAX]

chenfucn commented 2 years ago

@a76yyyy