From a4dcb0ecf632832258ebb523c6bc39b7b94f8775 Mon Sep 17 00:00:00 2001 From: Daniel Brahneborg Date: Sun, 3 Mar 2002 22:02:40 +0000 Subject: Add buffer overflow checks to handle truncated and corrupted sis files. --- lib/sisfileheader.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/sisfileheader.h') 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 + #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. -- cgit v1.2.3