~stefanor/ubuntu/maverick/samba/ntlm-auth-623342

« back to all changes in this revision

Viewing changes to source3/lib/events.c

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2011-02-23 13:12:33 UTC
  • mfrom: (125.1.2 maverick-proposed)
  • Revision ID: james.westby@ubuntu.com-20110223131233-kvhu879m0pyd5l71
* SECURITY UPDATE: denial of service via missing range checks on file
  descriptors
  - debian/patches/security-CVE-2011-0719.patch: validate miscellaneous
    file descriptors.
  - CVE-2011-0719

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        bool ret = false;
56
56
 
57
57
        for (fde = ev->fd_events; fde; fde = fde->next) {
 
58
                if (fde->fd < 0 || fde->fd >= FD_SETSIZE) {
 
59
                        /* We ignore here, as it shouldn't be
 
60
                           possible to add an invalid fde->fd
 
61
                           but we don't want FD_SET to see an
 
62
                           invalid fd. */
 
63
                        continue;
 
64
                }
 
65
 
58
66
                if (fde->flags & EVENT_FD_READ) {
59
67
                        FD_SET(fde->fd, read_fds);
60
68
                        ret = true;