Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 851
    • Issues 851
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 49
    • Merge requests 49
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !2293

glib-private: Fix MSVC build with AddressSanitizer

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Seungha Yang requested to merge seungha.yang/glib:msvc-asan-build into main Oct 13, 2021
  • Overview 4
  • Commits 1
  • Pipelines 2
  • Changes 1

MSVC supports AddressSanitizer as well via "/fsanitize=address" option, but __lsan_ignore_object() equivalent feature is not supported. Note that there's __declspec(no_sanitize_address) specifier which provides a similar feature but that's not runtime behavior so it's not directly applicable to g_ignore_leak() family.

See also https://docs.microsoft.com/en-us/cpp/sanitizers/asan-building?view=msvc-160

Edited Oct 13, 2021 by Seungha Yang
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: msvc-asan-build