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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user