Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
texlive-bin
source-dvipdfm-security.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File source-dvipdfm-security.patch of Package texlive-bin
--- texk/dvipdfm/psimage.c +++ texk/dvipdfm/psimage.c 2003-03-12 18:12:56.000000000 +0000 @@ -113,10 +113,15 @@ { #ifdef HAVE_SYSTEM pdf_obj *result = NULL; - char *tmp, *cmd; + char tmp[] = "/tmp/dvipdfm.XXXXXX", *cmd; + int tfd; FILE *pdf_file = NULL; /* Get a full qualified tmp name */ - tmp = tmpnam (NULL); + tfd = mkstemp (tmp); + if (tfd == -1) { + fprintf (stderr, "\nCouldn't create temporary file for output\n"); + return NULL; + } else close (tfd); if ((cmd = build_command_line (file_name, tmp))) { if (!system (cmd) && (pdf_file = MFOPEN (tmp, FOPEN_RBIN_MODE))) { result = pdf_include_page (pdf_file, p, res_name);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor