SIGN IN SIGN UP

bpo-41524: fix pointer bug in PyOS_mystr{n}icmp (GH-21845)

* bpo-41524: fix pointer bug in PyOS_mystr{n}icmp

The existing implementations of PyOS_mystrnicmp and PyOS_mystricmp
can increment pointers beyond the end of a string.

This commit fixes those cases by moving the mutation out of the condition.

* 📜🤖 Added by blurb_it.

* Address comments

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
W
wmeehan committed
97eaf2b5e5c826b9abe59896a363853bef55c5d9
Parent: 022bc75
Committed by GitHub <noreply@github.com> on 8/27/2020, 5:45:25 AM