diff options
author | Stephane Desneux <stephane.desneux@iot.bzh> | 2016-06-02 19:12:07 +0200 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@iot.bzh> | 2016-06-02 19:12:07 +0200 |
commit | bf9d05d3ba3c482a75cfa6aedf661f6e51728e3e (patch) | |
tree | 1f079f9b5c1b28eaf67f541a9b3d3bf5d728927d | |
parent | feccc5ea8af554fdb6961e5943b7570c4be8c409 (diff) |
afb-hreq.c: fix etag size (fixes stack smashing detected by stack protector)
Change-Id: I843dba1d07396ddcfb35b010e7e3a9a9ac73c143
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
-rw-r--r-- | src/afb-hreq.c | 2 |
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; |