Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eac7438c78 |
No files matched your search
@@ -50,7 +50,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: "Run analysis"
|
||||
uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
|
||||
uses: ossf/scorecard-action@23f22cd43608bae7a1f1fa2603d7314dee9538a5 # v2.6.0
|
||||
with:
|
||||
results_file: results.sarif
|
||||
results_format: sarif
|
||||
|
||||
@@ -1322,9 +1322,8 @@ class json_sax_dom_parser : public json_sax_dom_error_state
|
||||
}
|
||||
|
||||
/// the number of members an object collects on the stack before it
|
||||
/// switches to storing them directly; this is the size from which the
|
||||
/// stored object looks up its keys in a hash table (key_index_threshold)
|
||||
static constexpr std::size_t object_buffer_limit = 64;
|
||||
/// switches to storing them directly
|
||||
static constexpr std::size_t object_buffer_limit = 32;
|
||||
|
||||
void reserve_members()
|
||||
{
|
||||
|
||||
Generated
+2
-3
@@ -17540,9 +17540,8 @@ class json_sax_dom_parser : public json_sax_dom_error_state
|
||||
}
|
||||
|
||||
/// the number of members an object collects on the stack before it
|
||||
/// switches to storing them directly; this is the size from which the
|
||||
/// stored object looks up its keys in a hash table (key_index_threshold)
|
||||
static constexpr std::size_t object_buffer_limit = 64;
|
||||
/// switches to storing them directly
|
||||
static constexpr std::size_t object_buffer_limit = 32;
|
||||
|
||||
void reserve_members()
|
||||
{
|
||||
|
||||
@@ -247,8 +247,8 @@ TEST_CASE("regression test for issue #5673 - ordered_json::emplace with a non-rv
|
||||
namespace
|
||||
{
|
||||
// the sizes around which the DOM parser changes how it stores the elements of
|
||||
// an array (16) and the members of an object in a vector (64, which is also
|
||||
// where the key index starts)
|
||||
// an array (16) and the members of an object in a vector (32, and 64 for the
|
||||
// key index)
|
||||
const std::array<std::size_t, 17> container_sizes = {{0, 1, 2, 3, 15, 16, 17, 18, 31, 32, 33, 34, 63, 64, 65, 66, 200}};
|
||||
|
||||
template<typename Json>
|
||||
|
||||
Reference in new issue
Block a user