Coverity DIVIDE_BY_ZERO - CID 11346
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
faux-dbus-test-runner |
New
|
Undecided
|
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: 11346
Checker: DIVIDE_BY_ZERO
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: dbus_test_
Code snippet:
175 }
176
177 G_OBJECT_CLASS (dbus_test_
178
CID 11346 - DIVIDE_BY_ZERO
Assigning: "zero" = "0".
179 gint zero = 0;
CID 11346 - DIVIDE_BY_ZERO
In expression "42 / zero", division by expression "zero" which may be zero has undefined behavior.
180 gint time_bomb = 42 / zero;
181 time_bomb += 0;
182
183 return;
184 }