Issue 36594: Undefined behavior due to incorrect usage of %p in format strings (original) (raw)
Issue36594
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/80775
classification
Title: | Undefined behavior due to incorrect usage of %p in format strings | ||
---|---|---|---|
Type: | Stage: | resolved | |
Components: | Extension Modules, Interpreter Core | Versions: | Python 3.8, Python 3.7, Python 2.7 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | Nosy List: | ZackerySpytz, brett.cannon, mark.dickinson, serhiy.storchaka, skrah | |
Priority: | normal | Keywords: | patch |
Created on 2019-04-11 00:10 by ZackerySpytz, last changed 2022-04-11 14:59 by admin. This issue is now closed.
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 12769 | merged | ZackerySpytz,2019-04-11 00:14 |
Messages (4) | ||
---|---|---|
msg339907 - (view) | Author: Zackery Spytz (ZackerySpytz) * ![]() |
Date: 2019-04-11 00:14 |
The attached PR fixes incorrect usages of %p in format strings. | ||
msg340151 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2019-04-13 11:01 |
Are not all pointer types (except pointers to functions) automatically converted to/from void*. | ||
msg340152 - (view) | Author: Stefan Krah (skrah) * ![]() |
Date: 2019-04-13 11:17 |
gcc warns with -pedantic: ptr.c: In function ‘main’: ptr.c:5:13: warning: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘int *’ [-Wformat=] printf ("%p", &i); It is pedantic indeed, I wonder if machines with different pointer sizes still exist. | ||
msg341564 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2019-05-06 16:56 |
New changeset 1a2252ed39bc1b71cdaa935d7726d82909af93ab by Brett Cannon (Zackery Spytz) in branch 'master': bpo-36594: Fix incorrect use of %p in format strings (GH-12769) https://github.com/python/cpython/commit/1a2252ed39bc1b71cdaa935d7726d82909af93ab |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:59:13 | admin | set | github: 80775 |
2019-05-14 03:55:31 | brett.cannon | set | status: open -> closedresolution: fixedstage: patch review -> resolved |
2019-05-06 16:56:58 | brett.cannon | set | nosy: + brett.cannonmessages: + |
2019-04-13 11:17:25 | skrah | set | nosy: + skrahmessages: + |
2019-04-13 11:01:43 | serhiy.storchaka | set | messages: + |
2019-04-13 10:57:50 | serhiy.storchaka | set | nosy: + mark.dickinson |
2019-04-11 00:21:17 | xtreak | set | nosy: + serhiy.storchaka |
2019-04-11 00:14:26 | ZackerySpytz | set | messages: + |
2019-04-11 00:14:02 | ZackerySpytz | set | keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest12698> |
2019-04-11 00:10:57 | ZackerySpytz | create |