Coverity DIVIDE_BY_ZERO - CID 10477
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
notify-osd (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https:/
CID: 10477
Checker: DIVIDE_BY_ZERO
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: egg_exp_inc_func()
Code snippet:
960 #endif
961
962 timeline = egg_alpha_
963 frame = egg_timeline_
CID 10477 - DIVIDE_BY_ZERO
Assigning: "n_frames" = "egg_timeline_
On this path, function call "egg_timeline_
964 n_frames = egg_timeline_
965
CID 10477 - DIVIDE_BY_ZERO
Division by expression "n_frames" which may be zero has undefined behavior
966 x = x_alpha_max * frame / n_frames;
967
968 result = CLAMP (egg_pow2x (x) - 1, 0, EGG_ALPHA_
969
affects: | notify-osd → notify-osd (Ubuntu) |
no longer affects: | notify-osd/oneiric |
Source file with Coverity annotations.