Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

__dcigettext() contains:

  domainname_len = strlen (domainname);
  xdomainname = (char *) alloca (strlen (categoryname)
                                 + domainname_len + 5);

It tries to allocate a buffer on stack, and for domain name causes stack 
overflow.

There is no portable way to restore after stack overflow or to check it ahead. 
We can add arbitrary limit for the length of domain name, but it does not 
guarantee anything. It is just yet one way to crash Python from Python code.

----------
nosy: +serhiy.storchaka

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

Reply via email to