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/sisreqrecord.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/sisreqrecord.h') diff --git a/lib/sisreqrecord.h b/lib/sisreqrecord.h index 80481be..44206a1 100644 --- a/lib/sisreqrecord.h +++ b/lib/sisreqrecord.h @@ -25,6 +25,8 @@ #include "sistypes.h" +#include + class SISFile; /** @@ -38,7 +40,7 @@ public: /** * Populate the fields. */ - void fillFrom(uchar* buf, int* base, SISFile* file); + SisRC fillFrom(uchar* buf, int* base, off_t len, SISFile* file); uint32 m_uid; uint16 m_major; -- cgit v1.2.3