mirror of
https://github.com/Tencent/MMKV.git
synced 2026-10-16 20:21:12 +08:00
29bbb179f9
Validate numeric ranges, backing-buffer bounds, and typed-array alignment before forming slices. Preserve zero-copy writes and handle empty buffers safely. Add portable regression coverage of the production callbacks with N-API and MMKV test doubles; 1,144 checks pass under ASan and UBSan.