python: fix passing size_t values on 64-bit architectures
* lib/python.c (python_proc): Pass a copy of mu_program_name as argv[0]. * python/libmu_py/libmu_py.h (ASSERT_INDEX_RANGE): New macro. * python/libmu_py/address.c: Use Py_ssize_t and check returned value range when getting size_t arguments. * python/libmu_py/auth.c: Likewise. * python/libmu_py/folder.c: Likewise. * python/libmu_py/header.c: Likewise. * python/libmu_py/mailbox.c: Likewise. * python/libmu_py/mailcap.c: Likewise. * python/libmu_py/message.c: Likewise. * python/libmu_py/mime.c: Likewise. * python/libmu_py/secret.c: Likewise. * python/libmu_py/stream.c: Likewise.
Showing
12 changed files
with
103 additions
and
56 deletions
-
Please register or sign in to post a comment