[issue33742] Unsafe memory access in PyStructSequence_InitType

2018-06-04 Thread Pasha Stetsenko
Pasha Stetsenko added the comment: The code is simple: ``` // first initialize PyStructSequence_Field* fields; then: PyTypeObject* type = malloc(sizeof(PyTypeObject)); PyStructSequence_InitType(type, desc); ``` Of course, `malloc` can accidentally allocate memory that is already filled

[issue33742] Unsafe memory access in PyStructSequence_InitType

2018-06-03 Thread Pasha Stetsenko
New submission from Pasha Stetsenko : The documentation (https://docs.python.org/3/c-api/tuple.html) for `PyStructSequence_InitType` describes the function as follows: > void PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc > *desc) > Initializes a struct sequ

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-17 Thread tahnoon pasha
tahnoon pasha added the comment: Hi David Adding the following post and response from the davmail author/ maintainers site. He seems to have fixed it in davmail and suggests the following fix in imaplib.py if there is a desire to amend it to allow stray spaces Le 15/06/2013 08:19, tahnoon

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-14 Thread tahnoon pasha
tahnoon pasha added the comment: http://sourceforge.net/p/davmail/bugs/532/ The response back from the davmail software maintainer is that this is a non RFC mechanism with a purpose (used as a keep alive on a very slow responding server - SELECT can be very slow when getting mail this way

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-14 Thread tahnoon pasha
tahnoon pasha added the comment: Okay David. Thanks for the pointer. With great trepidation Ill hit google and try and figure out how to create a test case for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18153

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-11 Thread tahnoon pasha
tahnoon pasha added the comment: I'll log this at the davmail forums too and report back if I get a response there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18153

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-06 Thread tahnoon pasha
New submission from tahnoon pasha: Hi I've suddenly encountered an error using imaplib on some code that worked fine before. import imaplib m = imaplib.IMAP4('myserver','port') m.login(r'username','password') m.select() gives me the error Traceback (most recent call last

[issue4181] Invalid Behavior When a Default Argument is a Dictionary.

2008-10-22 Thread Pasha
New submission from Pasha [EMAIL PROTECTED]: Whenever the default argument to a function is a dictionary, and the function is called twice, then the function remembers the changes to the dictionary. This means that any time that a default argument is set to a dictionary, a list or any other