summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
633183b)
this error resulted in an out-of-bounds read, as opposed to a reported
error, when calling the function with an argument one greater than the
max valid index.
[_PC_SYMLINK_MAX] = SYMLINK_MAX,
[_PC_2_SYMLINKS] = 1
};
[_PC_SYMLINK_MAX] = SYMLINK_MAX,
[_PC_2_SYMLINKS] = 1
};
- if (name > sizeof(values)/sizeof(values[0])) {
+ if (name >= sizeof(values)/sizeof(values[0])) {
errno = EINVAL;
return -1;
}
errno = EINVAL;
return -1;
}