Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

tencent/mmkv
master @ 5028f5d
2
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Integer Overflow: 1 prior fix. Scrutinize any change in this area.
Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKV.java: most-fixed (1 issue). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Integer Overflow: Incorrect interpretation of unsigned native pointers with high bits set as negative numbers can bypass safety checks or trigger false errors during JNI buffer instantiation. Developers must ensure pointer validation does not rely on signed comparisons.
Path Traversal: Parsing malicious protobuf payloads containing invalid sizes or paths can trigger out-of-bounds memory reading or directory traversal during string reconstruction. Input deserializers must thoroughly validate offset boundaries and canonicalize paths before reading.