Christian Heimes added the comment: Here is a patch that implements _Py_memset_s() according to C11 with a fallback to memset_s().
My linker fu seems to be weak. I had to use _Py_memset_s() in random.c otherwise the function is removed from the static Python binary. I double-checked with readelf -Ws: the function is defined in the archive file and is available in the shared library. But the linker removes it from the static binary so shared libraries fail to load. ---------- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file29399/pymemsets.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17405> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com