diff options
author | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2011-08-31 16:38:40 +0000 |
---|---|---|
committer | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2011-08-31 16:38:40 +0000 |
commit | 9f042be4a7dd90d6ac4f624962deb889264c27c9 (patch) | |
tree | 98c06219fa411bab495f147fa8b918dec2761e03 /src/third_party | |
parent | Adjust MD_CONTEXT_CPU_MASK to reflect reality, fix some code so it can handle... (diff) | |
download | breakpad-9f042be4a7dd90d6ac4f624962deb889264c27c9.tar.xz |
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
Diffstat (limited to 'src/third_party')
-rw-r--r-- | src/third_party/libdisasm/x86_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |