Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2)

2012-06-18 Thread List_Subs
On Mon, 18 Jun 2012 03:33:00 +0200 a...@tomo.at wrote: Attached patch solves issue for me. During configure neither HAVE_MKSTEMP nor HAVE_MKSTEMPS got defined, therefore function openTempFile in /lib/pdf/xpdf/gfile.cc does not use the randomness of mkstemp. Regards, Thomas Jolly good!

Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2)

2012-06-17 Thread List_Subs
To be honest, I'm not sure quite where naievety comes into this? Of course if anyone out there happens to running ther web server, PHP(fcgi), and the swftools executables with root privileges and full write access, then there may just be a few insecure systems asking to be visited by A. Hacker..

Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2)

2012-06-17 Thread azur
Why do I wish to run several processes of pdf2swf on the same file? In my app pdf2swf is used to creat very small thumbnail previews and higher resolution swfs for a pdf viewer, thats why i start pdf2swf twice on every new pdf input file. Meanwhile further tests revealed, that the error is not

Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2)

2012-06-17 Thread List_Subs
Thomas, On Sun, 17 Jun 2012 17:34:13 +0200 a...@tomo.at wrote: Why do I wish to run several processes of pdf2swf on the same file? In my app pdf2swf is used to creat very small thumbnail previews and higher resolution swfs for a pdf viewer, thats why i start pdf2swf twice on every new pdf

Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2)

2012-06-17 Thread azur
Attached patch solves issue for me. During configure neither HAVE_MKSTEMP nor HAVE_MKSTEMPS got defined, therefore function openTempFile in /lib/pdf/xpdf/gfile.cc does not use the randomness of mkstemp. Regards, Thomas Am 18.06.2012 00:45, schrieb a...@tomo.at: Attached a test szenario

Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2)

2012-06-16 Thread List_Subs
On Fri, 15 Jun 2012 12:38:53 +0200 a...@tomo.at wrote: I have a php script to start several processes of pdf2swf working on the same pdf-file. The question, 'why, would you wish to have several process working on the same file?', sort of pops into my head.. ;o) If started immediately after

Re: [Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2)

2012-06-16 Thread Matt Sergeant
Well let's not be naive here. Lots of people are using swftools on the server. If they are having trouble with temporary files there's a large potential for security issues. Basically always use known secure systems for creating temporary files. Don't invent your own. On 2012-06-16, at 5:47 PM,

[Swftools-common] PDF2SWF Error: Couldn't create temporary font file (swftools 0.9.2)

2012-06-15 Thread azur
I have a php script to start several processes of pdf2swf working on the same pdf-file. If started immediately after each other, only one process survives, all others die with Error: Couldn't create temporary font file logged. It seems to me this is kind of a race condition with faster version