Privacy-Period-Tracker/app
null fa1cfe5515 fix: a stray NUL byte made a Kotlin source file binary to git
AppLockViewModel.kt landed in 1d8d7cc with a single 0x00 at offset 5468, inside
the char literal of pin.fill(...). It compiled — Kotlin accepted the raw byte as
a character — and every test passed, so nothing caught it except the commit
summary reporting "Bin 0 -> 7069 bytes" where every other file showed a line
count.

That matters more than a stray byte usually would. A source file git treats as
binary produces no diff, so this file would have been unreviewable in every
future change — and it is the file that decides whether the app is locked.

It is written as an explicit unicode escape now, which is what was meant. The
two fills in LockSettingsViewModel used a space, blanking a PIN rather than
zeroing it, and now use the same escape: the whole point of the call is to leave
nothing behind.

Verified: `file` reports UTF-8 text, and no tracked source contains a NUL byte —
only the images and the Gradle wrapper jar do.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-19 04:04:25 -05:00
..
src fix: a stray NUL byte made a Kotlin source file binary to git 2026-08-19 04:04:25 -05:00
build.gradle.kts feat: app lock, with no way to reset a forgotten PIN 2026-08-19 04:02:47 -05:00
proguard-rules.pro feat: guard §45's logging rules, and stop the leak that needed no log call 2026-08-18 22:01:33 -05:00