Skip to content

stats: initialize store_ parameter on mock histograms#10232

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
snowp:store-ptr
Mar 3, 2020
Merged

stats: initialize store_ parameter on mock histograms#10232
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
snowp:store-ptr

Conversation

@snowp
Copy link
Contributor

@snowp snowp commented Mar 3, 2020

This ensures that the nullptr check in the recordValue default
handler makes sense, preventing UB when the handler is invoked
on a default constructed mock histogram.

Risk Level: Low
Testing: n/a
Docs Changes: n/a
Release Notes: n/a

This ensures that the nullptr check in the recordValue default
handler makes sense, preventing UB when the handler is invoked
on a default constructed mock histogram.

Signed-off-by: Snow Pettersen <kpettersen@netflix.com>
@mattklein123 mattklein123 merged commit 00387a8 into envoyproxy:master Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants