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

erl.exe crashes on invalid HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SearchList value #9482

Closed
inikulshin opened this issue Feb 24, 2025 · 1 comment
Labels
bug Issue is reported as a bug

Comments

@inikulshin
Copy link

inikulshin commented Feb 24, 2025

Describe the bug

erl.exe -noshell -eval erlang:get_cookie() -s init stop -name undefined crashes when HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SearchList contains zero-length data (without null-termination)

To Reproduce

  • Open regedit
  • "Modify Binary Data..." HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SearchList to string w/o null-termination.
  • Execute erl.exe -noshell -eval erlang:get_cookie() -s init stop -name undefined

Expected behavior
Success.

Affected versions
26.2.5

@inikulshin inikulshin added the bug Issue is reported as a bug label Feb 24, 2025
@jhogberg
Copy link
Contributor

Thanks for your report, this is fixed on the OTP 27 track. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug
Projects
None yet
Development

No branches or pull requests

2 participants