PVS-Studio 7.34 ?????? Java? ?? ??, C#? Unity ?? ?? ??, OWASP ?? ?? ? ??? ??? ?? ??? ???? ???????. ? ????? ?? ??? ?? ????.
??
?? ????? C ?? ?? ?? ?? ??? ??? ????? ?? ?? ??? ??? ?????.
??? ??? ? ???. ??? ??? ?????! ?? ? ?? MISRA ?? ?? ??? ?? ????? ? ?? ??? ?????? :)
??? 7.34 ???? ?? ??? ???????.
V1116
?? ??? ?? ?? ??? ???? ??? ???? ?? ? ????.
? ?? ??? ?? ??? ?? ??? ??? ????? ???????.
???? ??? ?? ?? ? ?? ??? ?? ???? ?? ???? ??? ? ????.
??? PVS-Studio ???? ??? ????? ??? ??? ????.
void SomeCheck(const char *val) { if (!val) throw std::runtime_error { "" }; .... } void Foo() { const char *val = ....; try { SomeCheck(val); // <= } catch(std::runtime_error &err) { std::cerr << err.what() << std::endl; } }
??? ???? SomeCheck ??? ? ???? ?? ??? ????? ?? Foo ???? ?????. ?? ?? std::cerr?? ?? ??? ?? ??? ??? ??? ????? ??? ????.
??? ??? ?????? ???? ????? "??? ???"? ???? ??? ????. ?? ??? ??? ??? ???? ? ??? ???.
? ??? ?? ??? ?????. ??? ?? ?? ????? ???? ??? ?? ??? ?? ??? ??? ? ????.
? ?? ??? ?? ??? ??? ???? ?????.
V1117 [C ??? ??]
??? ?? ??? cv-qualified???. ? ??? ??? ?? ??? ???? ????.
? ?? ??? C ???? ?????.
const ?? ??? ???? ???? ?? ?? ??? ??? ???? ?? ??? ???.
C23 ??(?? 6.7.4.1? 10?? ??)? ??? ??? ??? ???? ???? ?? ??? ?????.
PVS-Studio ???? ??? ???? ?? ?:
typedef int fun_t(void); typedef const fun_t const_qual_fun_t; // <= typedef const fun_t * ptr_to_const_qual_fun_t; // <= void foo() { const fun_t c_fun_t; // <= const fun_t * ptr_c_fun_t; // <= }
? ?? ??? ?? ??? ??? ???? ?????.
V2022 [C ??? ??]
?? ???? ??? ????? ??? ?? ?????.
???? ? ??? ? ??? ? ? ?? C ??? ?? ? ?? ?? ?????.
? ??? ???? ???? ?? ??? ??? ??? ?? ??? ???? ??? ? ????.
PVS-Studio ??? ??? ?? ?:
void SomeCheck(const char *val) { if (!val) throw std::runtime_error { "" }; .... } void Foo() { const char *val = ....; try { SomeCheck(val); // <= } catch(std::runtime_error &err) { std::cerr << err.what() << std::endl; } }
? ??? ?? ???(?:)? ???? ? ?? ?? posOne? posTwo ??? ???? ??? ???? ?????.
? ?? ??? ?? ??? ??? ???? ?????.
V5014 [OWASP ??]
OWASP. ??? ??? ? ?? ???? ????. ?? ???? ?? ??? ??? ? ????. ??? ?? ???? ???? ?? ??????.
??? SAST ??? ???? ??? ??? ?? ??? ?? ?????.
? ??? OWASP ?? ?? ??? ?? ???????.
??? ??? ?? ??? ???? ?? ?????. ?? ???? ??? ????? ?? ??? ??? ? ????.
PVS-Studio ??? ??? ?? ?:
typedef int fun_t(void); typedef const fun_t const_qual_fun_t; // <= typedef const fun_t * ptr_to_const_qual_fun_t; // <= void foo() { const fun_t c_fun_t; // <= const fun_t * ptr_c_fun_t; // <= }
Microsoft ???? ??? CryptoImportKey ? CryptoDestroyKey ??? ? ?? ???? ????. ?? Cryptography Next Generation? ?? ?? ??(BCryptoImportKey ? BCryptoDestroyKey)?? ????? ???.
? ?? ??? ?? ??? ??? ???? ?????.
??? ?? ?? ???? ????! C ? C ?? ??? ????? ?? ??? ?? ? ?? ?? ??? ?? ?????. MISRA ??? ??? ??? ??? ????. ?? ??? ?????? :)
??
? PVS-Studio 7.34 ????? C# ?? Unity ?? ?? ??? ??? ? ??? ???? ?? ?? ??? ?? ?????.
???? ??? ?????.
V3207
'A ?? B? ??' ?? ??? ???? ???? ?? ? ????. 'not' ??? 'or' ??? ? ?? ????? ?????.
? ??? ?? ??? A ?? B? ?? ??? ??? ??? ???? ?? ??? ???. ??? ???? ?? ????? ?? ???? ?????.
PVS-Studio ??? ??? ?? ?:
Orientation GetOrientation (bool b) { int posOne = 1; int posTwo = 2; return b ? posOne : posTwo; // V2022 }
??? ?? ? ?? ???? ?? ? ??? ?? null? ??? ?????.
??? ???? ??? ??? ????. not ???? ????? or ???? ?????? ????. ????? ??? ???? ???? ???? ????. ?? ?? null? ???? ??? ??? true? ???.
? ?? ??? ?? ??? ??? ???? ?????.
V3208 [??? ??]
??? ??. 'UnityEngine.Object'? ?? 'WeakReference'? ???? ?? ???? ????. GC? ???? ??? ???? ?? ??? ??? ???? ???? ????.
??? ??? Unity ?? ?? ??? ? ? ?? ?? ?????.
System.WeakReference? ?? UnityEngine.Object(?? ???? ??? ?? ??)? ??? ???? ?? ??? ???.
?? ???? ????? ????? ???? ??? ?? ??? ??? ??? ?? ?? ? ????.
PVS-Studio ??? ??? ?? ?:
void SomeCheck(const char *val) { if (!val) throw std::runtime_error { "" }; .... } void Foo() { const char *val = ....; try { SomeCheck(val); // <= } catch(std::runtime_error &err) { std::cerr << err.what() << std::endl; } }
????? GameObject ???? ??? ?? ?? ??? ? ? ????. ???? ? ??? ?? ??? ??? ???? ?? ???? ??? ???? ?? ??? ??? ? ????.
? ?? ??? ?? ??? ??? ???? ?????.
V3209 [??? ??]
??? ??. 'Awaitable' ??? ?? ? ? ?? Await? ???? ?? ?? ?? ??? ??? ? ????. ??? ??? ??? ? ?? ???? ?????.
Unity? ? ?? ?? ???? ???? wait ???? ???? ??? UnityEngine.Awaitable ??? ?? ? ???? ??? ?????.
??? ??? ???? ?? ?? ?????.
?? ?? ? Awaitable ??? ?? ?????. ? ? ??? ??? ?? Wait? ???? ??? ?????. ?? ???? ????? ??? ?? ????.
PVS-Studio ??? ??? ?? ?:
typedef int fun_t(void); typedef const fun_t const_qual_fun_t; // <= typedef const fun_t * ptr_to_const_qual_fun_t; // <= void foo() { const fun_t c_fun_t; // <= const fun_t * ptr_c_fun_t; // <= }
? ????? ?? ?? ?? ??? ?????. ??? ???????. ??? Waitable? wait ??? ???? ?? ????. ?? ?? ? ??? ?? ??? ??????. ??? ???? ??? Wait? Waitable? ??????? ?? ??? ?????.
? ?? ??? ?? ??? ??? ???? ?????.
V3210 [??? ??]
??? ??. Unity? 'Destroy' ?? 'DestroyImmediate' ???? ???? 'Transform' ????? ???? ?? ???? ????. ??? ??? ?????.
? ?? ??? ??? UnityEngine.Object ???? Destroy ?? DestroyImmediate ??? ??? ??? ?? ??? ???? ????.
UnityEngine.Transform ??? ??? ???? ???? ??? ?????. ?? ?? ??? ?? ?? ??? ?????. Unity??? ?? ???? Transform ?? ??? ???? ?? ???? ????.
PVS-Studio ??? ??? ?? ?:
Orientation GetOrientation (bool b) { int posOne = 1; int posTwo = 2; return b ? posOne : posTwo; // V2022 }
MonoBehaviour ?? ???? ?? ??? Destroy ???? ??? ???? Transform ???? ????? ?????.
?? ???? ???? ???? Unity??? ?? ???? ????? ???? ??? ???? ????.
? ?? ??? ?? ??? ??? ???? ?????.
V4007 [??? ??]
??? ??. ??? ??? ????? UnityEngine ??? ????? ???? ???. ?? ??? ? ????? ??????.
? ?? ??? ??? ??? ??, ? ?? ??? ???? ???.
?? ??? Unity ???? ???? ??? ??? ??? ??? ??? ? ??? ????? ????.
? ??? ??? ???? ?? ???? ????? Unity ?? ??? ????? ?? ????.
?? ??? ???? ??/??? CPU? ??? ? ?? ??? ??? ??? ?? ??? ??????. ?? ??? ??? ????.
PVS-Studio ??? ??? ?? ?:
void SomeCheck(const char *val) { if (!val) throw std::runtime_error { "" }; .... } void Foo() { const char *val = ....; try { SomeCheck(val); // <= } catch(std::runtime_error &err) { std::cerr << err.what() << std::endl; } }
?? Update ?????? ?? ?? _instance? ???? ?????. Update? ???? ????? ??? ?????, ???? ??? ??? ??? ?? ????.
? ?? ??? ?? ??? ??? ???? ?????.
??? ?? Unity ?? ??? ?? ???? ?????! ?? ?? ??? ?? ??? ????? :)
? ?? ?...
C# ???? ??? ?? ?? ? ??? ?? ? ??? ?? ?? ?? ??? ???? ????. ??? ????? ??? ?????.
?? ?? ?????.
typedef int fun_t(void); typedef const fun_t const_qual_fun_t; // <= typedef const fun_t * ptr_to_const_qual_fun_t; // <= void foo() { const fun_t c_fun_t; // <= const fun_t * ptr_c_fun_t; // <= }
Example() ???? Foo()? ?? ?? null?? ?????. ?? ?? ?? ???? Foo() ???? ?? ???? ?? ?? ?? ??????.
???? ???? ?? ????? ???? ?? ?? ???? ??? ??? ??? ? ?? ??? ??????. null? ??? ? ??? ???? ? ???? ??????.
?? ???? Foo()? ? ?? ?? ??? ?? ???? ??? ??? ?? ?????.
??? ??? ?? ??? ?? ???????...
Orientation GetOrientation (bool b) { int posOne = 1; int posTwo = 2; return b ? posOne : posTwo; // V2022 }
Foo() ??? ???? _condition == true? ? ???? null? ??? ????? ?? ? ? ????.
???? ? ?? ?? ?? _condition ?? ??? ???? Foo() ??? ??? ??? ??? ?? Foo()? ?? ?? ????? ? ??? ?????.
????? ??? ???? ?? ??? ?????.
?? C# ???? .NET 9 ???? ??? ?????! ???? PVS-Studio 7.34? ??? ??? ?? ??? ??? ?? ??? ?????.
??
PVS-Studio 7.34? ????? ?? Java ???? ?? ?? ????? ?????!
? ????? SQL ?? ????? ? ?? ?? ??? ??? ?????. Java ???? ?? ????? SAST, ?? ???? ??? ???? ??? OWASP ?? 10? ?? ? ?? ?? ?? ?? ??? ??? ? ????.
??? ??? ?? ? ?? ??? ?? ?? ???? ???????.
V6123
??/?? ?? ??? ??? ???? ?? ???? ????.
? ??? ?? ??? ?? ?? ?? ???? ?? ?? ??? ?????.
??? ??? ????? ? ????? ??? ???? ???? ??? 1? ???? ????? ????.
PVS-Studio ??? ??? ?? ?:
void SomeCheck(const char *val) { if (!val) throw std::runtime_error { "" }; .... } void Foo() { const char *val = ....; try { SomeCheck(val); // <= } catch(std::runtime_error &err) { std::cerr << err.what() << std::endl; } }
????calculateSomething ???? ???? ?? ??? ?? ????.
? ?? ??? ?? ??? ??? ???? ?????.
V6124
?? ???? ? ??? ? ?? ???? ???? ????? ?????.
? ?? ??? ???? ? ? ??? ???? ???? ?????.
PVS-Studio ??? ??? ?? ?:
typedef int fun_t(void); typedef const fun_t const_qual_fun_t; // <= typedef const fun_t * ptr_to_const_qual_fun_t; // <= void foo() { const fun_t c_fun_t; // <= const fun_t * ptr_c_fun_t; // <= }
??? ??? ??? ??? ??? ?? ???? ????? ?????.
??? ??? ???? ????? ??? ?? ?? ?? ?????.
? ?? ??? ?? ??? ??? ???? ?????.
V6125
???? ???? ???? 'wait', 'notify' ? ??'notifyAll' ???? ???? 'IllegalMonitorStateException'? ?????.
? ??? ??? ??? ???? ? ??? ???.
PVS-Studio ??? ??? ?? ?:
Orientation GetOrientation (bool b) { int posOne = 1; int posTwo = 2; return b ? posOne : posTwo; // V2022 }
???? ????? ?? ?????? ??? ? ?? wait, inform ? informAll ???? ?????. ???? ???? ??? ???? ?? ?????. ?, ?? ??? ???? ????? ???? ???? ????? ?????.
wait, inform ?? informAll ???? ????? ?? ????? ??? ???? ???? IllegalMonitorStateException ??? ?????.
? ?? ??? ?? ??? ??? ???? ?????.
V5309 [OWASP ??]
OWASP. SQL ??? ?????. ????? ??? ???? SQL ??? ???? ? ?????.
Java ???? ? ?? Taint ?? ?? ??! ? ????? ???, ?? ???? ???? SQL ??? ??? ? ????.
SQL ??? ???? ??? ??? SQL ??? ??? ? ?? ??????. ??? ?? ???? ???? ?? ?? ???? ???? ??? ??????? ??? ??? ???? ???? ???? ? ????.
void SomeCheck(const char *val) { if (!val) throw std::runtime_error { "" }; .... } void Foo() { const char *val = ....; try { SomeCheck(val); // <= } catch(std::runtime_error &err) { std::cerr << err.what() << std::endl; } }
???? ???? ??? ???? param? ?? ?? ??? ?? ??:- "111' ?? 1=1; ??? ??? ??; ' "? ???? ??? ???? ??? ? ????. ??? ?? ???? ???? ?? ?????.
? ?? ??? ?? ??? ??? ???? ?????.
????? ?????!
?? ???? ??? ?? ?? ???? ?? ??? ??? ?? ?????. ?????, ??? ???? ??? ?? ????. :)
? ??? PVS-Studio 4? ??? ?? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











?? ?? ?? ??? ??? ?? ??? ??, ? ? ?? ? ??? ?????. 1. ??? ?? ???? ?? ???? ???-????, ? ??? ??? ??? ? ????, Hashmap? ???-??? ?? ??? ??? ???? ????. 2. NULL ? ?? ???? HashMap? ??? NULL ?? ?? ? ?? ???? ?? HashTable? NULL ?? ?? ???? ??? NullPointerException? ?????. 3. ????? ??? ????? ?? ??? ?? ?? ? ????? HashTable? ? ??? ?? ?? ??? ????. ?? ConcurrenTashMap? ???? ?? ????.

staticmethodsininterfaceswereIntRectionSelffacesswithinteffaceswithinteffaceswithintintinjava8toallowutilityFunctionswithinterfaceitswithinteffaceswithinterfaceffaces

JIT ????? ??? ???, ??? ?? ? ???, ?? ?? ? ???? ? ? ?? ?? ??? ? ?? ??? ?? ??? ??????. 1. ??? ???? ?? ?? ??? ??? ?? ?? ???? ??? ?? ?????. 2. ??? ?? ? ??? ?? ?? ? ??? ???? ?? ?? ???; 3. ?? ??? ??? ?? ??? ???? ???? ???? ? ?? ?? ??? ?????. 4. ?? ??? ?? ??? ??? ???? ???? ?? ? ??? ???? ?? ??? ?????.

???? ??? ??? Java?? ??? ?? ???? ??? ?? ? ? ??? ??? ???? ? ?????. ?? ???? ??? ??, ??? ?? ??? ?? ?? ??? ??? ????? ???? ????? ?????. ?? ??? ??? ??, ????? ? ??? ????, ?? ??? ??? ?????? ? ?? ? ?? ?????.

??? ??? ?? ?? ??? ????? ? ???? ????? ???? ?? ???? ?? ???? ?????. ?? ??? ??? ????. ?? ?? ?? ??? ???? ???? ?? ?? ??? ??? ?? ?? ??? ??? ?????. ?? ??? ??? ????. ?? ??? ?? ??? ?? ?? ??? ?? ?? ??? ???? NewClass ()? ??? ?? ???? ????. ?? ??? ?? ??? ???? ?? ??? ?? ? ? ??? ?? ?? ??? ????? ????? ?????. ?? ??, ?? ?????? ?????, ??? ? ?? ????? ??? ?? ?????. ???? ?? ?? ??? ???? ?? ???? ?? ? ??? ???? ?? ??? ?? ?????? ?????. ???? ???? ??? ??, ?? ?? ? ?? ??? ????, ?? ?? ???? ?????.

??? ? ?? ??? ???? : ????? ?? ?. 1. int? ???? ???? ?? ?? ?? ? ??? ???? ?????. 2. ?? ? ???? (int) myDouble ??? ?? ?? ??? ?????. ?? ??? ??? ?? ??? ?? ??, ?? ?? ?? ???? ?? ??? ?? ???? ?? ?????. ???? ? ??? ??? ????. ?? ??? ??? ??? ??? ??? ?? ??? ??? ? ??? ?? ???? ??? ??? ??? ??? ? ??? ?? ??? ?? ??? ?? ?? ? ? ????. ?? ?? ??? ?? ??? ??? ??? ??? ? ??????.

Java? ?? ??? ??? ?? ??? ??? ?? ??? ??? ?? ??? ?? ?? ??? ???? ??? ?? ???? ?????. 1. ??? ???? ??? ?? ?? ? ???? ?? ??? ???? ?? ?? ??? ? ????. 2. ???? ?? ??? ???? ??? ?? ???? ?? ?? ??? ???????. 3. ?? ???? ?? ?? ?? ? ???? ???? ?? NULL ?? ??? ? ????. 4. ?? ???? ??? ?? ?? ? ??? ?????? ?? ??? ??? ?? ?? ??? ????? ??? ??? ??? ??????? ?? ???? ??????.

injava, thefinalkeywordpreventsavariable'svalue'svalueffrombeingchangedafterassignment, butitsbehaviordiffersforprimitivesandobjectreences.forprimitivevariables, asinfinalintmax_speed = 100; wherereassoncesanerror.forobjectref
