Skip to content
  • Ken Martin's avatar
    Fix for out of range memcpy · fe14d907
    Ken Martin authored
    I have no clue if this fix is correct. The tests do pass once I
    make this fix though. The problem was that there was a memcpy
    happeneing that copies data from the ghost input to the input.
    But in my tests the ghost input had more points and cells than
    the input did. It was trying to copy an amount of data from the
    input the size of the the amount of room in the ghost input.
    Because the ghost input has more points it was trying to copy
    past the end of the input's data.  Visual Studio catches this
    and throws an exception. In the test program the input had
    65000 points while the ghost input had 67500. The memcopy
    was trying to copy 67500 points worth of data from the input
    to the ghost input. While the ghost input has room to store that
    amount of data, the input does not have that much data to actually
    copy.
    
    Change-Id: I98a566870df3d45832b81a60c5d198f5b00a1033
    fe14d907