summaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-02 13:57:29 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-02 13:57:29 -0500
commit79f1521b0e628be72bed3a648f0ae90b62fc69b8 (patch)
tree839cd42577975f6b8707034ccecba917d4a49e33 /.gitattributes
parenteae90d86b5e3dda10f541dadcea6462587ff2bfc (diff)
downloadbfs-79f1521b0e628be72bed3a648f0ae90b62fc69b8.tar.xz
pwcache: Fix uninitialized pointers on OpenBSD
POSIX specifies that the get{pw,gr}*_r() functions store a NULL pointer to *result on error. However, OpenBSD does not always do this[1][2]: > if (bufsize < GETGR_R_SIZE_MAX) > return ERANGE; Work around it by explicitly initializing ret to NULL. [1]: https://github.com/openbsd/src/blob/e4829a9cc666f01ca5062d7fc15c20ab2d69229e/lib/libc/gen/getgrent.c#L135-L136 [2]: https://github.com/openbsd/src/blob/e4829a9cc666f01ca5062d7fc15c20ab2d69229e/lib/libc/gen/getgrent.c#L183-L184
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions