I managed to get Python 3.5 working on OSv (I only tested simple 'Hello 
world!' and httpserver example). However to get it working I had to add 
missing __wcscpy_chk to libc.

According 
to 
http://refspecs.linux-foundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/libc---wcscpy-chk-1.html
 
it should check for buffer overflow condition and I am not sure this 
implementation would suffice:

libc/string/__wcscpy_chk.c:

#include <wchar.h>
#include <assert.h>

extern wchar_t *wcscpy(wchar_t *__restrict d, const wchar_t *__restrict s);
extern size_t wcslen(const wchar_t *s);

wchar_t *__wcscpy_chk(wchar_t *__restrict dest, const wchar_t *__restrict 
src, size_t destlen)
{
        assert(wcslen(src) + sizeof(L'\0') <= destlen);
        return wcscpy(dest, src);
}

What do you think?

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to