diff options
author | Chris Wilson <chris+github@qwirx.com> | 2011-06-30 21:26:15 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2011-06-30 21:26:15 +0000 |
commit | 4ed5414dd0fb95f8bda5e60861da15ec3bd3e975 (patch) | |
tree | cdac54621936ac54fba43ebc80c38ce9c55bd670 | |
parent | 2dddc59daffcc59389bdd9eb1d1b7415e6a451d3 (diff) |
Hopefully fix off-by-4 read of old-style BackupStoreInfo header, thanks to Sune Mølgaard for reporting.
-rw-r--r-- | lib/backupstore/BackupStoreInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/backupstore/BackupStoreInfo.cpp b/lib/backupstore/BackupStoreInfo.cpp index 6c7a3758..0536634b 100644 --- a/lib/backupstore/BackupStoreInfo.cpp +++ b/lib/backupstore/BackupStoreInfo.cpp @@ -192,6 +192,7 @@ std::auto_ptr<BackupStoreInfo> BackupStoreInfo::Load(int32_t AccountID, { // Read in a header info_StreamFormat_1 hdr; + rf->Seek(0, IOStream::SeekType_Absolute); if(!rf->ReadFullBuffer(&hdr, sizeof(hdr), 0 /* not interested in bytes read if this fails */)) |