[issue43260] Never release buffer when MemoryError in prtin()

2021-02-18 Thread Ramin Farajpour Cami
New submission from Ramin Farajpour Cami : Hi, When we use "a"*100 in print("a"*100) function, Show "MemoryError",Again i use print("1") again display "MemoryError", I think memory not release for use again, >>

[issue43260] Never release buffer when MemoryError in print()

2021-02-18 Thread Ramin Farajpour Cami
Change by Ramin Farajpour Cami : -- title: Never release buffer when MemoryError in prtin() -> Never release buffer when MemoryError in print() ___ Python tracker <https://bugs.python.org/issu

[issue43260] Never release buffer when MemoryError in print()

2021-02-18 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: Version : Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32 bit (Intel)] on win32 -- ___ Python tracker <https://bugs.python.org/issue43

[issue43260] Never release buffer when MemoryError in print()

2021-02-18 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 16:33:24) [MSC v.1928 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> print("a"*1

[issue43260] Never release buffer when MemoryError in print()

2021-02-18 Thread Ramin Farajpour Cami
Change by Ramin Farajpour Cami : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue43260> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43260] Never release buffer when MemoryError in print()

2021-02-20 Thread Ramin Farajpour Cami
Change by Ramin Farajpour Cami : -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/issue43260> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43303] ASAN : Memory leak in compilation

2021-02-22 Thread Ramin Farajpour Cami
New submission from Ramin Farajpour Cami : Hi, Asan has detected a memory leak : $ wget https://github.com/python/cpython/archive/v3.9.2.tar.gz $ tar xvf v3.9.2.tar.gz $ ./configure --disable-shared CFLAGS="-fsanitize=address -ggdb" CXXFLAGS="-fsanitize=address -ggdb"

[issue43303] ASAN : Memory leak in compilation

2021-02-22 Thread Ramin Farajpour Cami
Change by Ramin Farajpour Cami : -- nosy: +christian.heimes, lys.nikolaou, pablogsal ___ Python tracker <https://bugs.python.org/issue43303> ___ ___ Python-bug

[issue43303] ASAN : Memory leak in compilation

2021-02-24 Thread Ramin Farajpour Cami
Change by Ramin Farajpour Cami : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43303> ___ ___ Python-bugs-

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Ramin Farajpour Cami
New submission from Ramin Farajpour Cami: Hi, issue from python in encode base64 with Json Model in twice encode with base64 output python different with JAVA and C# , if programmer using rest-service in server side and other programmer using UI(Python Django) in client site , this encode

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: why any update in python 2.7? you should using a function this code change : enc_sec = ZXlKMWMyVnlUbUZ0WlNJNkltRmtiV2x1SWl3aWNHRnpjM2R2Y21RaU9pSmhaRzFwYmlKOQo= url = re.sub('\o=$','',enc_sec) result = url.replace(&#x

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: no close plz, i using python 2.7.3 i get this output without "\n"? code: json_obj='{"userName": "admin", "password": "admin"}' enc

[issue26059] Integer Overflow

2016-01-09 Thread Ramin Farajpour Cami
New submission from Ramin Farajpour Cami: this work on python 2.7.10 and 2.7.11 crash, C:\Users\RaminFP>cdb -g python C:\Users\RaminFP\Desktop\1.py Microsoft (R) Windows Debugger Version 6.11.0001.404 X86 Copyright (c) Microsoft Corporation. All rights reserved. CommandLine: python C:\Us

[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

[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 <http://bugs.python.

[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 <http://bugs.python.org/issue26

[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 <http://bugs.python.org/issue26059> ___ ___ Python-bugs-list m

[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 <http://bugs.python.org/issue26

[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 <http://bugs.python.org/issue26

[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 <http://bugs.python.org/issue26059> ___ ___ Python-bug

[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 <http://bugs.pyth

[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 <http://bugs.python.org/issu

[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:

[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

[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

[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 <http://bugs.python.org/is

[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: "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

[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 <http://bugs.python.org/issue26059> ___ _

[issue26337] Bypass imghdr module determines the type of image

2016-02-10 Thread Ramin Farajpour Cami
New submission from Ramin Farajpour Cami: import imghdr imghdr.what('phppng.png') output : 'png' if you set javascript script in file .png or .jpg , output : ValueError: invalid \x escape Hexdump: root@Ramin:~# hexdump -C phppng.png 89 50 4e 47 0d 0a 1a 0a 00

[issue26337] Bypass imghdr module determines the type of image

2016-02-11 Thread Ramin Farajpour Cami
Changes by Ramin Farajpour Cami : -- nosy: +serhiy.storchaka ___ Python tracker <http://bugs.python.org/issue26337> ___ ___ Python-bugs-list mailing list Unsub

[issue26337] Bypass imghdr module determines the type of image

2016-02-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: images can be served with a content type of text/html,(which means we can certainly inject HTML). -- ___ Python tracker <http://bugs.python.org/issue26

[issue26337] Bypass imghdr module determines the type of image

2016-02-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: In normal if you choose a image and open image with editor set codes to image you get error , but I able to bypass image for upload if I use module imghdr for check valid image , booom upload image with malicious code