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

Config: fix buffer overflow when loading json config #617

Merged
merged 1 commit into from
Aug 10, 2019
Merged

Config: fix buffer overflow when loading json config #617

merged 1 commit into from
Aug 10, 2019

Conversation

iluminat23
Copy link
Contributor

When the configSize is MAX_JSON_CONFIG_FILE_SIZE the '\0' is written
after the buffers end. Don't load config files with a
size >= MAX_JSON_CONFIG_FILE_SIZE.

Signed-off-by: Philipp Rosenberger code@iluminat23.org

When the configSize is MAX_JSON_CONFIG_FILE_SIZE the '\0' is written
after the buffers end. Don't load config files with a
size >= MAX_JSON_CONFIG_FILE_SIZE.

Signed-off-by: Philipp Rosenberger <code@iluminat23.org>
@kleini kleini self-requested a review July 23, 2019 09:02
@stritti stritti merged commit 88201f7 into homieiot:develop-v3 Aug 10, 2019
gorec2005 pushed a commit to gorec2005/homie-esp8266 that referenced this pull request Jun 28, 2020
* Change compiler error to runtime error.
Add compiler warining when a ASYNCWEBSERVER_REGEX function is used, but not enabled

* Update docs for usage in Arduino IDE

* Update docs for platform.local.txt
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.

2 participants