diff options
Diffstat (limited to 'devel/nasm/files/patch-ndisasm.c')
-rw-r--r-- | devel/nasm/files/patch-ndisasm.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/nasm/files/patch-ndisasm.c b/devel/nasm/files/patch-ndisasm.c new file mode 100644 index 000000000000..f714fb8c3c66 --- /dev/null +++ b/devel/nasm/files/patch-ndisasm.c @@ -0,0 +1,18 @@ + +$FreeBSD$ + +--- ndisasm.c.orig ++++ ndisasm.c +@@ -243,10 +243,10 @@ + nextsync = next_sync (offset, &synclen); + } + while (p > q && (p - q >= INSN_MAX || lenread == 0)) { +- lendis = disasm (q, outbuf, bits, offset, autosync, prefer); ++ lendis = disasm (q, outbuf, sizeof(outbuf), bits, offset, autosync, prefer); + if (!lendis || lendis > (p - q) || + (unsigned long)lendis > nextsync-offset) +- lendis = eatbyte (q, outbuf); ++ lendis = eatbyte (q, outbuf, sizeof(outbuf)); + output_ins (offset, q, lendis, outbuf); + q += lendis; + offset += lendis; |