Comment 0 for bug 1100551

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote :

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))