Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/exec.c
          +++ new/usr/src/uts/common/os/exec.c
↓ open down ↓ 1556 lines elided ↑ open up ↑
1557 1557  
1558 1558          return (0);
1559 1559  }
1560 1560  
1561 1561  /*
1562 1562   * Add a fixed size byte array to the stack (only from kernel space).
1563 1563   */
1564 1564  static int
1565 1565  stk_byte_add(uarg_t *args, const uint8_t *sp, size_t len)
1566 1566  {
1567      -        int error;
1568      -
1569 1567          if (STK_AVAIL(args) < sizeof (int))
1570 1568                  return (E2BIG);
1571 1569          *--args->stk_offp = args->stk_strp - args->stk_base;
1572 1570  
1573 1571          if (len > STK_AVAIL(args))
1574 1572                  return (E2BIG);
1575 1573          bcopy(sp, args->stk_strp, len);
1576 1574  
1577 1575          args->stk_strp += len;
1578 1576  
↓ open down ↓ 559 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX