Repository navigation
Commit dac2c06
committed
gh-159631: Reject NUL in memoryview credentials in IMAP4.login_plain()
The NUL check ran before the user name and password were converted to
bytes, so for a memoryview or another bytes-like object other than
bytes and bytearray it compared integer items and never matched.1 parent e5ef47e commit dac2c06
3 files changed
Lines changed: 9 additions & 1 deletion
File tree
- Lib
- test
- Misc/NEWS.d/next/Library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
| 911 | + | |
| 912 | + | |
911 | 913 | | |
912 | 914 | | |
913 | 915 | | |
914 | 916 | | |
915 | 917 | | |
916 | | - | |
| 918 | + | |
917 | 919 | | |
918 | 920 | | |
919 | 921 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
854 | 858 | | |
855 | 859 | | |
856 | 860 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments