From 9f042be4a7dd90d6ac4f624962deb889264c27c9 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek" Date: Wed, 31 Aug 2011 16:38:40 +0000 Subject: 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 --- src/third_party/libdisasm/x86_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/third_party') diff --git a/src/third_party/libdisasm/x86_format.c b/src/third_party/libdisasm/x86_format.c index aed8cce4..0ec960dc 100644 --- a/src/third_party/libdisasm/x86_format.c +++ b/src/third_party/libdisasm/x86_format.c @@ -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"; -- cgit v1.2.1