issue 438 - fix array index bug in libdisasm

P=matthewbg@google.com R=ted

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@832 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
ted.mielczarek 2011-08-31 16:38:40 +00:00
parent 1a1890a52a
commit 9f042be4a7

View file

@ -608,7 +608,7 @@ static const char *get_insn_cpu_str( enum x86_insn_cpu cpu ) {
"Pentium 4" // 10
};
if ( cpu <= sizeof(intel)/sizeof(intel[0]) ) {
if ( cpu < sizeof(intel)/sizeof(intel[0]) ) {
return intel[cpu];
} else if ( cpu == 16 ) {
return "K6";