On Sun, Sep 29, 2024 at 3:14 PM Tyrone Wu <wudevelops@xxxxxxxxx> wrote: > > > > The reason name_len is 0 is that the user did not set both the buffer > > and the length. IOW, this happens when the user buffer is NULL and the > > input length is 0. > > Thank you both for the follow-up. > > > However, we should make this behavior consistent by > > returning the actual size to the user if both the buffer and length > > are unset. > > > > I will submit a fix. > > I actually made a small patch for this when I was initially exploring this behavior. If it's alright, I can submit this after some clean-up. :) That's great. Please do it. -- Regards Yafang