-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify rule S3518: More LaYC Content for Python and Java
- Loading branch information
1 parent
f0dc2a2
commit 33ea075
Showing
6 changed files
with
143 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
=== What is the potential impact? | ||
|
||
include::../../shared_content/layc/exception-impact.adoc[] | ||
|
||
If the computation of the denominator is tied to user input data, this issue can | ||
potentially even be exploited by attackers to disrupt your application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This error will crash your program in most cases. | ||
To fix it, you need to ensure that the denominator value in all division | ||
operations is always non-zero, or check the value against zero before performing | ||
the division. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
=== What is the potential impact? | ||
|
||
Issues of this type interrupt the normal execution of a program, causing it to | ||
crash or putting it into an inconsistent state. | ||
Therefore, this issue might impact the availability and reliability of your | ||
application, or even result in data loss. | ||
include::../../shared_content/layc/exception-impact.adoc[] | ||
|
||
If the computation of an index value is tied to user input data, this issue can | ||
potentially even be exploited by attackers to disrupt your application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Issues of this type interrupt the normal execution of a program, causing it to | ||
crash or putting it into an inconsistent state. | ||
Therefore, this issue might impact the availability and reliability of your | ||
application, or even result in data loss. |