guilhermito / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

Tiny bug in libdisasm #438

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here's a patch:
--- breakpad/src/third_party/libdisasm/x86_format.c 2010-10-18
17:46:33.000000000 -0700
+++ /home/matthewbg/x86_format.c        2011-07-22 15:44:14.223767000 -0700
@@ -608,7 +608,7 @@
                "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";

Original issue reported on code.google.com by matthe...@google.com on 24 Jul 2011 at 1:35

GoogleCodeExporter commented 9 years ago
Thanks for the patch, I pushed it as r832.

Original comment by ted.mielczarek on 31 Aug 2011 at 4:39