Coverity DIVIDE_BY_ZERO - CID 10934
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: 10934
Checker: DIVIDE_BY_ZERO
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: egg_ramp_dec_func
Code snippet:
506
507 timeline = egg_alpha_
508
509 current_frame_num = egg_timeline_
CID 10934 - DIVIDE_BY_ZERO
On this path, function call "egg_timeline_
Assigning: "n_frames" = "egg_timeline_
510 n_frames = egg_timeline_
511
CID 10934 - DIVIDE_BY_ZERO
In expression "(n_frames - current_frame_num) * 65535 / n_frames", division by expression "n_frames" which may be zero has undefined behavior.
512 return (n_frames - current_frame_num)
513 * EGG_ALPHA_MAX_ALPHA
514 / n_frames;
515 }
no longer affects: | notify-osd/precise |
affects: | notify-osd → notify-osd (Ubuntu) |
Source file with Coverity annotations.