Skip to content

BUG: Fixed stack-use-after-return asan issue with ReadStlFileTest - #1711

Draft
JDuffeyBQ wants to merge 1 commit into
developfrom
fix/asan_stl_test
Draft

BUG: Fixed stack-use-after-return asan issue with ReadStlFileTest#1711
JDuffeyBQ wants to merge 1 commit into
developfrom
fix/asan_stl_test

Conversation

@JDuffeyBQ

Copy link
Copy Markdown
Collaborator
  • GENERATE_COPY deduced the variables as const std::string& instead of std::string which caused a lifetime issue
  • For future reference other solutions that would also work here:
    • Making the constants static
    • Avoiding variables entirely and using string literals directly

* `GENERATE_COPY` deduced the variables as `const std::string&`
instead of `std::string` which caused a lifetime issue
* For future reference other solutions that would also work here:
  * Making the constants `static`
  * Avoiding variables entirely and using string literals directly

Signed-off-by: Jared Duffey <jared.duffey@bluequartz.net>
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.

1 participant