Skip to content

FIX: getEfuseMac can return random data #1059

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

Merged
merged 1 commit into from
Mar 4, 2018
Merged

Conversation

tferrin
Copy link
Contributor

@tferrin tferrin commented Feb 1, 2018

esp_efuse_mac_get_default() only stores into the bottom 6 bytes of it's 8-byte argument, so must initialize the arg to zero to avoid trash on the stack.

esp_efuse_mac_get_default() only stores into the bottom 6 bytes of it's 8-byte argument, so must initialize this arg to zero to avoid trash on the stack.
@me-no-dev
Copy link
Member

nice find :) Thanks for the contribution!

@me-no-dev me-no-dev merged commit da46d0b into espressif:master Mar 4, 2018
Curclamas pushed a commit to Curclamas/arduino-esp32 that referenced this pull request Aug 21, 2018
esp_efuse_mac_get_default() only stores into the bottom 6 bytes of it's 8-byte argument, so must initialize this arg to zero to avoid trash on the stack.
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