git: f108b1851948 - main - www/freenginx-devel: update njs module to 1.0.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jun 2026 10:52:49 UTC
The branch main has been updated by osa:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f108b18519486cfb34c42087126de7c9fd3fbdd5
commit f108b18519486cfb34c42087126de7c9fd3fbdd5
Author: Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2026-06-26 10:42:04 +0000
Commit: Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2026-06-26 10:44:22 +0000
www/freenginx-devel: update njs module to 1.0.0
Bump PORTREVISION.
Sponsored by: tipi.work
<ChangeLog>
nginx modules:
*) Improvement: aligned HTTP, Stream, and Fetch exception classes
between the njs and QuickJS engines. API misuse is now reported
as TypeError and status bounds violations as RangeError.
*) Improvement: rejected unsafe request targets, methods, and header
values in ngx.fetch() before request serialization.
*) Bugfix: fixed a heap use-after-free in r.subrequest() when the
client closed the connection before the background subrequest
completed. The issue was introduced in 75d6b61 (0.9.5).
This closes #1077 issue on Github.
*) Bugfix: fixed a worker segfault while reading a request header
that nginx registers without a dedicated slot, such as
"Proxy-Connection", via r.headersIn.
This closes #1071 issue on Github.
*) Bugfix: excluded unverified-TLS and dynamic-proxy connections
from the ngx.fetch() keepalive cache and validated cached
connections before reuse.
*) Bugfix: fixed Content-Length truncation for very large request
bodies and a missing CONNECT terminator for proxies configured
without credentials in ngx.fetch().
*) Bugfix: fixed leaks of promises, events, and init property values
on ngx.fetch() failure paths in the QuickJS engine.
*) Bugfix: fixed missing fetch event cleanup when the resolver
failed to start.
*) Bugfix: fixed an out-of-bounds read of a short fetch proxy URL.
*) Bugfix: fixed request body truncation in r.readRequestJSON() for
bodies containing invalid UTF-8 in the QuickJS engine.
*) Bugfix: fixed an out-of-bounds read while loading a shared
dictionary state file.
*) Bugfix: set a pending exception when sendHeader(), send(), and
finish() fail in the njs HTTP handlers.
*) Bugfix: fixed the variable value state after a stream variable
storage allocation failure.
Core:
*) Improvement: bounded string-producing chained-buffer growth, so
that exceeding the maximum string length raises a catchable
RangeError("invalid string length") instead of exhausting worker
memory.
*) Improvement: aligned built-in exception classes (XML, console,
TextEncoder, TextDecoder, Buffer, fs.Stats) between the
njs and QuickJS engines.
*) Bugfix: fixed an infinite loop while inflating a zlib stream
that requires a dictionary in the QuickJS engine.
*) Bugfix: fixed an infinite loop in Buffer.prototype.fill() with
a zero-length typed array source.
*) Bugfix: fixed a use-after-free in Array.prototype.sort() when a
getter invoked for a hole grows the array.
*) Bugfix: fixed type confusion in Buffer.concat() when a list
element getter returns a typed array during validation but not
during the copy.
*) Bugfix: fixed an out-of-bounds access in the variable-length
Buffer readInt/writeInt methods with a zero byteLength.
*) Bugfix: fixed an out-of-bounds read in Buffer.prototype.toString()
when start was greater than end.
*) Bugfix: fixed Array.prototype.slice() of large arrays returning
wrong results in the non-fast keys path.
*) Bugfix: fixed the typed array constructor, slice(), toReversed(),
and toSorted() ignoring the source view byte offset in the
same-type fast path.
*) Bugfix: fixed Buffer allocation length checks for lengths greater
than or equal to 2^32 on 32-bit platforms.
*) Bugfix: fixed the Buffer.from() typed-array source offset for
multi-byte element types in the QuickJS engine.
*) Bugfix: fixed Buffer float access alignment.
*) Bugfix: fixed an out-of-bounds read in a parser string escape
lookahead.
<ChangeLog>
---
www/freenginx-devel/Makefile | 2 +-
www/freenginx-devel/Makefile.extmod | 2 +-
www/freenginx-devel/distinfo | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/www/freenginx-devel/Makefile b/www/freenginx-devel/Makefile
index f11b27ecd67a..a2b8206ffc66 100644
--- a/www/freenginx-devel/Makefile
+++ b/www/freenginx-devel/Makefile
@@ -1,7 +1,7 @@
PORTNAME= freenginx
PORTVERSION= ${NGINX_VERSION}
.include "version.mk"
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= www
MASTER_SITES= https://freenginx.org/download/ \
LOCAL/osa
diff --git a/www/freenginx-devel/Makefile.extmod b/www/freenginx-devel/Makefile.extmod
index 2b36bc91a37c..1849e847c1e5 100644
--- a/www/freenginx-devel/Makefile.extmod
+++ b/www/freenginx-devel/Makefile.extmod
@@ -249,7 +249,7 @@ NAXSI_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-naxsi-libinjection__sqli_c \
${PATCHDIR}/extra-patch-naxsi_config
NAXSI_VARS= DSO_EXTMODS+=naxsi NAXSI_SUBDIR=/naxsi_src
-NJS_GH_TUPLE= nginx:njs:0.9.9:njs
+NJS_GH_TUPLE= nginx:njs:1.0.0:njs
NJS_CFLAGS= -I ${LOCALBASE}/include/quickjs
NJS_CONFIGURE_ARGS= --cc-opt="${CFLAGS}" --ld-opt="${LDFLAGS}" --with-quickjs
NJS_IMPLIES= HTTP STREAM
diff --git a/www/freenginx-devel/distinfo b/www/freenginx-devel/distinfo
index a9955594b5c5..d73b64f9915f 100644
--- a/www/freenginx-devel/distinfo
+++ b/www/freenginx-devel/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1781452279
+TIMESTAMP = 1782302681
SHA256 (freenginx-1.31.2.tar.gz) = acf12de40dfec016f3130720f15b642f7df0eea0857e579129854d830595a1ea
SIZE (freenginx-1.31.2.tar.gz) = 1253159
SHA256 (nginx_mogilefs_module-1.0.4.tar.gz) = 7ac230d30907f013dff8d435a118619ea6168aa3714dba62c6962d350c6295ae
@@ -115,8 +115,8 @@ SHA256 (wargio-naxsi-1.7_GH0.tar.gz) = adee817da71913f64a9fb0fca142d9520bb0e5014
SIZE (wargio-naxsi-1.7_GH0.tar.gz) = 1132392
SHA256 (libinjection-libinjection-b9fcaaf_GH0.tar.gz) = 7812e1316b61a7a7d3a65a57a07c6d5235ac40fe35e6edda983f31a44661a38e
SIZE (libinjection-libinjection-b9fcaaf_GH0.tar.gz) = 2218207
-SHA256 (nginx-njs-0.9.9_GH0.tar.gz) = a07f4cf0a2076bbabde23cab48aea68641ebf5d54ea69b415ce70a8da4153843
-SIZE (nginx-njs-0.9.9_GH0.tar.gz) = 994273
+SHA256 (nginx-njs-1.0.0_GH0.tar.gz) = 56fe6560549cbcb7fb5740534b541bb153250d8772aa16ac18bc30eb0cc498dd
+SIZE (nginx-njs-1.0.0_GH0.tar.gz) = 1011616
SHA256 (osokin-nginx-otel-ed35139_GH0.tar.gz) = ae35317e2f01481b6511f4b4b6366233193cab19db2cc8fe0da4f2d3529efe68
SIZE (osokin-nginx-otel-ed35139_GH0.tar.gz) = 28117
SHA256 (konstruxi-ngx_postgres-8aa7359_GH0.tar.gz) = c69ad4495de7c7883ebc23e1e6c4cc83a4ac6a7fddd4d5c12e49d33b65f7c50b