Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
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

macOS:

-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.

IDE Equivalent

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

Eclipse: Intel C++ Compiler Classic > Compilation Diagnostics > Check Unicode Security

Alternate Options

None