This is the upstream repository for the Security Enhanced Linux (SELinux) userland libraries and tools. The software provided by this project complements the SELinux features integrated into the Linux kernel and is used by Linux distributions. All bugs and patches should be submitted to selinux@vger.kernel.org
Other
1.33k
stars
359
forks
source link
libselinux/src/se_linux_internal.c: include stdint.h #435
selinux_internal.c: In function 'reallocarray':
selinux_internal.c:25:29: error: 'SIZE_MAX' undeclared (first use in this function)
25 | if (size && nmemb > SIZE_MAX / size) {
| ^~~~~~~~
selinux_internal.c:6:1: note: 'SIZE_MAX' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
5 | #include <string.h>
+++ |+#include <stdint.h>
6 |
selinux_internal.c:25:29: note: each undeclared identifier is reported only once for each function it appears in
25 | if (size && nmemb > SIZE_MAX / size) {
| ^~~~~~~~
Include
stdint.h
to avoid the following uclibc build failure raised since version 3.6 and https://github.com/SELinuxProject/selinux/commit/cb8289c2b237e5f66e4a7608ecc6c68abeaeaf55:Fixes: