Changeset ce7153d


Ignore:
Timestamp:
08/17/14 07:22:55 (6 years ago)
Author:
Alistair King <alistair@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
a79eae41
Parents:
faf16af
Message:

change buffer length types from int to off_t

previously the length of the buffer in the peek reader was stored in an int. when
a large read (> INT32_MAX) was requested, the buffer-resize malloc (ior-peek.c:129)
would fail, and therefore trigger the assert on line 135.

this bug was triggered, and the fix tested, on FreeBSD 10.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libwandio/ior-peek.c

    rf7bcbfb rce7153d  
    6262        io_t *child;
    6363        char *buffer;
    64         int length; /* Length of buffer */
    65         int offset; /* Offset into buffer */
     64        off_t length; /* Length of buffer */
     65        off_t offset; /* Offset into buffer */
    6666};
    6767
Note: See TracChangeset for help on using the changeset viewer.