diff options
author | Daniel Brahneborg <basic@chello.se> | 2002-03-03 22:02:40 +0000 |
---|---|---|
committer | Daniel Brahneborg <basic@chello.se> | 2002-03-03 22:02:40 +0000 |
commit | a4dcb0ecf632832258ebb523c6bc39b7b94f8775 (patch) | |
tree | 18cf38bb6ecd95671401414c2ba8381b6c90132f /lib/sisfileheader.h | |
parent | d92c2abcca7d9270f49cbfb09a27bfda86642c31 (diff) | |
download | plptools-a4dcb0ecf632832258ebb523c6bc39b7b94f8775.tar.gz plptools-a4dcb0ecf632832258ebb523c6bc39b7b94f8775.tar.bz2 plptools-a4dcb0ecf632832258ebb523c6bc39b7b94f8775.zip |
Add buffer overflow checks to handle truncated and corrupted sis files.
Diffstat (limited to 'lib/sisfileheader.h')
-rw-r--r-- | lib/sisfileheader.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sisfileheader.h b/lib/sisfileheader.h index 6f22c59..8c90511 100644 --- a/lib/sisfileheader.h +++ b/lib/sisfileheader.h @@ -23,6 +23,8 @@ #ifndef _SISFILEHEADER_H #define _SISFILEHEADER_H +#include <sys/types.h> + #include "sistypes.h" /** @@ -35,7 +37,7 @@ public: /** * Populate the fields. */ - void fillFrom(uchar* buf, int* base); + SisRC fillFrom(uchar* buf, int* base, off_t len); /** * Update the drive letter, and patch the parsed buffer. |