Closed sndmitriev closed 1 year ago
Failure on "LGTM analysis: C/C++" does not look related to this change.
Looks great! Thank you!
Do you expect any compatibility issues with previous releases?
No, I think there should be no compatibility issues.
But I think it makes sense to make a new release (v1.2.2) since the problem actually shows up quite often on intensive use.
I'll see if I can find some time this weekend to do a release. Thanks!
That would be great. Thank you!
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 is negative).