Compare commits
9 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8dca4f8f2c | ||
|
|
d59865a6e1 | ||
|
|
d32d9b30c0 | ||
|
|
1a3f970c01 |
||
|
|
fadc737904 | ||
|
|
df23a3e870 | ||
|
|
2452b76687 | ||
|
|
9839f82f92 | ||
|
|
03d5163236 |
3 changed files with 45 additions and 3 deletions
38
0001-CVE-2024-4068-fix.patch
Normal file
38
0001-CVE-2024-4068-fix.patch
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
From 1dfe8b9208dade21baad8344d6e9847eecb5837d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aaron Moat <2937187+AaronMoat@users.noreply.github.com>
|
||||||
|
Date: Tue, 21 May 2024 17:32:41 +1000
|
||||||
|
Subject: [PATCH] Lower defaultLength to 10000
|
||||||
|
|
||||||
|
---
|
||||||
|
README.md | 2 +-
|
||||||
|
lib/constants.js | 2 +-
|
||||||
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
**Description**: Limit the length of the input string. Useful when the input string is generated or your application allows users to pass a string, et cetera.
|
||||||
|
|
||||||
|
diff --git a/README.md b/README.md
|
||||||
|
index 6b94046..f59dd60 100644
|
||||||
|
--- node_modules/braces/README.md
|
||||||
|
+++ node_modules/braces/README.md
|
||||||
|
@@ -178,7 +178,7 @@ console.log(braces.expand('a{b}c'));
|
||||||
|
|
||||||
|
**Type**: `Number`
|
||||||
|
|
||||||
|
-**Default**: `65,536`
|
||||||
|
+**Default**: `10,000`
|
||||||
|
|
||||||
|
**Description**: Limit the length of the input string. Useful when the input string is generated or your application allows users to pass a string, et cetera.
|
||||||
|
|
||||||
|
diff --git a/lib/constants.js b/lib/constants.js
|
||||||
|
index a937943..2bb3b88 100644
|
||||||
|
--- node_modules/braces/lib/constants.js
|
||||||
|
+++ node_modules/braces/lib/constants.js
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
- MAX_LENGTH: 1024 * 64,
|
||||||
|
+ MAX_LENGTH: 10000,
|
||||||
|
|
||||||
|
// Digits
|
||||||
|
CHAR_0: '0', /* 0 */
|
||||||
|
|
@ -5,13 +5,17 @@
|
||||||
%global enable_tests 0
|
%global enable_tests 0
|
||||||
|
|
||||||
Name: nodejs-%{npm_name}
|
Name: nodejs-%{npm_name}
|
||||||
Version: 3.1.4
|
Version: 3.1.11
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Simple monitor script for use during development of a node.js app
|
Summary: Simple monitor script for use during development of a node.js app
|
||||||
License: ISC AND MIT
|
License: ISC AND MIT
|
||||||
URL: https://github.com/remy/nodemon
|
URL: https://github.com/remy/nodemon
|
||||||
Source0: %{npm_name}-v%{version}-bundled.tar.gz
|
Source0: %{npm_name}-v%{version}-bundled.tar.gz
|
||||||
|
|
||||||
|
# Patch in the fix for unlimited resource allocation of dependency
|
||||||
|
# Source: https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff
|
||||||
|
Patch: 0001-CVE-2024-4068-fix.patch
|
||||||
|
|
||||||
BuildRequires: nodejs-devel
|
BuildRequires: nodejs-devel
|
||||||
BuildRequires: nodejs-packaging
|
BuildRequires: nodejs-packaging
|
||||||
BuildRequires: npm
|
BuildRequires: npm
|
||||||
|
|
@ -41,7 +45,7 @@ on the command line when you run your script.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{npm_name}-%{version}
|
%setup -q -n %{npm_name}-%{version}
|
||||||
|
%patch -P 0
|
||||||
%build
|
%build
|
||||||
|
|
||||||
# nothing to do
|
# nothing to do
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (nodemon-v3.1.4-bundled.tar.gz) = 81b2f6bb1383eaeb8d3dbfa74f31bfa2d3d6ea31107b8561282c3858e427b8512eb59431686d6ee6d8b28d905179e0a7004bb5303ec5b9c706bcda97dc220420
|
SHA512 (nodemon-v3.1.11-bundled.tar.gz) = 77a02847c266654c3cb4f49acc74235aa277c7dc786770097790e2f2c5addc4a4db79c23dbcbf9e5938f01b26ad79cb8cf001e76bf51fa28fc927125e8a3e9a8
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue