0fe202af03
CI: don't build fuzzers with Clang 11
...
Clang 11 fails on GitHub Actions with the following error:
ERROR: UndefinedBehaviorSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)
Sanitizer CHECK failed: /build/llvm-toolchain-11-mnvtwk/llvm-toolchain-11-11.1.0/compiler-rt/lib/sanitizer_common/sanitizer_common.cpp:54 ((0 && "unable to mmap")) != (0) (0, 0)
2024-05-16 17:47:07 +02:00
d486157a9e
CMake: fix detection of GCC 4.8
2024-05-16 17:47:07 +02:00
98fca74f66
Fix undefined reference to VariantPool::usage()
2024-05-16 17:47:07 +02:00
60fb268d9a
Fix UBSAN error "member call does not point to an object of type"
...
runtime error: member call on address XXX which does not point to an object of type 'Allocator'
XXX: note: object is of type 'SpyingAllocator'
This is due to the fact that some of the compilation units have different library settings, so a different namespace, and therefore a different `Allocator` class.
2024-05-16 17:47:07 +02:00
4b779a7c1d
Fix wrong build flags when COVERAGE
is not defined
2024-05-16 17:47:07 +02:00
aeb30ef307
Support ElementProxy
and MemberProxy
in JsonDocument
's constructor
2024-05-15 13:37:33 +02:00
1c5e5db071
Test JsonDocument
constructor with a JsonVariantConst
argument
...
See #2091
2024-05-15 09:30:22 +02:00
68a13117dc
Allow using a JsonVariant
as a key or index
...
Closes #2080
2024-05-14 21:06:02 +02:00
071f718473
MsgPack: test failing string allocation
2024-05-06 11:23:20 +02:00
00949f8276
Remove redundant test
2024-05-06 11:16:55 +02:00
2c670e0148
Implement MsgPackBinary using raw strings and converters
2024-05-06 11:10:02 +02:00
5f5f927693
Add tests of as<MsgPackBinary>()
2024-05-01 19:26:19 +02:00
4d074840da
Optimize deserializeMsgPack()
2024-05-01 18:00:59 +02:00
4d5c17b5f6
Remove unused #include
statements
2024-04-29 18:30:29 +02:00
18a9a5b590
Add MsgPack bin8/bin16/bin32 support
...
Closes #2078
Closes #922
2024-04-29 16:01:10 +02:00
2cfefe22ac
Add ARDUINOJSON_STRING_LENGTH_SIZE
to the namespace name
2024-04-18 14:19:43 +02:00
0d43e51d48
Fix typo in "endianness"
...
Closes #2071
2024-03-26 13:43:07 +01:00
af8c615266
Rename tests/JsonObject/copy.cpp
to set.cpp
2024-03-16 14:02:56 +01:00
f17fc055d3
Make JSON_STRING_SIZE(N)
return N+1
to fix third-party code
...
ThingsBoard uses this macro to compute size of char arrays ಠ_ಠ
https://github.com/thingsboard/thingsboard-client-sdk/blob/v0.12.2/src/Helper.h#L38
Closes #2054
2024-02-18 20:00:25 +01:00
72642e3090
Fix compatibility with GCC 4.8
...
Closes #2045
2024-02-01 21:37:45 +01:00
1b143d383b
Fix assertion poolIndex < count_
after JsonDocument::clear()
...
Fixes #2034
2024-01-16 10:10:43 +01:00
5dfa25d3dc
Include the number of GitHub stars in the library description.
2024-01-10 18:11:43 +01:00
a7bfc2212c
Fix volatile bool
serialized as 1
or 0
...
Ported from 5d1d2721d1
2024-01-10 14:03:12 +01:00
315cc722e9
Add more tests for JsonVariantConst
2024-01-08 19:47:40 +01:00
ca0dda7ac1
Add more tests for JsonArrayConst
2024-01-08 19:47:40 +01:00
08cac13c43
Add more tests for JsonObjectConst
2024-01-08 19:47:36 +01:00
cc42373367
Fix "no matching function" with JsonObjectConst::operator[]
...
Fixes #2019
2024-01-03 16:30:44 +01:00
2d47b3931d
Remove legacy Arduino package from release assets
2024-01-03 09:16:19 +01:00
0e8a236583
Update copyright year
2024-01-03 08:47:06 +01:00
f7dcea562f
CI: always use libc++ with clang
2023-11-06 13:24:32 +01:00
6fe4b9c01d
Detect string length overflows
2023-10-09 14:15:55 +02:00
92c9faf69f
Fix 'std::string_view' has not been declared (issue #1967 )
...
Ported from 49e2a8d421
2023-09-13 18:32:38 +02:00
b20653ee1a
Fix 'std::string' has not been declared (issue #1967 )
...
Ported from 259855a87b
2023-09-13 18:31:22 +02:00
750d53f8c7
Update URLs to point to
https://arduinojson.org/v7/
2023-08-19 16:08:12 +02:00
7bd2ea1072
Remove mentions of the zero-copy mode
2023-08-19 16:05:42 +02:00
fc1f06822c
CI: add GCC 12
2023-08-10 18:25:53 +02:00
c98ba999af
Add more tests of JsonDocument
constructor
2023-08-10 14:30:50 +02:00
1d583f68da
Add stubs for JSON_ARRAY_SIZE
, JSON_OBJECT_SIZE
, and JSON_STRING_SIZE
2023-08-10 09:54:47 +02:00
78399c2d78
Add a stub for createNestedObject()
2023-08-10 09:54:46 +02:00
8cc645c40c
Add a stub for createNestedArray()
2023-08-10 09:54:45 +02:00
11373af344
Add a stub for add()
2023-08-10 09:54:44 +02:00
53d54ba9d7
Add a stub for shallowCopy()
2023-08-10 09:54:44 +02:00
2f31c932d7
Add a stub for memoryUsage()
2023-08-10 09:54:43 +02:00
93cb3d2fdc
Add a stub for BasicJsonDocument
2023-08-10 09:54:42 +02:00
be5d5300a2
Add a stub for DynamicJsonDocument
2023-08-10 09:54:40 +02:00
ea5b019552
Add a stub for StaticJsonDocument
2023-08-10 09:54:28 +02:00
bc6707b10c
Rename tests/JsonObject/invalid.cpp
to unbound.cpp
2023-08-09 12:08:21 +02:00
7f459adc4b
Remove createNestedArray()
and createNestedObject()
2023-08-09 12:08:21 +02:00
f422b7b37d
Replace add()
with add<T>()
(add(T)
is still supported)
2023-08-09 10:57:52 +02:00
38941d5807
Tests: use sections for filters tests
2023-08-01 19:14:11 +02:00