added buffer length parameters to prevent vulnerability to buffer
overflow exploits.
This commit is contained in:
parent
fcc50aec8a
commit
b30ff1f284
1 changed files with 3 additions and 3 deletions
6
disasm.h
6
disasm.h
|
@ -11,8 +11,8 @@
|
||||||
|
|
||||||
#define INSN_MAX 32 /* one instruction can't be longer than this */
|
#define INSN_MAX 32 /* one instruction can't be longer than this */
|
||||||
|
|
||||||
long disasm (unsigned char *data, char *output, int segsize, long offset,
|
long disasm (unsigned char *data, char *output, int outbufsize, int segsize,
|
||||||
int autosync, unsigned long prefer);
|
long offset, int autosync, unsigned long prefer);
|
||||||
long eatbyte (unsigned char *data, char *output);
|
long eatbyte (unsigned char *data, char *output, int outbufsize);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue