Changeset 993ed8 in git


Ignore:
Timestamp:
Mar 8, 2024, 9:52:24 AM (2 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
0a83e6d6bf2f92df8353d742b3d3d61e7182dc84
Parents:
751f7e754aab35e32327e2ddea744e169c8bb401
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2024-03-08 09:52:24+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2024-03-08 10:00:04+01:00
Message:
check limits for select
Location:
Singular/links
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/pipeLink.cc

    r751f7e r993ed8  
    180180    int s;
    181181    if ((!SI_LINK_R_OPEN_P(l)) || (feof(d->f_read))) s=0;
     182    else if (FD_SETSIZE<=d->f_read)
     183    {
     184      Werror("file descriptor number too high (%d)",d->f_read);
     185      s=-1;
     186    }
    182187    else
    183188    {
  • Singular/links/ssiLink.cc

    r751f7e r993ed8  
    18871887    struct timeval wt;
    18881888    if (s_isready(d->f_read)) return "ready";
     1889    if (FD_SETSIZE<=d->f_read)
     1890    {
     1891      Werror("file descriptor number too high (%d)",d->f_read);
     1892      return "error";
     1893    }
     1894
    18891895    loop
    18901896    {
     
    20112017  }
    20122018  max_fd++;
     2019  if (FD_SETSIZE<=max_fd)
     2020  {
     2021    Werror("file descriptor number too high (%d)",max_fd);
     2022    return -2;
     2023  }
    20132024
    20142025do_select:
Note: See TracChangeset for help on using the changeset viewer.