Skip to content

Commit

Permalink
[ntuple] assert on valid SealPage() input
Browse files Browse the repository at this point in the history
  • Loading branch information
jblomer committed Jun 21, 2024
1 parent 5e02eb2 commit 54bedfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tree/ntuple/v7/src/RPageStorage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ ROOT::Experimental::Internal::RPageSink::~RPageSink() {}
ROOT::Experimental::Internal::RPageStorage::RSealedPage
ROOT::Experimental::Internal::RPageSink::SealPage(const RSealPageConfig &config)
{
assert(config.fPage);
assert(config.fElement);
assert(config.fBuffer);

unsigned char *pageBuf = reinterpret_cast<unsigned char *>(config.fPage->GetBuffer());
bool isAdoptedBuffer = true;
auto packedBytes = config.fPage->GetNBytes();
Expand Down

0 comments on commit 54bedfe

Please sign in to comment.