]> granicus.if.org Git - python/commit
[3.6] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7014)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 21 May 2018 12:20:55 +0000 (15:20 +0300)
committerGitHub <noreply@github.com>
Mon, 21 May 2018 12:20:55 +0000 (15:20 +0300)
commite9e2fd75ccbc6e9a5221cf3525e39e9d042d843f
treebea2537e61913edd967b076484640a957f4b027e
parent7208bfb64b74f31f9704be3f01f26861c9cf092b
[3.6] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7014)

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]