We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b3137 commit b60b6efCopy full SHA for b60b6ef
getdents/_getdents.c
@@ -53,7 +53,7 @@ getdents_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
53
return NULL;
54
}
55
56
- if (buff_size < MAXNAMLEN + sizeof(struct linux_dirent64)) {
+ if (buff_size < MIN_GETDENTS_BUFF_SIZE) {
57
PyErr_SetString(
58
PyExc_ValueError,
59
"buff_size is too small"
0 commit comments