dmidecode/dmidecode-fix-memory-array-location-overrun.patch
2011-01-25 17:02:53 +00:00

17 lines
529 B
Diff

Upstream: http://cvs.savannah.gnu.org/viewvc/dmidecode/dmidecode.c?root=dmidecode&r1=1.166&r2=1.167
Fix boundary checks of memory array location codes (DMI type 16).
Reported by Andrey Matveyev.
--- dmidecode/dmidecode.c 2010/11/24 20:48:19 1.166
+++ dmidecode/dmidecode.c 2011/01/25 16:19:42 1.167
@@ -2100,7 +2100,7 @@
if (code >= 0x01 && code <= 0x0A)
return location[code - 0x01];
- if (code >= 0xA0 && code <= 0xA4)
+ if (code >= 0xA0 && code <= 0xA3)
return location_0xA0[code - 0xA0];
return out_of_spec;
}