Skip to content

ASAN/compile fixes - #2

Merged
Jinming-Hu merged 1 commit into
Jinming-Hu:private_drop_stg104_reffrom
mahmood-openai:dev/mahmood/fix-bifrost-client
Aug 7, 2026
Merged

Jinming-Hu merged 1 commit into
Jinming-Hu:private_drop_stg104_reffrom
mahmood-openai:dev/mahmood/fix-bifrost-client

Conversation

@mahmood-openai

Copy link
Copy Markdown

We needed these changes to get bifrost client to compile and run cleanly under asan

#pragma once

#include <azure/core/http/policies/policy.hpp>
#include <azure/storage/common/internal/constants.hpp>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for HttpHeaderXMsVersion usage below.

private:
Azure::Core::_internal::UniqueHandle<CURL> m_handle;
Azure::Core::_detail::UniqueCURLSHHandle m_sslShareHandle;
Azure::Core::_internal::UniqueHandle<CURL> m_handle;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASAN caught a lifetime issue here, m_handle references m_sslShareHandle, so let's destroy m_handle first.

@Jinming-Hu
Jinming-Hu merged commit c61dab8 into Jinming-Hu:private_drop_stg104_ref Aug 7, 2026
1 check passed
Jinming-Hu added a commit to Azure/azure-sdk-for-cpp that referenced this pull request Aug 7, 2026
…rsion_policy (#7297)

storage_service_version_policy.hpp uses HttpHeaderXMsVersion which is declared in azure/storage/common/internal/constants.hpp, but did not include that header and relied on transitive includes. Add the include directly (include-what-you-use).

Original author of this fix: @mahmood-openai (surfaced in Jinming-Hu#2).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 773f0ec9-93bb-4894-97ed-cf4ad4302896
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