Enable detect_stack_use_after_return=1 for ASAN options in sanitizer builds

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • DevProd Correctness
    • 2024-12-24, 2025-01-07
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We have written bugs that this feature can detect, so it may be useful to enable it for our sanitizer builds. The stack_use_after_scope detector is enabled by default and detects very similar bugs, but there are certain cases where the return-detector is required when references to stack memory are saved but become invalidated due to the function defining the stack memory returning rather than simply exiting scope. See https://github.com/google/sanitizers/wiki/AddressSanitizerUseAfterReturn for more details. 

            Assignee:
            Sean Lyons
            Reporter:
            George Wangensteen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: