]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix the bounds-checking code.
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 26 Apr 2011 19:18:46 +0000 (19:18 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 26 Apr 2011 19:18:46 +0000 (19:18 +0000)
commitdac18ad759a587c34abdba144f546a00d71a8f19
tree12b0b644f8bd36a9b1c9bd0b489db224469aa1bc
parent112e8ef678bff0f82dc00b8c421083b70e28fd8a
Fix the bounds-checking code.

The code that set the bit within the select bitfield was correct, but the
bounds-checking code was not.  The change to that line uses the new _bitsize
macro for clarity.  Also, FD_ZERO macro did not zero-out anything but the
first word of the bitfield, so this could have caused problems with modules
using that macro with the expanded bitfield.

(closes issue #18773)
 Reported by: jamicque
 Patches:
       20110423__issue18773.diff.txt uploaded by tilghman (license 14)
 Tested by: chris-mac

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@315501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/select.h