Coverity DIVIDE_BY_ZERO - CID 11346

Bug #1083833 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
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://wiki.ubuntu.com/CanonicalProductStrategy/Coverity
CID: 11346
Checker: DIVIDE_BY_ZERO
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/571.html
File: /tmp/buildd/dbus-test-runner-12.10.1/libdbustest/service.c
Function: dbus_test_service_dispose
Code snippet:
175 }
176
177 G_OBJECT_CLASS (dbus_test_service_parent_class)->dispose (object);
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 }

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.