summaryrefslogtreecommitdiff
path: root/disasm.h
diff options
context:
space:
mode:
authorEd Beroset <beroset@mindspring.com>2004-12-15 18:26:37 +0000
committerEd Beroset <beroset@mindspring.com>2004-12-15 18:26:37 +0000
commitb30ff1f2846e709e86896517f93ceed9de2f69e3 (patch)
tree331fa9ad840d6ae90ad73dca3afdc82afc1df08a /disasm.h
parentfcc50aec8a16a881f1679843d64ca21acaf82cac (diff)
downloadnasm-b30ff1f2846e709e86896517f93ceed9de2f69e3.tar.gz
nasm-b30ff1f2846e709e86896517f93ceed9de2f69e3.tar.bz2
nasm-b30ff1f2846e709e86896517f93ceed9de2f69e3.zip
added buffer length parameters to prevent vulnerability to buffer
overflow exploits.
Diffstat (limited to 'disasm.h')
-rw-r--r--disasm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/disasm.h b/disasm.h
index 16cdbda..6133751 100644
--- a/disasm.h
+++ b/disasm.h
@@ -11,8 +11,8 @@
#define INSN_MAX 32 /* one instruction can't be longer than this */
-long disasm (unsigned char *data, char *output, int segsize, long offset,
- int autosync, unsigned long prefer);
-long eatbyte (unsigned char *data, char *output);
+long disasm (unsigned char *data, char *output, int outbufsize, int segsize,
+ long offset, int autosync, unsigned long prefer);
+long eatbyte (unsigned char *data, char *output, int outbufsize);
#endif