author | Florian Forster <octo@collectd.org> | |
Mon, 5 Sep 2016 08:35:22 +0000 (10:35 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 14 Sep 2016 18:28:58 +0000 (20:28 +0200) | ||
commit | 56a368209ea679eaa6790de419b68573505afb74 | |
tree | 760f3368c697b7682cdbba56cf19555f9aec0728 | tree | snapshot |
parent | 5e6a4f71a69ce27dae513133ee74c2551cf72fb8 | commit | diff |
hugepages plugin: Don't use pathconf(_PC_NAME_MAX).
Since we allocate the buffer on the stack, this doesn't make sense:
Best case, the returned value is the same as the PATH_MAX define. Worst
case, the returned value is larger and we create a stack overflow.
Since we allocate the buffer on the stack, this doesn't make sense:
Best case, the returned value is the same as the PATH_MAX define. Worst
case, the returned value is larger and we create a stack overflow.
src/hugepages.c | diff | blob | history |