Now in the Mac code there is no code to subtract (startWordIndex - 1) * 2 from bufSizeInBytes, and so without my fix there could be a buffer overrun:int snd_RecordSamplesIntoAtLength(int buf, int startSliceIndex, int bufferSizeInBytes) {/* if data is available, copy as many sample slices as possible into thegiven buffer starting at the given slice index. do not write past theend of the buffer, which is buf + bufferSizeInBytes. return the numberof slices (not bytes) copied. a slice is one 16-bit sample in monoor two 16-bit samples in stereo. */int bytesPerSlice = (recordBuffer1.brokenOSXWasMono) ? 2 : ((recordBuffer1.stereo) ? 4 : 2);char *nextBuf = (char *) buf + (startSliceIndex * bytesPerSlice);char *bufEnd = (char *) buf + bufferSizeInBytes;char *src, *srcEnd;RecordBuffer recBuf = nil;int bytesCopied;