Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent buffer overflow from input string #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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