URL:
  <https://savannah.gnu.org/bugs/?55475>

                 Summary: Segmentation fault in relocatep - groff 1.22.3
                 Project: GNU troff
            Submitted by: dannym
            Submitted on: Mon 14 Jan 2019 09:49:51 PM UTC
                Category: Preprocessor preconv
                Severity: 3 - Normal
              Item Group: Crash/Not responding
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

relocatep segfaults when libpipeline invokes preconv in a way that preconv
can't find itself in $PATH (and argv[0] not being an absolute path either).

Reason:

libs/libgroff/relocate.cpp relocatep uses curr_prefix as a source for memcpy,
even though set_current_prefix could end up setting it to 0 (for example when
searchpath failed to find a file whose basename is equal to argv[0] in
$PATH).

That causes preconv to segfault in the case above.

Fix:

Add a "configure" option to disable -DENABLE_RELOCATABLE .

It's not customary to have relocatable things like that in UNIX--and with the
advent of namespaces, I suggest not to do it in the case of UNIX at all (what
for?).




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
bug-groff mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to