added buffer length parameters to prevent vulnerability to buffer

overflow exploits.
This commit is contained in:
Ed Beroset 2004-12-15 18:26:37 +00:00
parent fcc50aec8a
commit b30ff1f284

View file

@ -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