diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-17 17:50:36 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-17 17:50:36 +0000 |
commit | 7d9c984950928ab4de0761e0382b042e56297b96 (patch) | |
tree | 9f5333480f92388ea2cb89da1804d0747342ea0b /channels/chan_skinny.c | |
parent | 68657409d2e34a1b675c0df975e98365cfe942c2 (diff) |
Fix an integer signedness problem.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@45332 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_skinny.c')
-rw-r--r-- | channels/chan_skinny.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index c5f148726..8291f8b7b 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -2863,6 +2863,10 @@ static int get_input(struct skinnysession *s) return -1; } dlen = letohl(*(int *)s->inbuf); + if (dlen < 0) { + ast_log(LOG_WARNING, "Skinny Client sent invalid data.\n"); + return -1; + } if (dlen+8 > sizeof(s->inbuf)) { dlen = sizeof(s->inbuf) - 8; } |