Skip to content

Commit 72f1bb6

Browse files
authored
VER: Release 0.39.1
2 parents cb63347 + 85d6d89 commit 72f1bb6

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.39.1 - 2025-07-22
4+
5+
### Bug fixes
6+
- Fixed potential corrupted data in `DbnFileStore::Replay`
7+
38
## 0.39.0 - 2025-07-15
49

510
### Breaking changes

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.24..4.0)
66

77
project(
88
databento
9-
VERSION 0.39.0
9+
VERSION 0.39.1
1010
LANGUAGES CXX
1111
DESCRIPTION "Official Databento client library"
1212
)

pkg/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Databento <support@databento.com>
22
_pkgname=databento-cpp
33
pkgname=databento-cpp-git
4-
pkgver=0.39.0
4+
pkgver=0.39.1
55
pkgrel=1
66
pkgdesc="Official C++ client for Databento"
77
arch=('any')

src/dbn_decoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ const databento::Record* DbnDecoder::DecodeRecord() {
311311
}
312312
}
313313
current_record_ = Record{BufferRecordHeader()};
314-
buffer_.Consume(current_record_.Size());
314+
buffer_.ConsumeNoShift(current_record_.Size());
315315
current_record_ = DbnDecoder::DecodeRecordCompat(
316316
version_, upgrade_policy_, ts_out_, &compat_buffer_, current_record_);
317317
return &current_record_;

src/live_blocking.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,10 @@ const databento::Record* LiveBlocking::NextRecord(
190190
}
191191
current_record_ = Record{BufferRecordHeader()};
192192
const auto bytes_to_consume = current_record_.Size();
193+
buffer_.ConsumeNoShift(bytes_to_consume);
193194
current_record_ =
194195
DbnDecoder::DecodeRecordCompat(version_, upgrade_policy_, send_ts_out_,
195196
&compat_buffer_, current_record_);
196-
// Can't consume til after upgrade as Consume may shift
197-
buffer_.Consume(bytes_to_consume);
198197
return &current_record_;
199198
}
200199

0 commit comments

Comments
 (0)