News for hackers. Stuff that matters.
Re:Why SciPy builds for Python 3.12 on Windows are a minor m... by Sohcahtoa82 on Wednesday November 08, 2023 @07:20PM (#38199228)
It makes sense, but when would you ever memcpy with overlap? I would think any situation that lets that happen is from a bug, like you have an incorrect buffer length or an incorrect destination address.
Re:Why SciPy builds for Python 3.12 on Windows are a minor m... by murderfs on Wednesday November 08, 2023 @07:47PM (#38199413)
Inserting an element in an array is something along the lines of memmove(arr + idx + 1, arr + idx, (length - idx) * sizeof(*arr)); arr[idx] = foo;