CWE-1071 空的代码块

admin 2021年12月28日19:21:46评论34 views字数 756阅读2分31秒阅读模式

CWE-1071 空的代码块

Empty Code Block

结构: Simple

Abstraction: Variant

状态: Incomplete

被利用可能性: unkown

基本描述

The source code contains a block that does not contain any code, i.e., the block is empty.

扩展描述

Empty code blocks can occur in the bodies of conditionals, function or method definitions, exception handlers, etc. While an empty code block might be intentional, it might also indicate incomplete implementation, accidental code deletion, unexpected macro expansion, etc. For some programming languages and constructs, an empty block might be allowed by the syntax, but the lack of any behavior within the block might violate a convention or API in such a way that it is an error.

相关缺陷

  • cwe_Nature: ChildOf cwe_CWE_ID: 1164 cwe_View_ID: 1000 cwe_Ordinal: Primary

  • cwe_Nature: ChildOf cwe_CWE_ID: 1164 cwe_View_ID: 699 cwe_Ordinal: Primary

常见的影响

范围 影响 注释
Other Reduce Reliability

文章来源于互联网:scap中文网

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年12月28日19:21:46
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   CWE-1071 空的代码块http://cn-sec.com/archives/612957.html

发表评论

匿名网友 填写信息