Repo Added
|
Files
89
|
Badge
Embed ▾
README BADGES
|
push
github
FFI: Fix dangling reference to CType in carith_checkarg(). Reported by Sergey Kaplun. (cherry-picked from commit db944b2b5) During of an arithmetic operation with a cdata function object and some cdata value in `carith_checkarg()`, reallocation of `cts->tab` in `lj_ctype_intern()` may occur. In that case, the reference to the first `CType` object (`ca->ct[0]`) becomes invalid. This patch saves the `CTypeID` of this object and gets its `CType` again after possible reallocation. Sergey Kaplun: * added the description and the test for the problem Part of tarantool/tarantool#9145 Reviewed-by: Maxim Kokryashkin <m.kokryashkin@tarantool.org> Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org> Signed-off-by: Igor Munkin <imun@tarantool.org> (cherry picked from commit 3493258db)
5369 of 5976 branches covered (89.84%)
Branch coverage included in aggregate %.
3 of 3 new or added lines in 1 file covered. (100.0%)
20565 of 23267 relevant lines covered (88.39%)
701430.56 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|
Builds | Branch | Commit | Type | Ran | Committer | Via | Coverage |
---|---|---|---|---|---|---|---|
9759992774 | tarantool/archive/2.10 | FFI: Fix dangling reference to CType in carith_checkarg(). Reported by Sergey Kaplun. (cherry-picked from commit db944b2b5) During of an arithmetic operation with a cdata function object and some cdata value in `c... | push | igormunkin | github |
88.68 |