From: Mike Frysinger <vapier@gentoo.org>
To: Kees Cook <keescook@chromium.org>
Cc: util-linux@vger.kernel.org
Subject: Re: [PATCH v2 2/2] libmount: handle arbitrary line length for mounts
Date: Wed, 26 Aug 2015 20:16:34 -0400 [thread overview]
Message-ID: <20150827001634.GJ3116@vapier> (raw)
In-Reply-To: <20150826224923.GA11884@www.outflux.net>
[-- Attachment #1: Type: text/plain, Size: 559 bytes --]
On 26 Aug 2015 15:49, Kees Cook wrote:
> --- a/libmount/src/mountP.h
> +++ b/libmount/src/mountP.h
> @@ -212,6 +212,8 @@ struct libmnt_table {
> int comms; /* enable/disable comment parsing */
> char *comm_intro; /* First comment in file */
> char *comm_tail; /* Last comment in file */
> + char *buf; /* Memory for reading lines */
> + size_t buf_size; /* Size of line-reading buffer */
just to be clear, this structure is zero-allocated right ? getline
needs the first call to have buf==NULL in order for everything to
fall into place.
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-08-27 0:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 22:49 [PATCH v2 2/2] libmount: handle arbitrary line length for mounts Kees Cook
2015-08-26 23:34 ` Karel Zak
2015-08-26 23:44 ` Kees Cook
2015-08-27 8:18 ` Karel Zak
2015-08-27 0:16 ` Mike Frysinger [this message]
2015-08-27 0:44 ` Kees Cook
2015-08-27 9:26 ` Karel Zak
2015-08-27 17:01 ` Kees Cook
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=20150827001634.GJ3116@vapier \
--to=vapier@gentoo.org \
--cc=keescook@chromium.org \
--cc=util-linux@vger.kernel.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox