This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, swirsz
Date 2022-01-07.15:35:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641569738.36.0.37334020643.issue46294@roundup.psfhosted.org>
In-reply-to
Content
@swirsz: Thanks for the report.

Most of these look like false positives: we're intentionally making use of C's unsigned arithmetic behaviour. Note that these are technically *not* overflows. As the C standard itself says, in C99 §6.2.5, paragraph 9:

> A computation involving unsigned operands can never overflow,
> because a result that cannot be represented by the resulting
> unsigned integer type is reduced modulo the number that is one
> greater than the largest value that can be represented by the
> resulting type. 

.. and we're deliberately depending on exactly that well-defined reduction behaviour.

Would you be able to do a first pass over the results and identify those that might be genuine issues, worthy of further investigation?
History
Date User Action Args
2022-01-07 15:35:38mark.dickinsonsetrecipients: + mark.dickinson, swirsz
2022-01-07 15:35:38mark.dickinsonsetmessageid: <1641569738.36.0.37334020643.issue46294@roundup.psfhosted.org>
2022-01-07 15:35:38mark.dickinsonlinkissue46294 messages
2022-01-07 15:35:38mark.dickinsoncreate