mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Daniel Gerber <dg@atufi.org>
To: musl@lists.openwall.com
Subject: [musl] Bug in mntent.c: whitespace characters are not escaped
Date: Tue, 14 Dec 2021 10:01:09 +0100	[thread overview]
Message-ID: <87o85j8sru.fsf@atufi.org> (raw)

Hello,

The musl implementation of getmntent does not handle octal escape sequences
as the manual getmntent(3) says:

> Since fields in the mtab and fstab files are separated by
> whitespace, octal escapes are used to represent the characters
> space (\040), tab (\011), newline (\012), and backslash (\\) in
> those files when they occur in one of the four strings in a
> mntent structure.  The routines addmntent() and getmntent() will
> convert from string representation to escaped representation and
> back.  When converting from escaped representation, the sequence
> \134 is also converted to a backslash.

(See resulting bug <https://github.com/libfuse/libfuse/issues/634>.)


Best,

Daniel Gerber
--

                 reply	other threads:[~2021-12-14 11:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o85j8sru.fsf@atufi.org \
    --to=dg@atufi.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).