mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 03:15:09 -05:00
c3499ad6b8
* gnu/packages/patches/icecat-CVE-2015-4477.patch, gnu/packages/patches/icecat-CVE-2015-7207.patch, gnu/packages/patches/icecat-CVE-2016-1952-pt01.patch, gnu/packages/patches/icecat-CVE-2016-1952-pt02.patch, gnu/packages/patches/icecat-CVE-2016-1952-pt03.patch, gnu/packages/patches/icecat-CVE-2016-1952-pt04.patch, gnu/packages/patches/icecat-CVE-2016-1952-pt05.patch, gnu/packages/patches/icecat-CVE-2016-1952-pt06.patch, gnu/packages/patches/icecat-CVE-2016-1954.patch, gnu/packages/patches/icecat-CVE-2016-1960.patch, gnu/packages/patches/icecat-CVE-2016-1961.patch, gnu/packages/patches/icecat-CVE-2016-1962.patch, gnu/packages/patches/icecat-CVE-2016-1964.patch, gnu/packages/patches/icecat-CVE-2016-1965.patch, gnu/packages/patches/icecat-CVE-2016-1966.patch, gnu/packages/patches/icecat-CVE-2016-1974.patch, gnu/packages/patches/icecat-bug-1248851.patch: New files. * gnu-system.am (dist_patch_DATA): Add them. * gnu/packages/gnuzilla.scm (icecat)[source]: Add patches.
60 lines
1.8 KiB
Diff
60 lines
1.8 KiB
Diff
Copied from upstream:
|
|
https://hg.mozilla.org/releases/mozilla-esr38/raw-rev/2839062f84fb
|
|
|
|
# HG changeset patch
|
|
# User Jan de Mooij <jdemooij@mozilla.com>
|
|
# Date 1455119320 -3600
|
|
# Node ID 2839062f84fb6cba2781ea8d59150f13d4813ddc
|
|
# Parent 185b233ea03f3811404e3979b65ec86b29d13555
|
|
Bug 1242279 - r=bhackett1024 a=sylvestre
|
|
|
|
diff --git a/js/src/vm/TypeInference.cpp b/js/src/vm/TypeInference.cpp
|
|
--- a/js/src/vm/TypeInference.cpp
|
|
+++ b/js/src/vm/TypeInference.cpp
|
|
@@ -3961,16 +3961,22 @@ JSScript::maybeSweepTypes(AutoClearTypeI
|
|
|
|
unsigned num = TypeScript::NumTypeSets(this);
|
|
StackTypeSet* typeArray = types_->typeArray();
|
|
|
|
// Remove constraints and references to dead objects from stack type sets.
|
|
for (unsigned i = 0; i < num; i++)
|
|
typeArray[i].sweep(zone(), *oom);
|
|
|
|
+ if (oom->hadOOM()) {
|
|
+ // It's possible we OOM'd while copying freeze constraints, so they
|
|
+ // need to be regenerated.
|
|
+ hasFreezeConstraints_ = false;
|
|
+ }
|
|
+
|
|
// Update the recompile indexes in any IonScripts still on the script.
|
|
if (hasIonScript())
|
|
ionScript()->recompileInfoRef().shouldSweep(types);
|
|
}
|
|
|
|
void
|
|
TypeScript::destroy()
|
|
{
|
|
diff --git a/js/src/vm/TypeInference.h b/js/src/vm/TypeInference.h
|
|
--- a/js/src/vm/TypeInference.h
|
|
+++ b/js/src/vm/TypeInference.h
|
|
@@ -566,16 +566,19 @@ class AutoClearTypeInferenceStateOnOOM
|
|
: zone(zone), oom(false)
|
|
{}
|
|
|
|
~AutoClearTypeInferenceStateOnOOM();
|
|
|
|
void setOOM() {
|
|
oom = true;
|
|
}
|
|
+ bool hadOOM() const {
|
|
+ return oom;
|
|
+ }
|
|
};
|
|
|
|
/* Superclass common to stack and heap type sets. */
|
|
class ConstraintTypeSet : public TypeSet
|
|
{
|
|
public:
|
|
/* Chain of constraints which propagate changes out from this type set. */
|
|
TypeConstraint* constraintList;
|
|
|