guilherme-pg <guilherme.p.g...@gmail.com> added the comment:

The attached patch attempts to solve the issue.

It makes sure marshal.loads only accepts objects conforming to the buffer 
protocol, updates the documentation for the method accordingly, adds a test 
case and updates existing test cases that rely on this issue.

Please excuse any obvious mistakes in the patch, this is my first contribution 
and I'll be glad to iterate until it's good.

----------
keywords: +patch
nosy: +guilherme-pg
Added file: 
http://bugs.python.org/file24715/14177-marshal-loads-deny-strings.patch

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

Reply via email to