Query module InformationLoss

name
Implicit narrowing conversion in compound assignment
description
Compound assignment statements (for example ‘intvar += longvar’) that implicitly cast a value of a wider type to a narrower type may result in information loss and numeric errors such as overflows.
kind
problem
problem.severity
warning
precision
very-high
id
java/implicit-cast-in-compound-assignment
tags
reliability security external/cwe/cwe-190 external/cwe/cwe-192 external/cwe/cwe-197 external/cwe/cwe-681

Imports

Predicates

Classes