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/sislangrecord.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/sislangrecord.h') diff --git a/lib/sislangrecord.h b/lib/sislangrecord.h index e8dbd06..9a2b5e9 100644 --- a/lib/sislangrecord.h +++ b/lib/sislangrecord.h @@ -23,6 +23,8 @@ #ifndef _SISLANGRECORD_H #define _SISLANGRECORD_H +#include + #include "sistypes.h" /** @@ -36,7 +38,7 @@ public: /** * Populate the fields. */ - void fillFrom(uchar* buf, int* base); + SisRC fillFrom(uchar* buf, int* base, off_t len); uint16 m_lang; }; -- cgit v1.2.3