Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
072ee2af83 |
No files matched your search
@@ -38,7 +38,7 @@ jobs:
|
|||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4
|
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
||||||
with:
|
with:
|
||||||
languages: c-cpp
|
languages: c-cpp
|
||||||
# Analyze the sources without compiling them. Autobuild compiled the
|
# Analyze the sources without compiling them. Autobuild compiled the
|
||||||
@@ -47,4 +47,4 @@ jobs:
|
|||||||
build-mode: none
|
build-mode: none
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4
|
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
||||||
@@ -48,6 +48,6 @@ jobs:
|
|||||||
output: 'flawfinder_results.sarif'
|
output: 'flawfinder_results.sarif'
|
||||||
|
|
||||||
- name: Upload analysis results to GitHub Security tab
|
- name: Upload analysis results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4
|
uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
||||||
with:
|
with:
|
||||||
sarif_file: ${{github.workspace}}/flawfinder_results.sarif
|
sarif_file: ${{github.workspace}}/flawfinder_results.sarif
|
||||||
@@ -80,6 +80,6 @@ jobs:
|
|||||||
|
|
||||||
# Upload the results to GitHub's code scanning dashboard.
|
# Upload the results to GitHub's code scanning dashboard.
|
||||||
- name: "Upload to code-scanning"
|
- name: "Upload to code-scanning"
|
||||||
uses: github/codeql-action/upload-sarif@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4
|
uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
|
|
||||||
# Upload SARIF file generated in previous step
|
# Upload SARIF file generated in previous step
|
||||||
- name: Upload SARIF file
|
- name: Upload SARIF file
|
||||||
uses: github/codeql-action/upload-sarif@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4
|
uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
||||||
with:
|
with:
|
||||||
sarif_file: semgrep.sarif
|
sarif_file: semgrep.sarif
|
||||||
if: always()
|
if: always()
|
||||||
@@ -1322,8 +1322,9 @@ class json_sax_dom_parser : public json_sax_dom_error_state
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// the number of members an object collects on the stack before it
|
/// the number of members an object collects on the stack before it
|
||||||
/// switches to storing them directly
|
/// switches to storing them directly; this is the size from which the
|
||||||
static constexpr std::size_t object_buffer_limit = 32;
|
/// stored object looks up its keys in a hash table (key_index_threshold)
|
||||||
|
static constexpr std::size_t object_buffer_limit = 64;
|
||||||
|
|
||||||
void reserve_members()
|
void reserve_members()
|
||||||
{
|
{
|
||||||
|
|||||||
Generated
+3
-2
@@ -17540,8 +17540,9 @@ class json_sax_dom_parser : public json_sax_dom_error_state
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// the number of members an object collects on the stack before it
|
/// the number of members an object collects on the stack before it
|
||||||
/// switches to storing them directly
|
/// switches to storing them directly; this is the size from which the
|
||||||
static constexpr std::size_t object_buffer_limit = 32;
|
/// stored object looks up its keys in a hash table (key_index_threshold)
|
||||||
|
static constexpr std::size_t object_buffer_limit = 64;
|
||||||
|
|
||||||
void reserve_members()
|
void reserve_members()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -247,8 +247,8 @@ TEST_CASE("regression test for issue #5673 - ordered_json::emplace with a non-rv
|
|||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
// the sizes around which the DOM parser changes how it stores the elements of
|
// 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 (32, and 64 for the
|
// an array (16) and the members of an object in a vector (64, which is also
|
||||||
// key index)
|
// where the key index starts)
|
||||||
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}};
|
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>
|
template<typename Json>
|
||||||
|
|||||||
Reference in new issue
Block a user