]> granicus.if.org Git - python/commit
bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 20 May 2018 15:40:10 +0000 (08:40 -0700)
committerGitHub <noreply@github.com>
Sun, 20 May 2018 15:40:10 +0000 (08:40 -0700)
commit073eca39a55b86ec7dd7a437ac0c910751a60ace
treea74e06ced0cea7ee2af7c6e68c038253b210bdb5
parent736e3b32194b52b1779ce88a2c13862f0f913a7a
bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922)

uuid._ipconfig_getnode did not validate the maximum length of the value,
so long as the value had the same type of formatting as a MAC address.
This let it select DUIDs as MAC addresses. It now requires an exact
length match.
(cherry picked from commit c66c342cb42ab8a88884527ddfe3a5086bc06316)

Co-authored-by: CtrlZvi <viz+github@flippedperspective.com>
Lib/uuid.py
Misc/ACKS
Misc/NEWS.d/next/Library/2018-05-16-09-30-27.bpo-33542.idNAcs.rst [new file with mode: 0644]