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:
signature.asc
Description: Digital signature