aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sislangrecord.h
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-03-03 22:02:40 +0000
committerDaniel Brahneborg <basic@chello.se>2002-03-03 22:02:40 +0000
commita4dcb0ecf632832258ebb523c6bc39b7b94f8775 (patch)
tree18cf38bb6ecd95671401414c2ba8381b6c90132f /lib/sislangrecord.h
parentd92c2abcca7d9270f49cbfb09a27bfda86642c31 (diff)
downloadplptools-a4dcb0ecf632832258ebb523c6bc39b7b94f8775.tar.gz
plptools-a4dcb0ecf632832258ebb523c6bc39b7b94f8775.tar.bz2
plptools-a4dcb0ecf632832258ebb523c6bc39b7b94f8775.zip
Add buffer overflow checks to handle truncated and corrupted sis files.
Diffstat (limited to 'lib/sislangrecord.h')
-rw-r--r--lib/sislangrecord.h4
1 files changed, 3 insertions, 1 deletions
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 <sys/types.h>
+
#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;
};