Change-Id: Ib1220dfb64cb4d4030f98542791e11ef33eac3f2
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
#include <assert.h>
#include <errno.h>
#include <poll.h>
+#include <linux/limits.h>
#include <systemd/sd-daemon.h>
#include <bundle.h>
return G_SOURCE_CONTINUE;
}
- if (len <= 0) {
+ if (len <= 0 || len > PATH_MAX) {
close(clifd);
return G_SOURCE_CONTINUE;
}
gv = g_variant_new_from_data(G_VARIANT_TYPE("(is)"),
data, len, TRUE, NULL, NULL);
-
if (!gv) {
free(data);
close(clifd);