]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
filter: avoid integer overflow in authenticate_post
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 5937b9e503d8f8642692196385ae705fa59b371c..05e5d5737d71cc302868ffd4f6388e8d1f947e9d 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -651,7 +651,7 @@ static inline void open_auth_filter(const char *function)
 static inline void authenticate_post(void)
 {
        char buffer[MAX_AUTHENTICATION_POST_BYTES];
-       int len;
+       unsigned int len;
 
        open_auth_filter("authenticate-post");
        len = ctx.env.content_length;