mirror of
https://github.com/apache/nuttx.git
synced 2026-08-15 09:23:20 +00:00
padlen = sizeof(void *) - (addr % sizeof(void *)) never returns 0, even when addr is already pointer-aligned -- it returns a full alignment unit instead. Since callers size buflen for zero padding, the subsequent "buflen < padlen + reqdlen" check then always fails, so getgrgid()/ getgrnam() and their _r variants always return ERANGE. Found via `id` on sim:toybox, which resolves gid 0 to "root" through this path. Signed-off-by: Alan C. Assis <acassis@gmail.com> Assisted-by: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| libbuiltin | ||
| libc | ||
| libdsp | ||
| libm | ||
| libnx | ||
| libxx | ||
| CMakeLists.txt | ||