[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61892] [pdfpic] makes too much noise if .PDFPIC file argument none
From: |
G. Branden Robinson |
Subject: |
[bug #61892] [pdfpic] makes too much noise if .PDFPIC file argument nonexistent |
Date: |
Thu, 20 Jan 2022 23:11:22 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
URL:
<https://savannah.gnu.org/bugs/?61892>
Summary: [pdfpic] makes too much noise if .PDFPIC file
argument nonexistent
Project: GNU troff
Submitted by: gbranden
Submitted on: Fri 21 Jan 2022 04:11:21 AM UTC
Category: Macro - others/general
Severity: 3 - Normal
Item Group: Warning/Suspicious behaviour
Status: In Progress
Privacy: Public
Assigned to: gbranden
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
$ ./build/test-groff -U -Tpdf EXPERIMENTS/gnu.groff >| EXPERIMENTS/gnu2.pdf
I/O Error: Couldn't open file 'GNU.pdf': No such file or directory.
troff:EXPERIMENTS/gnu.groff:3: error: division by zero
Failed to open PDF 'GNU.pdf'
That's too much chatter, and might lead a high-strung user, nervous about
"unsafe mode", to assume they're suffering some sort of attack.
Make this more robust. Since we're unsafe already, we can shell out to test
for the existence of the file argument, though there are of course the classic
TOCTTOU problems that arise from this, and there probably aren't portable
enough ways to acquire an actually-existing file with a lock. Oh well, I
guess that's why they call it "unsafe mode".
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61892>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #61892] [pdfpic] makes too much noise if .PDFPIC file argument nonexistent,
G. Branden Robinson <=