[issue26059] Integer Overflow in strop.replace()

2016-01-18 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: wont fix -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: Yes, i have any idea, Thanks, -- resolution: -> wont fix ___ Python tracker ___ ___ Python-

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Martin Panter
Martin Panter added the comment: My previous comment was assuming 32-bit Python on Windows; now I see it is 64-bit. At the end of the video, I see that the cursor stops blinking, and you can’t do anything (closing the window seems to do nothing). So maybe the OS has crashed or frozen, or mayb

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: "Your video only shows the operation taking a long time or hanging as far as I can tell," what your means? i say my OS crash with run function strop i should restart manually for work again, do you have idea for fix it ? -- ___

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Martin Panter
Martin Panter added the comment: Looking at the 2.7.11 code, I think it should fail properly at this line , which checks if the change in size of all the replacements overflows. Is there a way to get a stack trace or simil

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: also work it , windows 7 OS 64bit with python 2.7.11 64bit, this is a vulnerability in python 2.7.11 64bit version, please look video, https://drive.google.com/file/d/0B0zktfkIvV-LajlIQ0p0eWZjd0U/view -- ___

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: i try install windows on VMWare and get video for you, in primary OS i my system crash i can't save video or image for you , -- ___ Python tracker __

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: here version : C:\python2711>python.exe Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import strop >>> strop.replace("\x100"*0xEA

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: i test python version 2.7.11 32 bit i get your error , but 64 bit no crashed, CommandLine: python.exe Symbol search path is: srv*c:\pubsymbols*http://msdl.microsoft.com/download/symbols Executable search path is: ModLoad: 1c3c 1c3cb000 python.exe M

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: i trust me ,i don't undrestand :( , work for me this print strop.replace("\x100"*0xEAAA,"\x100","AA"*0x) . now test again my system machine crash and i restart windows, my info system : Host Name: DESKTOP-84QSQQ8 OS Name:

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: Yes!I use python version 2.7.11 and my Windows machine stop and crashed, on cmd Windows, -- status: pending -> open ___ Python tracker __

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are you sure that you use 2.7.11 Ramin? Can anyone else confirm the issue? -- status: open -> pending ___ Python tracker ___

[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Win 10, 2.7.11, from IDLE editor: 1.py take several seconds, nothing printed. Add 'print' in front of call and Traceback (most recent call last): File "F:\Python\mypy\tem.py", line 3, in print strop.replace("\x100"*0xEAAA,"\x100","AA"*0x) File "C:

[issue26059] Integer Overflow in strop.replace()

2016-01-14 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: Not work ,i think should check sizeof of memory avoid overflow assert(new_len > 0 && new_len <= PY_SSIZE_T_MAX); -- ___ Python tracker __

[issue26059] Integer Overflow in strop.replace()

2016-01-13 Thread STINNER Victor
STINNER Victor added the comment: > Do you have any idea how to fix it? strop is a deprecated module, you can write ("\x100" *0xEAAA).replace("\x100", "AA"*0x). Does this instruction also crash? -- nosy: +haypo ___ Python tracker

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: I say work this problem on version 2.7.11 -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 2.7.6 and 2.7.10 are outdated. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: also linux Ubuntu version Python 2.7.6 -- Added file: http://bugs.python.org/file41583/12.png ___ Python tracker ___ _

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't have a Windows machine too. -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ _

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: please look image : Thanks, -- Added file: http://bugs.python.org/file41580/123.PNG ___ Python tracker ___

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: Do you have any idea how to fix it? -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: python 2.7.10 32bit and python 2.7.11 64bit crash on windows 10 -- ___ Python tracker ___ ___

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: The issue can be triggered by performing a large substitution that overflows the arithmetic used in mymemreplace() to calculate the size of the new string: -- ___ Python tracker

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code in msg257977 doesn't match current sources. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I thought this was fixed in issue24708. At least I get MemoryError on 32-bit Linux as expected, and the code around looks correct. May be PyMem_MALLOC on 64-bit Windows works only with 32-bit size? -- nosy: +serhiy.storchaka

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: static char * mymemreplace(const char *str, Py_ssize_t len, const char *pat, Py_ssize_t pat_len,pattern string to find */ const char *sub, Py_ssize_t sub_len,substitution string */ Py_ssize_t co

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: I cannot reproduce this on Mac (the code form 1.py just gives a very long answer). I don't have a Windows machine to try it on. Do you have a patch or fix? -- ___ Python tracker

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread STINNER Victor
Changes by STINNER Victor : -- title: Integer Overflow -> Integer Overflow in strop.replace() ___ Python tracker ___ ___ Python-bugs-l