cpuinfo parser chokes on multiple : in output

Bug #1180496 reported by Jeff Lane 
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Critical
Jeff Lane 

Bug Description

discovered that on some cpus, you could get a model string that looks like this:

model: AMD Processor: more info

the second ':' causes the parser to choke because it's splitting the string into 3 rather than 2 items.

Related branches

Revision history for this message
Jeff Lane  (bladernr) wrote :

simple fix, after we ganged up on it. The issue is that cpuinfo parser is splitting on all occurances of ':' rather than the first instance.

Changing this to limit maxsplit:

str.split(delimiter,maxsplit)

resolves the issue.

Changed in checkbox:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Jeff Lane (bladernr)
Daniel Manrique (roadmr)
Changed in checkbox:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.