diff options
author | Matthias Görgens <matthias.goergens@gmail.com> | 2022-10-10 16:12:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 16:12:29 (GMT) |
commit | 553d3c10172254b190078c50eb9f8e60522c8f41 (patch) | |
tree | 3542a1184d0c5769d10d3ecd14b9e93d00d4959c /Misc | |
parent | dfcdee4a18ece6f7c4fe1aa5830ee861f8b15b24 (diff) | |
download | cpython-553d3c10172254b190078c50eb9f8e60522c8f41.zip cpython-553d3c10172254b190078c50eb9f8e60522c8f41.tar.gz cpython-553d3c10172254b190078c50eb9f8e60522c8f41.tar.bz2 |
gh-96821: Fix undefined behaviour in `audioop.c` (#96923)
* gh-96821: Fix undefined behaviour in `audioop.c`
Left-shifting negative numbers is undefined behaviour.
Fortunately, multiplication works just as well, is defined behaviour,
and gets compiled to the same machine code as before by optimizing
compilers.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-09-19-03-35-01.gh-issue-96821.izK6JA.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-09-19-03-35-01.gh-issue-96821.izK6JA.rst b/Misc/NEWS.d/next/Core and Builtins/2022-09-19-03-35-01.gh-issue-96821.izK6JA.rst new file mode 100644 index 0000000..73d0c76 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-09-19-03-35-01.gh-issue-96821.izK6JA.rst @@ -0,0 +1 @@ +Fix undefined behaviour in ``audioop.c``. |