26 Commits

Author SHA1 Message Date
guoling 998c51baca Support unsigned protobuf value lengths 2026-09-04 16:56:43 +08:00
guoling de70a23783 Fix oversized key corrupting data due to uint16_t overflow in KeyValueHolder
Keys longer than 65531 bytes cause keySize and computedKVSize (both uint16_t)
to wrap around, silently corrupting the internal offset so that subsequent reads
return garbage. Reject keys exceeding the safe threshold (UINT16_MAX - 4) at
all write and parse entry points.
2026-04-08 16:08:59 +08:00
guoling f23e95c652 support using MMKVCore at Apple platform in pure C++ code 2025-02-14 19:43:48 +08:00
peiranguo 9372cc90c0 fix: (POSIX)use of undeclared identifier memcpy 2023-12-29 12:58:40 +08:00
guoling e2efc0d503 tidy 2023-09-15 14:53:38 +08:00
guoling 8f312220d0 remove unnecessary std::move 2023-09-15 14:48:20 +08:00
lishaokai 72b59356a9 compare value before set/encode for the same key 2023-09-12 20:36:10 +08:00
Lishaokai 7649e45d70 in place modification for getString to speed up 2023-09-06 15:59:37 +08:00
guoling 6e5ed4e3ed fix ItemSizeHolder override bug 2020-07-03 17:35:55 +08:00
guoling af1bca6e33 remove useless code 2020-06-29 12:46:15 +08:00
guoling 9ba472ca1f POSIX 2020-06-18 22:37:57 +08:00
guoling d734112f0e partialLoadFromFile 2020-06-18 21:39:08 +08:00
guoling 524df11448 finish read, prepare for write 2020-06-09 22:22:53 +08:00
guoling 7b55308987 support WatchOS & unify MMKV framework's product name 2020-04-08 11:53:35 +08:00
guoling 177a2a3c68 tidy 2020-01-21 22:04:42 +08:00
guoling ffe9c90e24 add MMKV_ASSERT() 2020-01-21 15:45:01 +08:00
guoling 2ce5600773 more robust codedinputdata 2020-01-03 12:49:42 +08:00
guoling dd24e5a5e6 type safety 2020-01-03 12:14:35 +08:00
guoling 953b720e37 split Apple stuff in seperate file 2019-12-27 17:08:00 +08:00
guoling 9364d0ccfd add relativePath support for iOS 2019-12-24 22:13:42 +08:00
guoling c88a5eb695 add initializeMMKV for iOS & rename openssl files 2019-12-24 17:35:14 +08:00
guoling 59b064b8bf merge iOS to Core lib: most things actually work 2019-12-23 21:30:56 +08:00
guoling 728ee4c9c2 prepare Core lib for iOS/macOS 2019-12-20 16:58:10 +08:00
guoling 3c7f30ad75 compiling cpp as ObjC++ 2019-12-19 22:08:48 +08:00
guoling f907f10c94 tidy std usage 2019-12-13 17:38:49 +08:00
guoling b3494159f7 prepare to use Core lib 2019-12-03 21:14:31 +08:00