Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-hreq.c: fix etag size (fixes stack smashing detected by stack protector)
[src/app-framework-binder.git]
/
src
/
afb-hreq.c
diff --git
a/src/afb-hreq.c
b/src/afb-hreq.c
index
a325fd4
..
5f9ca51
100644
(file)
--- 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;
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;
const char *inm;
struct MHD_Response *response;
const char *mimetype;