[PATCH v3 1/2] stdlib: Use scratch_buffer on realpath (BZ #26341)
Adhemerval Zanella
adhemerval.zanella@linaro.org
Wed Aug 19 11:48:17 GMT 2020
On 19/08/2020 04:07, Andreas Schwab wrote:
> On Aug 18 2020, Adhemerval Zanella via Libc-alpha wrote:
>
>> +static bool
>> +realpath_readlink (const char *rpath, const char *end, size_t path_max,
>> + size_t st_size, struct scratch_buffer *out)
>> +{
>> + struct scratch_buffer buf;
>> + scratch_buffer_init (&buf);
>> +
>> + if (!scratch_buffer_set_array_size (&buf, st_size + 1, sizeof (char *)))
>
> Are you sure you need an array of pointers?
Thanks for spotting it, I have fixed it locally.
More information about the Libc-alpha
mailing list