diff options
author | Russell Bryant <russell@russellbryant.com> | 2012-03-14 10:05:07 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2012-03-14 10:05:07 +0000 |
commit | 6c9f009b6d208eeb656bc19ec2e1675f755c73a9 (patch) | |
tree | 633ffe92585dff903df0d7b0b79c3de1cecba5fe /include/asterisk | |
parent | 6ac425df31c1545348a64780f61fbd4e8ca9c57c (diff) |
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
........
Merged revisions 359212 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@359213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
0 files changed, 0 insertions, 0 deletions