Coverity DIVIDE_BY_ZERO - CID 10479
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: 10479
Checker: DIVIDE_BY_ZERO
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: egg_ramp_func()
Code snippet:
544
545 timeline = egg_alpha_
546
547 current_frame_num = egg_timeline_
CID 10479 - DIVIDE_BY_ZERO
Assigning: "n_frames" = "egg_timeline_
On this path, function call "egg_timeline_
Assigning: "n_frames" = "egg_timeline_
On this path, function call "egg_timeline_
548 n_frames = egg_timeline_
549
At conditional: "current_frame_num > n_frames / 2" taking True branch
At conditional: "current_frame_num > n_frames / 2" taking False branch
550 if (current_frame_num > (n_frames / 2))
551 {
CID 10479 - DIVIDE_BY_ZERO
Division by expression "n_frames / 2" which may be zero has undefined behavior
552 return (n_frames - current_frame_num)
553 * EGG_ALPHA_MAX_ALPHA
affects: | notify-osd → notify-osd (Ubuntu) |
no longer affects: | notify-osd/oneiric |
Source file with Coverity annotations.