mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
deps: update to uvwasi 0.0.13
Notable changes: - A bug has been fixed in `uvwasi_fd_readdir()` that caused the number of entries to be processed incorrectly. PR-URL: https://github.com/nodejs/node/pull/44524 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
1 parent
0917626b96
commit
f17eac9727
2 files changed
+8
-2
No files matched your search
Vendored
+1
-1
@@ -10,7 +10,7 @@ extern "C" {
|
||||
|
||||
#define UVWASI_VERSION_MAJOR 0
|
||||
#define UVWASI_VERSION_MINOR 0
|
||||
#define UVWASI_VERSION_PATCH 12
|
||||
#define UVWASI_VERSION_PATCH 13
|
||||
#define UVWASI_VERSION_HEX ((UVWASI_VERSION_MAJOR << 16) | \
|
||||
(UVWASI_VERSION_MINOR << 8) | \
|
||||
(UVWASI_VERSION_PATCH))
|
||||
|
||||
Vendored
+7
-1
@@ -1384,8 +1384,14 @@ uvwasi_errno_t uvwasi_fd_readdir(uvwasi_t* uvwasi,
|
||||
}
|
||||
|
||||
/* Write dirent to the buffer if it will fit. */
|
||||
if (UVWASI_SERDES_SIZE_dirent_t + *bufused > buf_len)
|
||||
if (UVWASI_SERDES_SIZE_dirent_t + *bufused > buf_len) {
|
||||
/* If there are more entries to be written to the buffer we set
|
||||
* bufused, which is the return value, to the length of the buffer
|
||||
* which indicates that there are more entries to be read.
|
||||
*/
|
||||
*bufused = buf_len;
|
||||
break;
|
||||
}
|
||||
|
||||
uvwasi_serdes_write_dirent_t(buf, *bufused, &dirent);
|
||||
*bufused += UVWASI_SERDES_SIZE_dirent_t;
|
||||
|
||||
Reference in new issue
Block a user