forked from NetBSD/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*/*: update NGINX JavaScript 0.8.4 -> 0.8.5
Bump PKGREVISIONs for www/nginx, www/nginx-devel, www/unit. <ChangeLog> nginx modules: *) Change: r.variables.var, r.requestText, r.responseText, s.variables.var, and the "data" argument of the s.on() callback with "upload" or "download" event types will now convert bytes invalid in UTF-8 encoding into the replacement character. When working with binary data, use r.rawVariables.var, r.requestBuffer, r.responseBuffer, s.rawVariables.var, and the "upstream" or "downstream" event type for s.on() instead. *) Feature: added timeout argument for shared dictionary methods add(), set() and incr(). *) Bugfix: fixed checking for duplicate js_set variables. *) Bugfix: fixed request Host header when the port is non-standard. *) Bugfix: fixed handling of a zero-length request body in ngx.fetch() and r.subrequest(). *) Bugfix: fixed heap-buffer-overflow in Headers.get(). *) Bugfix: fixed r.subrequest() error handling. Core: *) Feature: added zlib module for QuickJS engine. *) Bugfix: fixed zlib.inflate(). *) Bugfix: fixed String.prototype.replaceAll() with zero-length argument. *) Bugfix: fixed retval handling after an exception in Array.prototype.toSpliced(), Array.prototype.toReversed(), Array.prototype.toSorted(). *) Bugfix: fixed RegExp.prototype[@@replace]() with replacements containing "$'", "$\`" and strings with Unicode characters. *) Bugfix: fixed a one-byte overread in decodeURI() and decodeURIComponent(). *) Bugfix: fixed tracking of argument scope. *) Bugfix: fixed integer overflow in Date.parse(). </ChangeLog>
- Loading branch information
osa
committed
Jun 27, 2024
1 parent
d1fe813
commit f468d58
Showing
15 changed files
with
120 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
$NetBSD: distinfo,v 1.6 2024/06/06 13:17:25 jperkin Exp $ | ||
$NetBSD: distinfo,v 1.7 2024/06/27 16:03:24 osa Exp $ | ||
|
||
BLAKE2s (njs-0.8.4.tar.gz) = 41f4ace141fd0440fc77baccb57c027cad3fa6dacbb379edf515161639ba2401 | ||
SHA512 (njs-0.8.4.tar.gz) = 450f6866141f6f370767149c8749e84c4373f401d6d2237ca85365a851ebe7bdbd8a3c25e85a55747673e8bef2238a979dd237d5fc5c641b2f3f2cf7f26dffc8 | ||
Size (njs-0.8.4.tar.gz) = 743910 bytes | ||
BLAKE2s (njs-0.8.5.tar.gz) = d7087ba9174f8acc5fc8ac21a7eca77549d170adc6b7ff711ed9e0610edaadbe | ||
SHA512 (njs-0.8.5.tar.gz) = 09fb37d609f5cb97b0af5eb097a017233af2eacb2d38071346b49f5e03b5e37280eebb360fc824acba0c600c44d234e2d11fa55f4bc913319491d7789a94171c | ||
Size (njs-0.8.5.tar.gz) = 844437 bytes | ||
SHA1 (patch-src_njs.pc.in) = 163acd71272008f70e95e759eb3c1539ccaabb06 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
$NetBSD: distinfo,v 1.12 2024/05/07 13:43:55 osa Exp $ | ||
$NetBSD: distinfo,v 1.13 2024/06/27 16:03:24 osa Exp $ | ||
|
||
BLAKE2s (njs-0.8.4.tar.gz) = 41f4ace141fd0440fc77baccb57c027cad3fa6dacbb379edf515161639ba2401 | ||
SHA512 (njs-0.8.4.tar.gz) = 450f6866141f6f370767149c8749e84c4373f401d6d2237ca85365a851ebe7bdbd8a3c25e85a55747673e8bef2238a979dd237d5fc5c641b2f3f2cf7f26dffc8 | ||
Size (njs-0.8.4.tar.gz) = 743910 bytes | ||
BLAKE2s (njs-0.8.5.tar.gz) = d7087ba9174f8acc5fc8ac21a7eca77549d170adc6b7ff711ed9e0610edaadbe | ||
SHA512 (njs-0.8.5.tar.gz) = 09fb37d609f5cb97b0af5eb097a017233af2eacb2d38071346b49f5e03b5e37280eebb360fc824acba0c600c44d234e2d11fa55f4bc913319491d7789a94171c | ||
Size (njs-0.8.5.tar.gz) = 844437 bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
$NetBSD: distinfo,v 1.20 2024/05/07 13:51:29 osa Exp $ | ||
$NetBSD: distinfo,v 1.21 2024/06/27 16:03:25 osa Exp $ | ||
|
||
BLAKE2s (unit-1.32.1.tar.gz) = bfc777d7485f893699f6e0905c5d330914ff939fed9b17765e247310354de22d | ||
SHA512 (unit-1.32.1.tar.gz) = 159b36f7afb8857188c9b64ee192e18d6990da3733caafcfb684b98e3f5182a7589ed2439f32af0cd3c763a3fa73f061f5a73ef01894182b1c12a4cd324c528a | ||
Size (unit-1.32.1.tar.gz) = 937669 bytes | ||
SHA1 (patch-auto_events) = 0556b5d3db6b88d23d686d9da1f3274187079973 | ||
SHA1 (patch-auto_os_conf) = 6d1cd7aef662a60d4288014eb6fadbe8c1268e55 | ||
SHA1 (patch-auto_shmem) = cb37c368c19205c2cc1750f4a847af23be8bfa25 | ||
SHA1 (patch-src_nxt__http__js.c) = 8303ced032074c8902fad49ceca4ee97ed1dcdf5 | ||
SHA1 (patch-src_nxt__js.c) = 659960992fa99b2b5d62ed57715a78bc4be90446 | ||
SHA1 (patch-src_nxt__kqueue__engine.c) = c341425f4b21d4cff6e003958f88a04b53dc4ee1 | ||
SHA1 (patch-src_nxt__php__sapi.c) = 2d5e557ff2066bec78f5bfbca6a64688f60da01b | ||
SHA1 (patch-src_nxt__script.c) = 777e92b2b9de3c153d0681f87022ae510d386a4b | ||
SHA1 (patch-src_nxt__script.c) = a7c0851a2686b87b180b77a632a06724d79c7110 | ||
SHA1 (patch-src_nxt__unix.h) = c0db5bc4d9c45a3ead48627567284d8b3041b0a0 | ||
SHA1 (patch-src_nxt__websocket__header.h) = 1b50405b187cc8a662372a1c20ab7737278135ae |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
$NetBSD: patch-src_nxt__http__js.c,v 1.1 2024/06/27 16:03:25 osa Exp $ | ||
|
||
Fix build with the recent version of NGINX JavaScript | ||
|
||
--- src/nxt_http_js.c.orig 2024-06-26 22:04:35 UTC | ||
+++ src/nxt_http_js.c | ||
@@ -120,7 +120,7 @@ nxt_http_js_ext_uri(njs_vm_t *vm, njs_object_prop_t *p | ||
return NJS_DECLINED; | ||
} | ||
|
||
- return njs_vm_value_string_set(vm, retval, r->path->start, r->path->length); | ||
+ return njs_vm_value_string_create(vm, retval, r->path->start, r->path->length); | ||
} | ||
|
||
|
||
@@ -136,7 +136,7 @@ nxt_http_js_ext_host(njs_vm_t *vm, njs_object_prop_t * | ||
return NJS_DECLINED; | ||
} | ||
|
||
- return njs_vm_value_string_set(vm, retval, r->host.start, r->host.length); | ||
+ return njs_vm_value_string_create(vm, retval, r->host.start, r->host.length); | ||
} | ||
|
||
|
||
@@ -152,7 +152,7 @@ nxt_http_js_ext_remote_addr(njs_vm_t *vm, njs_object_p | ||
return NJS_DECLINED; | ||
} | ||
|
||
- return njs_vm_value_string_set(vm, retval, | ||
+ return njs_vm_value_string_create(vm, retval, | ||
nxt_sockaddr_address(r->remote), | ||
r->remote->address_length); | ||
} | ||
@@ -214,7 +214,7 @@ nxt_http_js_ext_get_header(njs_vm_t *vm, njs_object_pr | ||
if (key.length == f->name_length | ||
&& memcmp(key.start, f->name, f->name_length) == 0) | ||
{ | ||
- return njs_vm_value_string_set(vm, retval, f->value, | ||
+ return njs_vm_value_string_create(vm, retval, f->value, | ||
f->value_length); | ||
} | ||
|
||
@@ -250,7 +250,7 @@ nxt_http_js_ext_keys_header(njs_vm_t *vm, njs_value_t | ||
return NJS_ERROR; | ||
} | ||
|
||
- rc = njs_vm_value_string_set(vm, value, f->name, f->name_length); | ||
+ rc = njs_vm_value_string_create(vm, value, f->name, f->name_length); | ||
if (rc != NJS_OK) { | ||
return NJS_ERROR; | ||
} | ||
@@ -296,7 +296,7 @@ nxt_http_js_ext_get_cookie(njs_vm_t *vm, njs_object_pr | ||
if (key.length == nv->name_length | ||
&& memcmp(key.start, nv->name, nv->name_length) == 0) | ||
{ | ||
- return njs_vm_value_string_set(vm, retval, nv->value, | ||
+ return njs_vm_value_string_create(vm, retval, nv->value, | ||
nv->value_length); | ||
} | ||
} | ||
@@ -340,7 +340,7 @@ nxt_http_js_ext_keys_cookie(njs_vm_t *vm, njs_value_t | ||
return NJS_ERROR; | ||
} | ||
|
||
- rc = njs_vm_value_string_set(vm, value, nv->name, nv->name_length); | ||
+ rc = njs_vm_value_string_create(vm, value, nv->name, nv->name_length); | ||
if (rc != NJS_OK) { | ||
return NJS_ERROR; | ||
} | ||
@@ -380,7 +380,7 @@ nxt_http_js_ext_get_var(njs_vm_t *vm, njs_object_prop_ | ||
vv = nxt_var_get(&r->task, rtcf->tstr_state, &r->tstr_cache.var, &name, r); | ||
|
||
if (vv != NULL) { | ||
- return njs_vm_value_string_set(vm, retval, vv->start, vv->length); | ||
+ return njs_vm_value_string_create(vm, retval, vv->start, vv->length); | ||
} | ||
|
||
njs_value_undefined_set(retval); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters