CWE-1078: Inappropriate Source Code Style or Formatting

Export to Word

Description

The source code does not follow desired style or formatting for indentation, white space, comments, etc.

Extended Description

N/A


ThreatScore

Threat Mapped score: 1.8

Industry: Finiancial

Threat priority: P4 - Informational (Low)


Observed Examples (CVEs)

Related Attack Patterns (CAPEC)

N/A


Attack TTPs

N/A

Modes of Introduction

Phase Note
None listed.

Common Consequences

Potential Mitigations

Applicable Platforms


Demonstrative Examples

Intro: The usage of symbolic names instead of hard-coded constants is preferred.

Body: The following is an example of using a hard-coded constant instead of a symbolic name.

char buffer[1024]; ... fgets(buffer, 1024, stdin);

Notes

← Back to CWE list