mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-24 13:25:46 +01:00
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:
parent
1a1890a52a
commit
9f042be4a7
2
src/third_party/libdisasm/x86_format.c
vendored
2
src/third_party/libdisasm/x86_format.c
vendored
@ -608,7 +608,7 @@ static const char *get_insn_cpu_str( enum x86_insn_cpu cpu ) {
|
|||||||
"Pentium 4" // 10
|
"Pentium 4" // 10
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( cpu <= sizeof(intel)/sizeof(intel[0]) ) {
|
if ( cpu < sizeof(intel)/sizeof(intel[0]) ) {
|
||||||
return intel[cpu];
|
return intel[cpu];
|
||||||
} else if ( cpu == 16 ) {
|
} else if ( cpu == 16 ) {
|
||||||
return "K6";
|
return "K6";
|
||||||
|
Loading…
Reference in New Issue
Block a user