[New-bugs-announce] [issue26708] Constify C string pointers in the posix module

Serhiy Storchaka report at bugs.python.org
Thu Apr 7 02:18:17 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26708>
_______________________________________


More information about the New-bugs-announce mailing list