diff options
| author | drkhsh <me@drkhsh.at> | 2026-02-12 22:52:21 +0100 |
|---|---|---|
| committer | drkhsh <me@drkhsh.at> | 2026-02-12 22:52:21 +0100 |
| commit | 98769dfed7266b5a9959162e03bee1ddfaf5ecb4 (patch) | |
| tree | 5ef79b4995a89cff511eec651842639a653df9d7 /components/temperature.c | |
| parent | 4f61bbbd8e9278c75f29e7853ae8922717261d2d (diff) | |
| download | slstatus-98769dfed7266b5a9959162e03bee1ddfaf5ecb4.tar.gz | |
fix buffer overflow in battery state parsing
"Not charging" is 12 characters; %12[a-zA-Z ] reads up to 12 chars
plus a NUL terminator (13 bytes) into a 12-byte buffer. Increase
state buffer to 13 in both battery_state and battery_remaining.
Diffstat (limited to 'components/temperature.c')
0 files changed, 0 insertions, 0 deletions
