diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-10-02 17:26:11 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-10-02 17:26:11 +0200 |
commit | 65930003e56b64afdde64cd9597e55b21d08b7c3 (patch) | |
tree | 54bdcb0d5e156258025169e3f8cdc289a1efcf16 | |
parent | 4744fdf082ad71334cd075d1fce49dcf7556df3e (diff) | |
download | litheweb-65930003e56b64afdde64cd9597e55b21d08b7c3.tar.gz litheweb-65930003e56b64afdde64cd9597e55b21d08b7c3.tar.bz2 |
signed-unsigned comparisions fixed
-rw-r--r-- | picohttp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -839,8 +839,8 @@ static void picohttpProcessHeaderAuthorization( char *c; for(c = user_password; *c && ':' != *c; c++); if( !*c - || (c - user_password >= user_password_max_len) - || (c - user_password > req->query.auth->username_maxlen) + || ((size_t)(c - user_password) >= user_password_max_len) + || ((size_t)(c - user_password) > req->query.auth->username_maxlen) || (strlen(c+1) > req->query.auth->pwresponse_maxlen) ) { /* no colon found, or colon is last character in string * or username part doesn't fit into auth.username field |