summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaelGSS <rafael.nunu@hotmail.com>2023-01-18 17:37:37 -0300
committerRafaelGSS <rafael.nunu@hotmail.com>2023-02-16 18:50:03 -0300
commitf369c0a739b9f0182ededa834a2a44e6fec322d1 (patch)
tree28b33450bc6ecc2f34541c29b0eb93f585c1b3d5
parent438812e14d3b2a705fb639b69e37c6cc4e7c8029 (diff)
downloadnode-new-f369c0a739b9f0182ededa834a2a44e6fec322d1.tar.gz
build: build ICU with ICU_NO_USER_DATA_OVERRIDE
Refs: https://hackerone.com/bugs?subject=nodejs&report_id=1625036 CVE-ID: 2023-23920 PR-URL: https://github.com/nodejs-private/node-private/pull/374 Reviewed-by: Michael Dawson <midawson@redhat.com> Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-by: Richard Lau <rlau@redhat.com>
-rwxr-xr-xconfigure.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 4ebb5606be..215aee5d80 100755
--- a/configure.py
+++ b/configure.py
@@ -1669,6 +1669,9 @@ def configure_intl(o):
# always set icu_small, node.gyp depends on it being defined.
o['variables']['icu_small'] = b(False)
+ # prevent data override
+ o['defines'] += ['ICU_NO_USER_DATA_OVERRIDE']
+
with_intl = options.with_intl
with_icu_source = options.with_icu_source
have_icu_path = bool(options.with_icu_path)