Skip to content

Comments

prevent buffer overflow from input string#9

Open
rd-blue wants to merge 1 commit intojoy-it:masterfrom
rd-blue:fix-buffer-overflows
Open

prevent buffer overflow from input string#9
rd-blue wants to merge 1 commit intojoy-it:masterfrom
rd-blue:fix-buffer-overflows

Conversation

@rd-blue
Copy link

@rd-blue rd-blue commented Jul 7, 2024

StromPI3 V1.8 crashes with a buffer overflow when input string is too long. Then no command mode is possible anymore. This can happen e.g. when used with Home Assistant which is producing some messages during boot on serial0. When survived on Home Assistant status is messed up and looks like this:

show-status

Time: 00:03:00
Date: Tuesday 01.05.2018

StromPi-Output: mUSB

StromPi-Mode: mUSB

Raspberry Pi Shutdown: Disabled
Shutdown-Timer: 12901 seconds

Powerfail Warning: Disabled

Serial-Less Mode: Disabled

Power Save Mode: Disabled

Power-Off Mode: Disabled

Powerfailure-Counter: 13619

PowerOn-Button: Disabled
PowerOn-Button-Timer: 14384 seconds

FirmwareVersion: v1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant