Skip to content

Comments

Fix stack-use-after-scope in any.h detected by asan#441

Open
eklitzke wants to merge 1 commit intoflann-lib:masterfrom
eklitzke:master
Open

Fix stack-use-after-scope in any.h detected by asan#441
eklitzke wants to merge 1 commit intoflann-lib:masterfrom
eklitzke:master

Conversation

@eklitzke
Copy link

When calling get_param in util.h this bug causes a reference to be returned to an address on the stack.

@isaactian
Copy link

isaactian commented Jul 8, 2021

This bug pops up for me only when using optimization flags and it completely wrecks the flann neighbor search. Appears to corrupt the data structure in the flann matrix somehow but again only when -O(1, 2, 3) is enabled during compilation.

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.

2 participants