ABAP

ABAP : Potential division by zero

Classification

Overview

A division by zero can lead to an unintended result.

Division by zero causes an exception. However, the exception cx_sy_zerodivide does not occur if the dividend is also zero when divided by zero. In this case, the division in ABAP results in the result 0.

Division by zero often occurs when calculating values of the variables that store length, width, height of some object. If the value of the argument that eventually causes division by zero is obtained from an untrusted source, an attacker can disrupt the normal operation of the application.

MEDIUM

DerScanner Severity Score

Check your ABAP code for this vulnerability, free

Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.

Try it on your code, free

By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.

How DerScanner analyses ABAP code