bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61424] [libgroff] directory traversal in .fp request


From: Dave
Subject: [bug #61424] [libgroff] directory traversal in .fp request
Date: Thu, 23 Dec 2021 21:34:50 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #4, bug #61424 (project groff):

The bug has been fixed, but in case someone else tries the example and is as
puzzled as I was:

[comment #0 original submission:]
> Output:
> 
> 
> $ nroff EXPERIMENTS/hello-dave.roff
> EVIL
> 

I could not for the life of me get this output from groff 1.22.4 given the
described setup (with paths altered to match my local system).  I was finally
able to replicate it by moving ~/bogusfont into ~/devascii/bogusfont, and
altering the pathname in hello-dave.roff to match.  Even though the full path
is in the .fp request, I still needed a dev* directory above bogusfont, and
its name had to match the current output device.  I'm mildly curious why it
worked for Branden without those constraints.

(Another curious constraint is that merely specifying a relative path starting
with ../ was insufficient to trigger the bug; the path had to traverse all the
way up to the root directory and back down for .fp to read the file.)

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61424>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]