Coverity DIVIDE_BY_ZERO - CID 11347

Bug #1083837 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: 11347
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_init
Code snippet:
101 self->priv->dbus_configfile = g_strdup(DEFAULT_SESSION_CONF);
102
103 self->priv->first_time = TRUE;
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 }

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : faux-dbus-test-runner-2.0: /tmp/buildd/dbus-test-runner-12.10.1/libdbustest/service.c

Source file with Coverity annotations.

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.