[Python-bugs-list] [ python-Bugs-837242 ] id() for large ptr should return a long

SourceForge.net noreply at sourceforge.net
Thu Nov 6 15:54:45 EST 2003


Bugs item #837242, was opened at 2003-11-06 16:11
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=837242&group_id=5470

Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Nobody/Anonymous (nobody)
Summary: id() for large ptr should return a long

Initial Comment:
Under something like Redhat 10 the address space is
messed about with to "prevent stack smash attacks" or
some such. This means that you sometimes get addresses
in the high half of a 32 bit int. Since Python ints are
signed, this means we return a negative number from
id(). For 2.4, we should probably return a long. 

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-11-06 21:54

Message:
Logged In: YES 
user_id=21627

Would there anything be wrong with making that change right
away?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=837242&group_id=5470



More information about the Python-bugs-list mailing list