[Bug 1922646] Re: Long text crash dcigettext.c with segfault

2021-04-06 Thread Gunnar Hjalmarsson
Well, I'm not the one who would fix anything. I just jumped in since I thought you had made a mistake. Leaving it to the glibc maintainers to evaluate the importance of your observation. ** Changed in: glibc (Ubuntu) Status: Incomplete => New -- You received this bug notification because

[Bug 1922646] Re: Long text crash dcigettext.c with segfault

2021-04-06 Thread Xinmeng Xia
Thank you for your kindly explanations. Yes, I aggree. if the domain takes short string, it will work well. But if the domain takes long string, it may lead to segfault. We develop a fuzzing tool to test functions in Python standard library. The fuzzing tool return long string for the domains. Th

[Bug 1922646] Re: Long text crash dcigettext.c with segfault

2021-04-06 Thread Gunnar Hjalmarsson
The first argument to dgettext() is the translation domain. Why would you pass an absurdly long string as the domain? Try this instead: $ python3 Python 3.8.6 (default, Jan 27 2021, 15:42:20) [GCC 10.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import