diff options
author | Christian Heimes <christian@python.org> | 2018-12-10 10:22:37 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-12-10 10:22:37 (GMT) |
commit | 2eb6ad8578fa9d764c21a92acd8e054e3202ad19 (patch) | |
tree | ec8156905638640f904aa7f692e2cbdbe861e38b /Misc/NEWS.d | |
parent | 8e0418688906206fe59bd26344320c0fc026849e (diff) | |
download | cpython-2eb6ad8578fa9d764c21a92acd8e054e3202ad19.zip cpython-2eb6ad8578fa9d764c21a92acd8e054e3202ad19.tar.gz cpython-2eb6ad8578fa9d764c21a92acd8e054e3202ad19.tar.bz2 |
bpo-35050: AF_ALG length check off-by-one error (GH-10058)
The length check for AF_ALG salg_name and salg_type had a off-by-one
error. The code assumed that both values are not necessarily NULL
terminated. However the Kernel code for alg_bind() ensures that the last
byte of both strings are NULL terminated.
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2018-10-23-15-03-53.bpo-35050.49wraS.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-10-23-15-03-53.bpo-35050.49wraS.rst b/Misc/NEWS.d/next/Core and Builtins/2018-10-23-15-03-53.bpo-35050.49wraS.rst new file mode 100644 index 0000000..9a33416 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2018-10-23-15-03-53.bpo-35050.49wraS.rst @@ -0,0 +1 @@ +:mod:`socket`: Fix off-by-one bug in length check for ``AF_ALG`` name and type. |