gco-v3.0 icon indicating copy to clipboard operation
gco-v3.0 copied to clipboard

out-of-range memory read

Open dolphin-li opened this issue 3 years ago • 0 comments

GCoptimization.cpp, DataCostFnSparse::search(), line 1818: const SparseDataCost* mid = (const SparseDataCost*)((((size_t)L+(size_t)R) >> 1) & cDataCostPtrMask); It is possible that mid < L, causing out-of-range memory read. As a result, random crashes may occur under some OS environments, e.g., IOS/Android.

dolphin-li avatar Feb 10 '22 08:02 dolphin-li