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

NTP validation, and rejecting malformed responses (related to #3515) #3536

Merged
merged 4 commits into from
Nov 20, 2023

Conversation

softhack007
Copy link
Collaborator

validate NTP responses (fixes #3515)

  • purge old (not yet processes) NTP responses
  • validate server responses before updating WLED time
  • purge receive buffer when package is rejected (avoids mem leak on esp32)
  • bugfix: trigger NTP query directly when NTP was enabled from UI (previously there could be a delay of up to 12 hours)

@Aircoookie, @blazoncek: Please quickly check this change in your environment before merging into 0_14_1.

* purge old (not yet processes) NTP responses
* validate server responses before updating WLED time
* purge receive buffer when package is rejected (avoids mem leak on esp32)
when NTP got enabled via UI, WLED would wait up to 12 hours before issuing the first NTP request.
@softhack007 softhack007 changed the title NTP validation, and rejecting malformed responses (related to https://github.com/Aircoookie/WLED/issues/3515) NTP validation, and rejecting malformed responses (related to #3515) Nov 20, 2023
Copy link
Collaborator

@blazoncek blazoncek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from some indentation it looks ok to me.

@softhack007 softhack007 merged commit 32e724e into 0_14_1 Nov 20, 2023
24 checks passed
@softhack007 softhack007 deleted the ntp_errorchecking branch November 20, 2023 20:13
softhack007 added a commit to MoonModules/WLED that referenced this pull request Nov 22, 2023
NTP validation, and rejecting malformed responses (related to Aircoookie#3515)
softhack007 added a commit to MoonModules/WLED that referenced this pull request Nov 22, 2023
NTP validation, and rejecting malformed responses (related to Aircoookie#3515)
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.

None yet

2 participants