diff --git a/deps/simdutf/simdutf.cpp b/deps/simdutf/simdutf.cpp index bc3da3f340a0ef..eb3c53ba069ede 100644 --- a/deps/simdutf/simdutf.cpp +++ b/deps/simdutf/simdutf.cpp @@ -1,4 +1,4 @@ -/* auto-generated on 2023-08-04 13:27:03 -0400. Do not edit! */ +/* auto-generated on 2023-08-11 13:30:54 -0400. Do not edit! */ // dofile: invoked with prepath=/Users/dlemire/CVS/github/simdutf/src, filename=simdutf.cpp /* begin file src/simdutf.cpp */ #include "simdutf.h" @@ -14116,6 +14116,7 @@ result generic_validate_utf8_with_errors(const uint8_t * input, size_t length) { reader.advance(); c.check_eof(); if (c.errors()) { + if (count != 0) { count--; } // Sometimes the error is only detected in the next chunk result res = scalar::utf8::rewind_and_validate_with_errors(reinterpret_cast(input), reinterpret_cast(input) + count, length - count); res.count += count; return res; @@ -21759,6 +21760,7 @@ result generic_validate_utf8_with_errors(const uint8_t * input, size_t length) { reader.advance(); c.check_eof(); if (c.errors()) { + if (count != 0) { count--; } // Sometimes the error is only detected in the next chunk result res = scalar::utf8::rewind_and_validate_with_errors(reinterpret_cast(input), reinterpret_cast(input) + count, length - count); res.count += count; return res; @@ -23536,6 +23538,7 @@ result generic_validate_utf8_with_errors(const uint8_t * input, size_t length) { reader.advance(); c.check_eof(); if (c.errors()) { + if (count != 0) { count--; } // Sometimes the error is only detected in the next chunk result res = scalar::utf8::rewind_and_validate_with_errors(reinterpret_cast(input), reinterpret_cast(input) + count, length - count); res.count += count; return res; @@ -27214,6 +27217,7 @@ result generic_validate_utf8_with_errors(const uint8_t * input, size_t length) { reader.advance(); c.check_eof(); if (c.errors()) { + if (count != 0) { count--; } // Sometimes the error is only detected in the next chunk result res = scalar::utf8::rewind_and_validate_with_errors(reinterpret_cast(input), reinterpret_cast(input) + count, length - count); res.count += count; return res; diff --git a/deps/simdutf/simdutf.h b/deps/simdutf/simdutf.h index 7a6d3f4d8e0f22..22a49f48c6bc95 100644 --- a/deps/simdutf/simdutf.h +++ b/deps/simdutf/simdutf.h @@ -1,4 +1,4 @@ -/* auto-generated on 2023-08-04 13:27:03 -0400. Do not edit! */ +/* auto-generated on 2023-08-11 13:30:54 -0400. Do not edit! */ // dofile: invoked with prepath=/Users/dlemire/CVS/github/simdutf/include, filename=simdutf.h /* begin file include/simdutf.h */ #ifndef SIMDUTF_H @@ -576,7 +576,7 @@ SIMDUTF_DISABLE_UNDESIRED_WARNINGS #define SIMDUTF_SIMDUTF_VERSION_H /** The version of simdutf being used (major.minor.revision) */ -#define SIMDUTF_VERSION "3.2.15" +#define SIMDUTF_VERSION "3.2.17" namespace simdutf { enum { @@ -591,7 +591,7 @@ enum { /** * The revision (major.minor.REVISION) of simdutf being used. */ - SIMDUTF_VERSION_REVISION = 15 + SIMDUTF_VERSION_REVISION = 17 }; } // namespace simdutf diff --git a/doc/contributing/maintaining/maintaining-dependencies.md b/doc/contributing/maintaining/maintaining-dependencies.md index e1d3dab4c9a590..a581fabd3ff70b 100644 --- a/doc/contributing/maintaining/maintaining-dependencies.md +++ b/doc/contributing/maintaining/maintaining-dependencies.md @@ -27,7 +27,7 @@ This a list of all the dependencies: * [npm 9.6.7][] * [openssl 3.0.8][] * [postject 1.0.0-alpha.6][] -* [simdutf 3.2.15][] +* [simdutf 3.2.17][] * [undici 5.22.1][] * [uvwasi 0.0.16][] * [V8 11.3.244.8][] @@ -286,7 +286,7 @@ See [maintaining-openssl][] for more informations. The [postject](https://github.com/nodejs/postject) dependency is used for the [Single Executable strategic initiative](https://github.com/nodejs/single-executable). -### simdutf 3.2.15 +### simdutf 3.2.17 The [simdutf](https://github.com/simdutf/simdutf) dependency is a C++ library for fast UTF-8 decoding and encoding. @@ -344,7 +344,7 @@ performance improvements not currently available in standard zlib. [npm 9.6.7]: #npm-967 [openssl 3.0.8]: #openssl-308 [postject 1.0.0-alpha.6]: #postject-100-alpha6 -[simdutf 3.2.15]: #simdutf-3215 +[simdutf 3.2.17]: #simdutf-3217 [undici 5.22.1]: #undici-5221 [update-openssl-action]: ../../../.github/workflows/update-openssl.yml [uvwasi 0.0.16]: #uvwasi-0016