ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/readcpu.cpp
(Generate patch)

Comparing BasiliskII/src/uae_cpu/readcpu.cpp (file contents):
Revision 1.7 by gbeauche, 2002-10-03T15:05:01Z vs.
Revision 1.8 by gbeauche, 2002-11-02T17:23:20Z

# Line 255 | Line 255 | static void build_insn (int insn)
255          int pos = 0;
256          int mnp = 0;
257          int bitno = 0;
258 <        char mnemonic[10];
258 >        char mnemonic[64];
259  
260          wordsizes sz = sz_long;
261          int srcgather = 0, dstgather = 0;
# Line 332 | Line 332 | static void build_insn (int insn)
332                      }
333                  }
334                  mnp++;
335 +                if ((unsigned)mnp >= sizeof(mnemonic) - 1) {
336 +                        mnemonic[sizeof(mnemonic) - 1] = 0;
337 +                        fprintf(stderr, "Instruction %s overflow\n", mnemonic);
338 +                        abort();
339 +                }
340              }
341              pos++;
342          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines