Skip to content

Conversation

@NKID00
Copy link
Contributor

@NKID00 NKID00 commented Nov 9, 2022

Fixed #509: inline namespace in global scope

In function GetScope at InsightsHelpers.cpp:455, when the argument declCtx is a inline namespace in global scope, it becomes the global scope after running the while loop and declCtx->getParent() returns an empty pointer, which causes segmentation fault.

@codecov
Copy link

codecov bot commented Nov 9, 2022

Codecov Report

Merging #510 (576abd9) into main (8a5173a) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #510   +/-   ##
=======================================
  Coverage   97.83%   97.83%           
=======================================
  Files          23       23           
  Lines        3929     3929           
=======================================
  Hits         3844     3844           
  Misses         85       85           
Flag Coverage Δ
insights-windows ?
ubuntu 97.65% <100.00%> (ø)
ubuntu-libcxx 97.40% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
InsightsHelpers.cpp 98.12% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@andreasfertig andreasfertig merged commit 81fe4e1 into andreasfertig:main Nov 10, 2022
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.

inline namespace in global scope causes crash

2 participants