New submission from Serhiy Storchaka:

Proposed patch adds the "const" qualifier to char and wchar_t pointers in the 
posix module to prevents possible bugs. These pointers point to internal data 
of PyBytes or PyUnicode objects or to C string literals, and unintentional 
changing the content is a hard bug. I expect that the patch can also eliminate 
some compiler warnings.

Since large part of the code is Windows specific, the patch needs to be tested 
on Windows.

----------
components: Extension Modules
files: posixmodule_constify.patch
keywords: patch
messages: 262978
nosy: larry, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Constify C string pointers in the posix module
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file42389/posixmodule_constify.patch

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

Reply via email to