Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <87o85j8sru.fsf@atufi.org>
Date: Tue, 14 Dec 2021 10:01:09 +0100
From: Daniel Gerber <dg@...fi.org>
To: musl@...ts.openwall.com
Subject: Bug in mntent.c: whitespace characters are not escaped

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
--

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.