Bug 376957 - Prevent data leaks from cross-site JSON loads (JavaScript literals), by making the global name bindings ReadOnly/DontDelete and making [] and {} use the global bindings. Still more that can be done here, but this covers a lot of the fix. r+a=brendan

git-svn-id: svn://10.0.0.236/trunk@240378 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jwalden%mit.edu
2007-12-04 03:05:24 +00:00
parent 97e3ce1112
commit 680af8da29
19 changed files with 124 additions and 80 deletions

View File

@@ -120,7 +120,7 @@ typedef enum JSOpLength {
#define JOF_PARENHEAD (1U<<21) /* opcode consumes value of expression in
parenthesized statement head */
#define JOF_INVOKE (1U<<22) /* JSOP_CALL, JSOP_NEW, JSOP_EVAL */
#define JOF_TMPSLOT (1U<<23) /* interpreter uses extra temporray slot
#define JOF_TMPSLOT (1U<<23) /* interpreter uses extra temporary slot
to root intermediate objects */
#define JOF_TMPSLOT_SHIFT 23