Coverity DIVIDE_BY_ZERO - CID 11347
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: 11347
Checker: DIVIDE_BY_ZERO
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: dbus_test_
Code snippet:
101 self->priv-
102
103 self->priv-
104
CID 11347 - DIVIDE_BY_ZERO
Assigning: "zero" = "0".
105 gint zero = 0;
CID 11347 - DIVIDE_BY_ZERO
In expression "42 / zero", division by expression "zero" which may be zero has undefined behavior.
106 gint land_mine = 42 / zero;
107 land_mine += 0;
108
109 return;
110 }