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.
Created on 2007年08月25日 17:47 by nnorwitz, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| code-bytes.patch | nnorwitz, 2007年08月25日 17:47 | |||
| Messages (4) | |||
|---|---|---|---|
| msg55290 - (view) | Author: Neal Norwitz (nnorwitz) * (Python committer) | Date: 2007年08月25日 17:47 | |
This patch has a hack to read in marshaled code objects. Bytes can't be marshaled currently (they are stored as strings). So when reading a marshaled code object, the hack converts them to bytes. All tests except test_modulefinder pass. The issue is that since bytes are mutable, they aren't suitable for code objects since a user could change them at any time. |
|||
| msg55436 - (view) | Author: Guido van Rossum (gvanrossum) * (Python committer) | Date: 2007年08月29日 20:42 | |
I'll defer thinking about this until post-a1. |
|||
| msg55597 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2007年09月03日 02:37 | |
I have security/stability issues with code objects having mutable bytecode. This would allow someone to possibly crash the interpreter with crappy bytecode. I also have a worry that someone might come up with some clever way of causing different code to execute through manipulating what LOAD_GLOBALS or STORE_GLOBALS accesses/sets. |
|||
| msg56727 - (view) | Author: Guido van Rossum (gvanrossum) * (Python committer) | Date: 2007年10月24日 20:02 | |
We won't be doing it this way. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:26 | admin | set | github: 45363 |
| 2007年10月24日 20:02:52 | gvanrossum | set | status: open -> closed resolution: remind -> rejected messages: + msg56727 |
| 2007年09月17日 07:56:43 | jafo | set | priority: low assignee: gvanrossum resolution: remind |
| 2007年09月03日 02:37:02 | brett.cannon | set | nosy:
+ brett.cannon messages: + msg55597 |
| 2007年09月02日 20:08:29 | loewis | set | keywords: + patch |
| 2007年08月29日 20:42:04 | gvanrossum | set | nosy:
+ gvanrossum messages: + msg55436 |
| 2007年08月25日 17:47:08 | nnorwitz | create | |