Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cffi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
cffi
Commits
d00996ba7f3b
Commit
d00996ba7f3b
authored
5 years ago
by
Armin Rigo
Browse files
Options
Downloads
Patches
Plain Diff
Document #440 in details
parent
13004e3998dc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/source/whatsnew.rst
+18
-0
18 additions, 0 deletions
doc/source/whatsnew.rst
with
18 additions
and
0 deletions
doc/source/whatsnew.rst
+
18
−
0
View file @
d00996ba
...
...
@@ -9,6 +9,24 @@
* ``ffi.dlopen()`` can now be called with a handle (as a ``void *``) to an
already-opened C library.
* CPython only: fixed a stack overflow issue for calls like
``lib.myfunc([large list])``. If the function is declared as taking a
``float *`` argument, for example, then the array is temporarily converted
into a C array of floats---however, the code used to use ``alloca()`` for
this temporary storage, no matter how large. This is now fixed.
The fix concerns all modes: in-line/out-of-line API/ABI. Also note that your
API-mode C extension modules need to be regenerated with cffi 1.14 in order
to get the fix; i.e. for API mode, the fix is in the generated C sources.
(The C sources generated from cffi 1.14 should also work when running in
a different environment in which we have an older version of cffi. Also,
this change makes no difference on PyPy.)
As a workaround that works on all versions of cffi, you can write
``lib.myfunc(ffi.new("float[]", [large list]))``, which is
equivalent but explicity builds the intermediate array as a regular
Python object on the heap.
v1.13.2
=======
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment