aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2016-06-02 19:12:07 +0200
committerStephane Desneux <stephane.desneux@iot.bzh>2016-06-02 19:39:51 +0200
commit897aa6a130eab1eb716fcc13e650fb5833a7ce32 (patch)
tree29cf3d3759e0acc0d3a4e3c4f15c89f9df3d9237
parente5f93c1d987bf7143d561cbf9763aed3854bf898 (diff)
afb-hreq.c: fix etag size (fixes stack smashing detected by stack protector)1.0
Change-Id: I843dba1d07396ddcfb35b010e7e3a9a9ac73c143 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
-rw-r--r--src/afb-hreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index a325fd4f..5f9ca510 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -359,7 +359,7 @@ int afb_hreq_reply_file_if_exist(struct afb_hreq *hreq, int dirfd, const char *f
int fd;
unsigned int status;
struct stat st;
- char etag[1 + 2 * sizeof(int)];
+ char etag[1 + 2 * 8];
const char *inm;
struct MHD_Response *response;
const char *mimetype;