[issue29392] msvcrt.locking crashes python

2018-05-28 Thread Steve Dower
Change by Steve Dower : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29392] msvcrt.locking crashes python

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb0c9718f7bd13df67b0d7df88b6f5b197ef05a7 by Steve Dower in branch 'master': Issue #29392: Prevent crash when passing invalid arguments into msvcrt module. https://github.com/python/cpython/commit/cb0c9718f7bd13df67b0d7df88b6f5b197ef05a7 New

[issue29392] msvcrt.locking crashes python

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb0c9718f7bd13df67b0d7df88b6f5b197ef05a7 by Steve Dower in branch '3.5': Issue #29392: Prevent crash when passing invalid arguments into msvcrt module. https://github.com/python/cpython/commit/cb0c9718f7bd13df67b0d7df88b6f5b197ef05a7 --

[issue29392] msvcrt.locking crashes python

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed8b523b9f6495806a38262ca9d1676bf7d5e830 by Steve Dower in branch '3.6': Issue #29392: Prevent crash when passing invalid arguments into msvcrt module. https://github.com/python/cpython/commit/ed8b523b9f6495806a38262ca9d1676bf7d5e830 New

[issue29392] msvcrt.locking crashes python

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset f48bdcd02b57 by Steve Dower in branch '3.5': Issue #29392: Prevent crash when passing invalid arguments into msvcrt module. https://hg.python.org/cpython/rev/f48bdcd02b57 New changeset 15bbb18d87fd by Steve Dower in branch '3.6': Issue #29392:

[issue29392] msvcrt.locking crashes python

2017-02-04 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: needs patch -> resolved ___ Python tracker ___

[issue29392] msvcrt.locking crashes python

2017-01-30 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> needs patch versions: +Python 3.6, Python 3.7 ___ Python tracker ___

[issue29392] msvcrt.locking crashes python

2017-01-30 Thread Eryk Sun
Eryk Sun added the comment: The old CRT doesn't do any parameter validation on the nbytes parameter. It just passes it directly to Windows LockFile as follows: LockFile((HANDLE)_get_osfhandle(fh), lockoffset, 0L, nbytes, 0L) which is locking (DWORD)-1 bytes, i.e. 0x. This allows

[issue29392] msvcrt.locking crashes python

2017-01-30 Thread Frazer McLean
Frazer McLean added the comment: I ran it on AppVeyor to double check, the crash appears from 3.5 onwards as I saw on my computer. https://ci.appveyor.com/project/RazerM/issue29392/build/3 -- ___ Python tracker

[issue29392] msvcrt.locking crashes python

2017-01-30 Thread Frazer McLean
New submission from Frazer McLean: On 3.5.2 and 3.5.3, but not 3.4.3 or 2.7.10 (Windows 64-bit), the third line causes Python to crash with exit code 0xC417. import msvcrt fp = open('file.txt', 'w') msvcrt.locking(fp.fileno(), msvcrt.LK_NBLCK, -1) print('End') I came across this in the