summaryrefslogtreecommitdiff
path: root/libsi/si.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-18 10:42:55 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-18 10:42:55 +0100
commit5ed4504ce0fc510d29492bcf480113f3e01f069e (patch)
tree8c6cf0c794ebd5aecf23a6cbbd6b4b18e6632b20 /libsi/si.c
parentafebd4b2fba946cbac1309bf282a88d1cc179f62 (diff)
downloadvdr-5ed4504ce0fc510d29492bcf480113f3e01f069e.tar.gz
vdr-5ed4504ce0fc510d29492bcf480113f3e01f069e.tar.bz2
Changed offset and size handling in 'libsi' from 'unsigned' to 'signed', so that overflows can be better detected
Diffstat (limited to 'libsi/si.c')
-rw-r--r--libsi/si.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsi/si.c b/libsi/si.c
index 90d40303..bbd3f1af 100644
--- a/libsi/si.c
+++ b/libsi/si.c
@@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: si.c 1.14 2005/05/28 14:11:16 kls Exp $
+ * $Id: si.c 1.15 2006/02/18 10:38:20 kls Exp $
* *
***************************************************************************/
@@ -22,7 +22,7 @@ Object::Object() {
Object::Object(CharArray &d) : data(d) {
}
-void Object::setData(const unsigned char*d, unsigned int size, bool doCopy) {
+void Object::setData(const unsigned char*d, int size, bool doCopy) {
data.assign(d, size, doCopy);
}
@@ -30,7 +30,7 @@ void Object::setData(CharArray &d) {
data=d;
}
-bool Object::checkSize(unsigned int offset) {
+bool Object::checkSize(int offset) {
return data.checkSize(offset);
}