Summary: | Missing check for NULL filename | ||
---|---|---|---|
Product: | cairo | Reporter: | kent worsnop <kworsnop> |
Component: | freetype font backend | Assignee: | Owen Taylor <otaylor> |
Status: | RESOLVED DUPLICATE | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | high | ||
Version: | 0.9.3 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Proposed patch for cairo-ft-font.c |
Description
kent worsnop
2005-08-16 10:11:45 UTC
Created attachment 2898 [details] [review] Proposed patch for cairo-ft-font.c Note the attached patch is wrong as it uses mkstemp and not mktemp. Also the use of mktemp needs to be checked for NULL returns. Another method would be to generate a random number when filename==NULL; We don't need to hash NULL strings uniquely. But the more fundamental issue is that we never need to do any hashing at all when the filename is NULL. *** This bug has been marked as a duplicate of 4110 *** Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.