mirror of
https://github.com/chipsec/chipsec
synced 2026-06-08 13:31:00 +00:00
Strip terminating NULL bytes from the CPU brand.
This commit is contained in:
committed by
BrentHoltsclaw
parent
82fef642e1
commit
87b48aef5b
@@ -54,6 +54,7 @@ class cpu_info(BaseModule):
|
||||
regs = self.cs.cpu.cpuid(eax_val, 0)
|
||||
for i in range(4):
|
||||
brand += bytestostring(struct.pack('<I', regs[i]))
|
||||
brand = brand.rstrip('\x00')
|
||||
self.logger.log('[*] Processor: {}'.format(brand))
|
||||
|
||||
# Get processor version information
|
||||
|
||||
Reference in New Issue
Block a user