[issue36594] Undefined behavior due to incorrect usage of %p in format strings

2019-05-13 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36594] Undefined behavior due to incorrect usage of %p in format strings

2019-05-06 Thread Brett Cannon
Brett Cannon added the comment: 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 --

[issue36594] Undefined behavior due to incorrect usage of %p in format strings

2019-04-13 Thread Stefan Krah
Stefan Krah added the comment: 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

[issue36594] Undefined behavior due to incorrect usage of %p in format strings

2019-04-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are not all pointer types (except pointers to functions) automatically converted to/from void*. -- ___ Python tracker ___

[issue36594] Undefined behavior due to incorrect usage of %p in format strings

2019-04-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36594] Undefined behavior due to incorrect usage of %p in format strings

2019-04-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue36594] Undefined behavior due to incorrect usage of %p in format strings

2019-04-10 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +12698 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36594] Undefined behavior due to incorrect usage of %p in format strings

2019-04-10 Thread Zackery Spytz
New submission from Zackery Spytz : The attached PR fixes incorrect usages of %p in format strings. -- ___ Python tracker ___ ___ Py

[issue36594] Undefined behavior due to incorrect usage of %p in format strings

2019-04-10 Thread Zackery Spytz
Change by Zackery Spytz : -- components: Extension Modules, Interpreter Core nosy: ZackerySpytz priority: normal severity: normal status: open title: Undefined behavior due to incorrect usage of %p in format strings versions: Python 2.7, Python 3.7, Python 3.8 _