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/siscomponentrecord.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/siscomponentrecord.h') diff --git a/lib/siscomponentrecord.h b/lib/siscomponentrecord.h index 4b03793..f2a85da 100644 --- a/lib/siscomponentrecord.h +++ b/lib/siscomponentrecord.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); /** * Return the name for the given language. -- cgit v1.2.3