]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7015)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 20 May 2018 22:50:33 +0000 (01:50 +0300)
committerGitHub <noreply@github.com>
Sun, 20 May 2018 22:50:33 +0000 (01:50 +0300)
commitea9a0994cd0f4bd37799b045c34097eb21662b3d
tree65d4fe3ce7a75241e95eefc89961262228334d22
parentd13169fc5ac7572a272cbcff830c3d96ba27cc7c
[2.7] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7015)

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]