https://bugs.openldap.org/show_bug.cgi?id=10538
--- Comment #4 from github@nicwatson.org github@nicwatson.org --- Looking at the patch, it doesn't fix this particular issue but a similar one (the other bug right before this I reported) on Linux. This only happens on Windows, and it isn't caused by a short write, but an integer overflow of the 32-bit length parameter to WriteFile.