mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
3492320fdd
Static analysis insists that sysconf(_SC_PAGE_SIZE) might return a negative integer (even though it never will). This was supposed to be handled by the existing check EXPECT_GE(page, static_cast<int>(N)). I assume that static analysis does not consider this sufficient because static_cast<int>(N) could be negative or zero if N exceeds INT_MAX (even though it never will). To resolve this (theoretical) problem, explicitly check that the return value is positive and then cast it to a size_t. PR-URL: https://github.com/nodejs/node/pull/44666 Reviewed-By: Darshan Sen <raisinten@gmail.com> |
||
---|---|---|
.. | ||
node_test_fixture.cc | ||
node_test_fixture.h | ||
test_aliased_buffer.cc | ||
test_base64.cc | ||
test_base_object_ptr.cc | ||
test_crypto_clienthello.cc | ||
test_environment.cc | ||
test_inspector_socket_server.cc | ||
test_inspector_socket.cc | ||
test_js_native_api_v8.cc | ||
test_json_utils.cc | ||
test_linked_binding.cc | ||
test_node_api.cc | ||
test_node_crypto.cc | ||
test_node_postmortem_metadata.cc | ||
test_per_process.cc | ||
test_platform.cc | ||
test_report.cc | ||
test_sockaddr.cc | ||
test_traced_value.cc | ||
test_url.cc | ||
test_util.cc |