Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(168)

Unified Diff: Objects/genobject.c

Issue 20051: Minimal patch to secure the Python interpreter
Patch Set: Post-challenge version of the secure python patch. Created 16 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Objects/genobject.c
===================================================================
--- Objects/genobject.c (revision 69906)
+++ Objects/genobject.c (working copy)
@@ -312,9 +312,11 @@
static PyMemberDef gen_memberlist[] = {
- {"gi_frame", T_OBJECT, offsetof(PyGenObject, gi_frame), RO},
- {"gi_running", T_INT, offsetof(PyGenObject, gi_running), RO},
- {"gi_code", T_OBJECT, offsetof(PyGenObject, gi_code), RO},
+ {"gi_frame", T_OBJECT, offsetof(PyGenObject, gi_frame),
+ RO|RESTRICTED},
GvR 2009/02/25 17:42:41 Given the restrictions on frames, do you still nee
asktav 2009/02/25 21:00:57 Good point. But I'd like to keep this restriction
+ {"gi_running", T_INT, offsetof(PyGenObject, gi_running), RO},
+ {"gi_code", T_OBJECT, offsetof(PyGenObject, gi_code),
+ RO|RESTRICTED},
GvR 2009/02/25 17:42:41 Again, why do you restrict the code object? (I gu
asktav 2009/02/25 21:00:57 code_object.co_consts
{NULL} /* Sentinel */
};
« Objects/frameobject.c ('K') | « Objects/frameobject.c ('k') | Objects/typeobject.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b