39 Commits

Author SHA1 Message Date
guoling 0f688fd15f Complete interrupted and partial zero-fill writes 2026-09-04 16:56:00 +08:00
guoling 77c3e7d2e0 Require complete whole-file reads 2026-09-04 16:56:00 +08:00
guoling baf36b8695 Refine v2.4.2 hardening fixes 2026-08-20 21:42:19 +08:00
guoling c79b7a59d5 Harden backup and restore file handling 2026-08-05 13:39:29 +08:00
guoling 7224f0aa8f Fix -Wmissing-braces 2026-03-27 16:23:03 +08:00
Guo Ling f6e6fbc5e0 convert log message to utf-8 by (changing src in utf-8) for win32 client 2026-01-30 18:04:08 +08:00
Guo Ling 59b6762dfd change log to debug 2026-01-30 16:03:42 +08:00
guoling 96390cc85a verify all page in win32 for corrupted file 2026-01-29 15:27:48 +08:00
guoling 9789080b25 fix iOS compile error on tryAtomicRename() 2025-12-29 17:05:54 +08:00
guoling c708914c04 protect from delete file failure on corrupted files 2025-12-18 19:33:30 +08:00
guoling d18e2b92a7 protect from weakly_canonical() exception 2025-11-11 12:32:45 +08:00
guoling 467c44af67 opt Win32 load from file speed 2025-05-07 15:50:53 +08:00
guoling 4ad7236e0c dont depend on OS close() to unlock file locks, for Linux/Android flock() is buggy with mmap() 2025-05-07 14:23:41 +08:00
guoling 185f867888 tidy 2025-04-22 20:02:27 +08:00
guoling f0e80ad484 add mayfly fd for Win32/POSIX 2025-04-18 21:52:05 +08:00
guoling aad8e484c0 add iOS/macOS/Win32 disk failure protection 2025-01-13 18:11:22 +08:00
guoling f2fa428bf6 NameSpace works on Win32 2025-01-13 12:14:59 +08:00
guoling dd8847ce37 Win32: only mmap() on ftruncate()/zeroFillFile() failture iff we have a valid file mapping before #1068 2024-11-19 11:20:52 +08:00
guoling 47d3c0893a add readonly support 2024-09-06 19:44:11 +08:00
guoling 4cb1891c36 support x64 in windows #1254 2024-04-19 15:29:51 +08:00
guoling 80a27ff49e log mmap() result address 2024-01-09 17:40:05 +08:00
guoling 02e07a7c2b make expectCapacity more consistent 2023-11-21 19:43:32 +08:00
Lishaokai 73f01e5d50 set expected capacity for file length when init #1114 2023-08-11 21:23:12 +08:00
guoling 3a171604fa fix ftruncate() bug on Win32 #1068 2023-05-30 16:38:40 +08:00
guoling 209ad09cff fix MinGW64 printf bug #1062 2023-04-20 14:42:17 +08:00
guoling 674e700038 cleanup platform specific code 2021-09-27 22:10:40 +08:00
guoling 82bfae8c02 format 2021-09-27 20:10:09 +08:00
guoling a3ffbf1598 don't clear metafile on clearMemoryCache() 2021-09-27 18:25:33 +08:00
guoling 3c73b8b2f8 backup & restore works on Win32 2021-09-24 21:50:20 +08:00
guoling ba73f62933 fix Win32 compile error 2020-10-16 22:08:25 +08:00
guoling 177a2a3c68 tidy 2020-01-21 22:04:42 +08:00
guoling 455b9d840c remove ThreadLock & InterProcessLock from MMKV public header 2020-01-03 18:52:00 +08:00
guoling 8a1d777302 type safe for pb utils 2020-01-03 16:37:40 +08:00
guoling ebdac3eee9 tidy typename 2020-01-02 16:53:55 +08:00
guoling 5325333585 cleanup 2019-12-26 17:15:19 +08:00
guoling 9364d0ccfd add relativePath support for iOS 2019-12-24 22:13:42 +08:00
guoling d383aa71ec tidy Win32 stuff 2019-12-18 15:51:02 +08:00
guoling 36df7b56c8 remove hardcode MMKV_WIN32 2019-12-18 11:33:16 +08:00
guoling dabb3f6ba5 most things for Win32 actually work 2019-12-17 21:47:33 +08:00