diff options
author | Enrico Zini <enrico@enricozini.org> | 2010-07-14 20:55:37 +0100 |
---|---|---|
committer | Enrico Zini <enrico@enricozini.org> | 2010-07-14 20:55:37 +0100 |
commit | d7b19b65ac5496d0b3548aa6a0f334539411e1c3 (patch) | |
tree | 56091fd812447de1d2209f8f1e8a40286886f725 /ept | |
parent | 2e81fbafc8d8cd1f0c3544d95c1d4a3ad2fe235e (diff) | |
download | libept-d7b19b65ac5496d0b3548aa6a0f334539411e1c3.tar.gz |
Fixed a potential read-past-end-of-buffer error.
Diffstat (limited to 'ept')
-rw-r--r-- | ept/apt/apt.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ept/apt/apt.cc b/ept/apt/apt.cc index 159b83a..a7ef749 100644 --- a/ept/apt/apt.cc +++ b/ept/apt/apt.cc @@ -296,7 +296,7 @@ struct RecordIteratorImpl lastOffset = vflist[idx]->Offset + vflist[idx]->Size; - return string(buffer+slack); + return string(buffer+slack, vflist[idx]->Size); } }; |