• David Gobbi's avatar
    Safe wrapping of non-const char pointer arguments · 8837686f
    David Gobbi authored
    Previously, the contents of a Python 'str' would be passed
    directly to C++ methods that took non-const 'char *' arguments.
    This was bad, since 'str' is immutable but there was no guarantee
    that the C++ method wouldn't try to modify the string.  Now the
    C++ method receives a copy of the Python string for 'char *' args
    and only directly receives the contents for 'const char *' args.
    If a bytearray or other mutable sequence is passed as 'char *',
    then the wrappers will write any modifications back to Python.
    
    In Python 3.7 the PyUnicode_AsUTF8() method was changed so that
    it returns "const char *" instead of returning "char *", so this
    commit is needed in order to compile VTK with Python 3.7.
    8837686f
Name
Last commit
Last update
.ExternalData Loading commit data...
.github Loading commit data...
Accelerators/Vtkm Loading commit data...
CMake Loading commit data...
Charts/Core Loading commit data...
Common Loading commit data...
Documentation Loading commit data...
Domains Loading commit data...
Examples Loading commit data...
Filters Loading commit data...
GUISupport Loading commit data...
Geovis Loading commit data...
IO Loading commit data...
Imaging Loading commit data...
Infovis Loading commit data...
Interaction Loading commit data...
Parallel Loading commit data...
Remote Loading commit data...
Rendering Loading commit data...
Testing Loading commit data...
ThirdParty Loading commit data...
Utilities Loading commit data...
Views Loading commit data...
Web Loading commit data...
Wrapping Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.hooks-config.bash Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
CTestConfig.cmake Loading commit data...
Copyright.txt Loading commit data...
README.md Loading commit data...
vtkBanner.gif Loading commit data...
vtkLogo.ico Loading commit data...