diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-18 10:42:55 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-18 10:42:55 +0100 |
commit | 5ed4504ce0fc510d29492bcf480113f3e01f069e (patch) | |
tree | 8c6cf0c794ebd5aecf23a6cbbd6b4b18e6632b20 /libsi/si.c | |
parent | afebd4b2fba946cbac1309bf282a88d1cc179f62 (diff) | |
download | vdr-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |