Ignore:
Timestamp:
Sep 14, 2020, 1:58:47 PM (5 years ago)
Author:
bird
Message:

kash: shfile_movefd: bounds check fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shfile.c

    r3451 r3454  
    14431443    {
    14441444        /* prepare the new entry */
    1445         if (fdto >= (int)pfdtab->size)
     1445        if ((unsigned)fdto >= pfdtab->size)
    14461446            shfile_grow_tab_locked(pfdtab, fdto);
    1447         if (fdto < (int)pfdtab->size)
     1447        if ((unsigned)fdto < pfdtab->size)
    14481448        {
    14491449            if (pfdtab->tab[fdto].fd != -1)
Note: See TracChangeset for help on using the changeset viewer.