Skip to content

dnsdist: Appease clang++ 12 asan on MacOS#9925

Merged
omoerbeek merged 1 commit intoPowerDNS:masterfrom
omoerbeek:dnsdist-test-reserve-vs-resize
Jan 8, 2021
Merged

dnsdist: Appease clang++ 12 asan on MacOS#9925
omoerbeek merged 1 commit intoPowerDNS:masterfrom
omoerbeek:dnsdist-test-reserve-vs-resize

Conversation

@omoerbeek
Copy link
Member

MacOS clang++ 12 with asan does not like to access a vector of bytes
outside it's begin()..end(), even thouh we assured there is capacity.
So make sure the size is set before groping inside the vector.

Short description

Checklist

I have:

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

MacOS clang++ 12 with asan does not like to access a vector of bytes
outside it's begin()..end(), even thouh we assured there is capacity.
So make sure the size is set before groping inside the vector.
@omoerbeek omoerbeek changed the title Appease clang++ 12 asan on MacOS dnsdist: Appease clang++ 12 asan on MacOS Jan 8, 2021
@omoerbeek omoerbeek requested a review from rgacogne January 8, 2021 13:05
@rgacogne rgacogne added the defect label Jan 8, 2021
@rgacogne rgacogne added this to the dnsdist-1.6.0 milestone Jan 8, 2021
@omoerbeek omoerbeek merged commit ac6905a into PowerDNS:master Jan 8, 2021
@omoerbeek omoerbeek deleted the dnsdist-test-reserve-vs-resize branch January 8, 2021 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants