]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix invalid reads/writes due to incorrect sizeof().
authorRussell Bryant <russell@russellbryant.com>
Wed, 14 Mar 2012 10:04:03 +0000 (10:04 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 14 Mar 2012 10:04:03 +0000 (10:04 +0000)
commit40cc905d8651c20e7cb38ac41146e677072d65fb
tree10ee57defa8cc5f3c0dc24575709391fb6ecb465
parentcfb780a5f5c538d8c2f38ba567831a8230bb651b
Fix invalid reads/writes due to incorrect sizeof().

These few places in the code used sizeof() on h_addr in struct hostent.
This is sizeof(char *).  The correct way to get the size of this address is to
use h_length.  This error would result in reads/writes of 8 bytes instead of 4
on 64-bit machines.
........

Merged revisions 359211 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@359212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_externalivr.c
channels/chan_iax2.c