amazon-ion / ion-python

A Python implementation of Amazon Ion.
https://amazon-ion.github.io/ion-docs/
Apache License 2.0
261 stars 51 forks source link

Remove text_buffer_size_limit decref #348

Closed nirosys closed 7 months ago

nirosys commented 7 months ago

Issue #, if available: #347

Description of changes: Prior to this PR the ionc_read function was decrementing the reference count of the text_buffer_size_limit argument resulting in a premature free, that could lead to improper memory access.

This PR removes that reference decrement.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

nirosys commented 7 months ago

Thank You @tgregg!