Coverity PW.BRANCH_PAST_INITIALIZATION - CID 10729
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Application Menu Indicator |
Fix Released
|
Medium
|
Charles Kerr | ||
0.4 |
Fix Released
|
Medium
|
Charles Kerr |
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: 10729
Checker: PW.BRANCH_
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: No function name available
Code snippet:
342
343 /* If we can't even find a set that works, let's just cut
344 our losses here */
345 if (num_needle_tokens > num_haystack_
CID 10729 - PW.BRANCH_
transfer of control bypasses initialization of:
variable "distances" (declared at line 350)
variable "final_matches" (declared at line 373)
346 goto cleanup_tokens;
347 }
348
349 /* We need a place to store all the distances */
350 guint * distances = g_new0(guint, num_haystack_tokens * num_needle_tokens);
351
Related branches
- Lars Karlitski (community): Approve
-
Diff: 115 lines (+51/-54)1 file modifiedsrc/distance.c (+51/-54)
Source file with Coverity annotations.