Commit 3fe86a4
Adam Hrbac
Ensure co_consts doesn't provide python access to a raw java array
At some point in jinja2.loaders, the code object for the function load gets hashed. Since
this function contains the list view ['root'], it used to be placed into co_consts as
a singleton Object[] containing a TruffleString. This then made the hash crash. This
way it is stored as a tuple and can get hashed normally, fixing the issue1 parent 513a262 commit 3fe86a4
File tree
2 files changed
+13
-0
lines changed- graalpython
- com.oracle.graal.python.test/src/tests
- com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code
2 files changed
+13
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
633 | 634 | | |
634 | 635 | | |
635 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
636 | 640 | | |
| 641 | + | |
| 642 | + | |
637 | 643 | | |
638 | 644 | | |
639 | 645 | | |
| |||
0 commit comments