# | 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 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |