Coverity DIVIDE_BY_ZERO - CID 13651
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
overlay-scrollbar | Status tracked in Trunk | |||||
Trunk |
Invalid
|
High
|
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: 13651
Checker: DIVIDE_BY_ZERO
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: os_animation_new
Code snippet:
120 priv->update_func = update_func;
121 priv->end_func = end_func;
122 priv->user_data = user_data;
123 priv->duration = (gint64) duration * G_GINT64_CONSTANT (1000);
CID 13651 - DIVIDE_BY_ZERO
In expression "1000 / rate", division by expression "rate" which may be zero has undefined behavior.
124 priv->rate = 1000 / rate;
125
126 return animation;
127 }
128
129 /**
Source file with Coverity annotations.