Date: Mon, 01 Jun 2020 20:09:35 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 246919] misc/mime-support: run-mailcap TempFile infinite loop Message-ID: <bug-246919-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246919 Bug ID: 246919 Summary: misc/mime-support: run-mailcap TempFile infinite loop Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: oliver@FreeBSD.org Reporter: p-fbsd-bugs@ziemba.us Flags: maintainer-feedback?(oliver@FreeBSD.org) Assignee: oliver@FreeBSD.org Created attachment 215143 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D215143&action= =3Dedit patch for port misc/mime-support to improve tempfile name generation When run-mailcap is called with a filename containing shell metacharacters,= it attempts to symlink a temporary filename to the original file before callin= g a mime-type-specific program to process the file. The subroutine TempFile, which is supposed to return the temporary filename, calls the linux-specific program "tempfile". On FreeBSD this call fails silently, causing TempFile to return an empty string, causing the calling l= oop to iterate endlessly. The attached patch implements two changes: 1. Instead of calling the executable "tempfile", use perl's File::Temp which should work on all platforms 2. If the calling loop reaches fifty iterations, die --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246919-7788>