Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Wcheck-unicode-security

Determines whether the compiler performs source code checking for Unicode vulnerabilities.

Syntax

Linux:

-Wcheck-unicode-security

-Wno-check-unicode-security

Windows:

/Wcheck-unicode-security

/Wno-check-unicode-security

Arguments

None

Default

Wno-check-unicode-security

The compiler does not perform source code checking for Unicode vulnerabilities.

Description

This option determines whether the compiler performs source code checking for Unicode vulnerabilities.

Option Wcheck-unicode-security enables Unicode checking. The compiler will detect and warn about Unicode constructs that can be exploited by using bi-directional formatting codes, zero-width characters in strings, and use of zero-width characters and homoglyphs in identifiers.

Option Wno-check-unicode-security disables Unicode checking.

NOTE:

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

Visual Studio: DPC++: DPC++ > Diagnostics > Check Unicode Security

C/C++: C/C++ > Diagnostics [Intel C++] > Check Unicode Security

Eclipse: DPC++: Intel(R) oneAPI DPC++ Compiler > Diagnostics > Check Unicode Security

C/C++: Intel C++ Compiler > Compilation Diagnostics > Check Unicode Security

Alternate Options

None