ObjFW  Hex Artifact Content

Artifact c615b62ed8dfcdb37ded7c7a8b2c63d17f71c4f3f4f44850b08394fbd6e645d0:

Manifest of check-in [c615b62ed8] - Don't use readdir_r

readdir_r can easily lead to stack overflows if the path is longer than
the space reserved for d_name in dirent. While some OSes use a length of
MAXNAMLEN + 1, others use just 1. This could be worked around by always
allocating a buffer of sizeof(struct dirent) + MAXNAMLEN (which would
work only in case MAXNAMLEN is actually the longest readdir_r can
return), but is probably not worth the risk, especially as glibc has
entirely deprecated readdir_r and it is expected to be removed from
POSIX. by js on 2024-04-16 23:50:40.


A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.