mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Squashed 'src/univalue/' changes from a44caf65fe..6c19d050a9
6c19d050a9 Merge bitcoin-core/univalue-subtree#33: Add getInt<Integral>() helper 09e4a930fc Add getInt helper 10619e0d9a Merge bitcoin-core/univalue#32: refactor: include-what-you-use 431cdf5d27 refactor: use constexpr where appropriate 64fc881fa4 refactor: cleanup headers for iwyu 9c35bf38eb Merge bitcoin-core/univalue-subtree#30: doc: note that our API has diverged from upstream 09b65facb9 doc: note that our API has diverged from upstream git-subtree-dir: src/univalue git-subtree-split: 6c19d050a9bcb2be216121db0df57c930a9ee12e
This commit is contained in:
@@ -2,19 +2,22 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or https://opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <string.h>
|
||||
#include <vector>
|
||||
#include <stdio.h>
|
||||
#include "univalue.h"
|
||||
#include <univalue.h>
|
||||
#include "univalue_utffilter.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/*
|
||||
* According to stackexchange, the original json test suite wanted
|
||||
* to limit depth to 22. Widely-deployed PHP bails at depth 512,
|
||||
* so we will follow PHP's lead, which should be more than sufficient
|
||||
* (further stackexchange comments indicate depth > 32 rarely occurs).
|
||||
*/
|
||||
static const size_t MAX_JSON_DEPTH = 512;
|
||||
static constexpr size_t MAX_JSON_DEPTH = 512;
|
||||
|
||||
static bool json_isdigit(int ch)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user