pycapnp/capnp/helpers
Sergey Dmitriev e614da1025
Avoid reading random values for reader options from dangling reference (#300)
This patch fixes a problem of reading random values for reader options
in pycapnp. The code which adds task to the list captures 'opts' by
reference and that causes a problem in case when 'opts' is allocated on
on the caller's stack. By the time when task is handled the stack frame
holding the 'opts' is gone which leaves dangling reference to 'opts' in
lambda's captures. As a result pycapnp reads random values for reader
options which sometimes causes unexpected errors (for example an error
that nesting level ius negative).
2022-11-01 13:00:01 -07:00
..
__init__.pxd Refactor layout of pxd files 2013-12-08 17:27:59 -08:00
asyncHelper.h TwoWayPipe and basic asyncio support 2019-09-26 21:42:48 -07:00
asyncIoHelper.h TwoWayPipe and basic asyncio support 2019-09-26 21:42:48 -07:00
capabilityHelper.cpp Move exported functions used in capabilityHelper.h from extern "C" to api. 2020-03-02 06:49:59 -08:00
capabilityHelper.h Move exported functions used in capabilityHelper.h from extern "C" to api. 2020-03-02 06:49:59 -08:00
checkCompiler.h Updating to capnproto v0.8.0 2020-06-08 11:49:17 -07:00
fixMaybe.h Change which method to be a property and return an enum type. 2014-02-13 19:24:06 -08:00
helpers.pxd Remove many lint warnings 2021-05-03 17:02:30 +08:00
non_circular.pxd Rearrange declarations to avoid circular imports. 2020-02-28 16:43:28 -08:00
rpcHelper.h Avoid reading random values for reader options from dangling reference (#300) 2022-11-01 13:00:01 -07:00
serialize.h Fix bug in to_bytes_packed when packed size > unpacked size. 2014-02-24 14:06:28 -08:00