diff options
author | Ed Beroset <beroset@mindspring.com> | 2004-12-15 18:26:37 +0000 |
---|---|---|
committer | Ed Beroset <beroset@mindspring.com> | 2004-12-15 18:26:37 +0000 |
commit | b30ff1f2846e709e86896517f93ceed9de2f69e3 (patch) | |
tree | 331fa9ad840d6ae90ad73dca3afdc82afc1df08a /disasm.h | |
parent | fcc50aec8a16a881f1679843d64ca21acaf82cac (diff) | |
download | nasm-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |