mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 11:27:55 +00:00
Avoid harmless UMC from purify when XDR-decoding (252047, r=shaver).
This commit is contained in:
parent
f83173d6c0
commit
4711f5d6ff
@ -573,6 +573,7 @@ js_XDRScript(JSXDRState *xdr, JSScript **scriptp, JSBool *hasMagic)
|
||||
script->trynotes = (JSTryNote *)
|
||||
((jsword)(SCRIPT_NOTES(script) + nsrcnotes) &
|
||||
~(jsword)JSTRYNOTE_ALIGNMASK);
|
||||
memset(script->trynotes, 0, ntrynotes * sizeof(JSTryNote));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1064,6 +1065,7 @@ js_NewScript(JSContext *cx, uint32 length, uint32 nsrcnotes, uint32 ntrynotes)
|
||||
script->trynotes = (JSTryNote *)
|
||||
((jsword)(SCRIPT_NOTES(script) + nsrcnotes) &
|
||||
~(jsword)JSTRYNOTE_ALIGNMASK);
|
||||
memset(script->trynotes, 0, ntrynotes * sizeof(JSTryNote));
|
||||
}
|
||||
return script;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user