How to resolve the "W1047 Insecure Code '^ operator'" warning?

I have included the "Insecure Code" warnings, and I am wondering how to resolve the following warning:

W1047 Insecure code '^ operator'

Also, why is this considered a "unsafe code"?

+4
source share
2 answers

The documentation says:

You used a data type or operation for which static code analysis cannot prove that it does not overwrite memory. Such code can be considered a security risk.

For example, using GetMem may trigger this warning because the memory block does not have an associated type.

There are only two ways to avoid these warnings:

  • .
  • , .

. , RTL- Embarcadero Delphi, , , . . . , , .

. , - . , , , .

, Delphi.net-. , , .net, . , , , . .

+8

.NET( IMNSHO). .

+5

Source: https://habr.com/ru/post/1653773/


All Articles