Verify range against previous stub when linking getter PIC stubs, bug 688090. r=dvander

This commit is contained in:
Brian Hackett 2011-09-20 21:33:35 -07:00
parent 5c12242e17
commit c8f4c18ef3

View File

@ -1234,7 +1234,8 @@ class GetPropCompiler : public PICStubCompiler
if (!linker.init(f.cx))
THROW();
if (!linker.verifyRange(f.jit())) {
if (!linker.verifyRange(pic.lastCodeBlock(f.jit())) ||
!linker.verifyRange(f.jit())) {
disable("code memory is out of range");
return;
}