Serhiy Storchaka added the comment:

Your patch LGTM as a minimal patch for backporting to maintained releases 
(maybe Mark have other comments). But I think it would be better to make all 
pointers to raw memory of type unsigned char*. Not just packing, but unpacking 
too. Using even memcpy between long* and char* is undefined behavior, the 
source and target should either have the same type, or one of them be unsigned 
char*.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30242>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to