pdns icon indicating copy to clipboard operation
pdns copied to clipboard

dnsdist setTicketsKeyAddedHook(): adjust type of the key to fix potential truncate

Open chbruyand opened this issue 1 year ago • 1 comments

The key received on the lua side might be truncated if it contains the null char. By changing the type of the prototype, the lua wrapper uses the key.size() method to evaluate the actual size.

Short description

Checklist

I have:

  • [x] read the CONTRIBUTING.md document
  • [x] compiled this code
  • [x] tested this code
  • [ ] included documentation (including possible behaviour changes)
  • [ ] documented the code
  • [ ] added or modified regression test(s)
  • [ ] added or modified unit test(s)

chbruyand avatar Oct 12 '24 19:10 chbruyand

Pull Request Test Coverage Report for Build 11308145580

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 117 unchanged lines in 18 files lost coverage.
  • Overall coverage increased (+0.1%) to 64.702%

Files with Coverage Reduction New Missed Lines %
pdns/packethandler.cc 1 72.68%
modules/gpgsqlbackend/gpgsqlbackend.cc 1 88.62%
pdns/pollmplexer.cc 1 83.66%
pdns/recursordist/recursor_cache.cc 1 86.38%
pdns/backends/gsql/gsqlbackend.hh 2 97.71%
pdns/ws-auth.cc 2 80.84%
pdns/recursordist/test-syncres_cc2.cc 3 89.03%
pdns/tsigverifier.cc 3 77.22%
pdns/recursordist/recpacketcache.hh 3 91.04%
pdns/iputils.hh 3 78.29%
<!-- Total: 117
Totals Coverage Status
Change from base Build 11289977798: 0.1%
Covered Lines: 124798
Relevant Lines: 162237

💛 - Coveralls

coveralls avatar Oct 12 '24 19:10 coveralls