aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 12:29:46 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 12:29:46 +0000
commit76f932803efec2fcf754ed265e5d4a785f39dd3b (patch)
tree62646e9372210e5f5616bbb1df8656edd3ab95f1
parentf94bc4e1fd74b37070f8a06d146ccc5ba67d98c3 (diff)
Merged revisions 76485 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r76485 | russell | 2007-07-23 07:25:01 -0500 (Mon, 23 Jul 2007) | 6 lines Use a signed integer for storing the number of bytes in the packet read from the network. Using an unsigned value here made it impossible to handle an error returned from recvfrom(). Furthermore, in the case that recvfrom() did return an error, this would cause a crash due to a heap overflow. (closes issue #10265, reported by and fix suggested by timrobbins) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76486 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 05c23067d..33d3b817f 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -735,7 +735,7 @@ struct iax2_thread {
struct sockaddr_in iosin;
unsigned char readbuf[4096];
unsigned char *buf;
- size_t buf_len;
+ ssize_t buf_len;
size_t buf_size;
int iofd;
time_t checktime;