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/sisfilerecord.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/sisfilerecord.h') diff --git a/lib/sisfilerecord.h b/lib/sisfilerecord.h index d37d64e..ae99836 100644 --- a/lib/sisfilerecord.h +++ b/lib/sisfilerecord.h @@ -25,6 +25,8 @@ #include "sistypes.h" +#include + class SISFile; /** @@ -40,7 +42,7 @@ public: /** * Populate the fields. */ - void fillFrom(uchar* buf, int* base, SISFile* sisFile); + SisRC fillFrom(uchar* buf, int* base, off_t len, SISFile* sisFile); /** * 1 if multiple language versions, otherwise 0. -- cgit v1.2.3