Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161017144817.299986f4@ncopa-desktop.copa.dup.pw>
Date: Mon, 17 Oct 2016 14:48:17 +0200
From: Natanael Copa <ncopa@...inelinux.org>
To: Rostislav Skudnov <rostislav@...era.com>
Cc: <musl@...ts.openwall.com>
Subject: Re: [PATCH] increase buffer size in getmntent to 4096 bytes

On Mon, 17 Oct 2016 10:24:25 +0000
Rostislav Skudnov <rostislav@...era.com> wrote:

> getmntent fails if the length of the mount entry exceeds the buffer
> size. The new buffer size matches that of glibc.
> ---
> Even after this patch, getmntent may still fail since the device and mount
> paths may be up to PATH_MAX in length, and the mount options may
> (theoretically) have unlimited length. The same would happen in glibc, though.

This patch solve the same problem, but uses getline to malloc the buffer as needed:
http://www.openwall.com/lists/musl/2016/09/08/1


-nc

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.