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: 10450
Checker: SECURE_TEMP
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/377.html
File: /tmp/buildd/bamf-0.4.0daily13.01.11/src/bamf-legacy-window.c
Function: bamf_legacy_window_save_mini_icon
Code snippet:
217
218 if (wnck_window_get_icon_is_fallback (window))
219 return NULL;
220
CID 10450 - SECURE_TEMP
{CovLStrv2{{t{{0} creates files with predictable names, which is unsafe.}{"tmpnam(char *)"}}}}
221 tmp = tmpnam (NULL);
222 if (!tmp)
223 return NULL;
224
225 pbuf = wnck_window_get_icon (window);
226 if (!gdk_pixbuf_save (pbuf, tmp, "png", NULL, NULL))
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/CanonicalPr oductStrategy/ Coverity cwe.mitre. org/data/ definitions/ 377.html bamf-0. 4.0daily13. 01.11/src/ bamf-legacy- window. c window_ save_mini_ icon get_icon_ is_fallback (window)) }{"tmpnam( char *)"}}}} get_icon (window);
CID: 10450
Checker: SECURE_TEMP
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: bamf_legacy_
Code snippet:
217
218 if (wnck_window_
219 return NULL;
220
CID 10450 - SECURE_TEMP
{CovLStrv2{{t{{0} creates files with predictable names, which is unsafe.
221 tmp = tmpnam (NULL);
222 if (!tmp)
223 return NULL;
224
225 pbuf = wnck_window_
226 if (!gdk_pixbuf_save (pbuf, tmp, "png", NULL, NULL))