Mikhail Khachayants
24b5e7a8b2
Fix out of bounds read with kParseValidateEncodingFlag
2025-02-05 21:28:08 +08:00
Mikhail Khachayants
d621dc9e9c
Fix parsing 0.184467440737095516159 with kParseFullPrecisionFlag
2024-12-18 19:30:59 +08:00
RedContritio
858451e5b7
Fix endif condition to match NOT MSVC and VALGRIND_FOUND
.
2024-10-07 20:17:31 +08:00
Dmitriy Tretyakov
815e6e7e7e
add test for sso optimized string
2024-09-24 17:14:47 +08:00
Eyizoha
7c73dd7de7
Fix bug when parsing NaN, Inf with fraction or exponent parts ( fixes #2299 )
...
This patch fixes the issue where parsing NaN or Inf values with
fractional or exponent parts would return incorrect results
(e.g., "NaN.2e2" would be parsed as 20).
Before this patch, the parser would continue to process the fractional
and exponent parts even after successfully parsing a valid NaN or Inf,
which could lead to parsing errors. This patch adds a check for such
cases to skips the parsing of the fractional and exponent parts after
completing the NaN and Inf parsing.
2024-08-16 20:24:45 +08:00
Richard W.M. Jones
68afb49287
tests: Only run valgrind tests if valgrind was found
...
valgrind is not present on all architectures (eg riscv64) and might
not be installed even on supported architectures.
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2024-03-07 14:41:57 +08:00
Esther Wang
6089180ecb
Use correct format for printf
...
Change the printf format from '%d' to '%u', matching the type of the
arguments.
2023-12-06 19:08:30 +08:00
Aikawa Yataro
f9d53419e9
Add Hasher tests for objects where key eq value
2023-09-28 16:06:09 +01:00
Jeroen Doggen
b4a6da3e63
unit tests for 'Stringify NaN, Inf as null'
2023-09-21 18:42:43 +01:00
Albert Hung
5e17dbed34
Eliminate old style cast warning
...
Use static_cast to replace old style cast.
Change-Id: I30e659c8f2aadc02750555b0f041bfd2e1c8004a
2023-08-17 16:55:04 +08:00
Albert Hung
956063dbc1
Fixing printf format warning
...
In the BigNestedObject test case of valuetest.c, a dynamically
defined format is used that depends on the signedness of the
'SizeType' type. This allows the 'sprintf' function to use the correct
format for 'SizeType'.
Change-Id: I97222b699bda6c0ccfc9abbc5977c79e16605f2c
2023-08-15 17:03:49 +08:00
Albert Hung
0e88d5e404
Eliminate missing prototypes warning
2023-05-09 21:28:14 +08:00
Steve Hanson
1ce516e50b
Suppress uritest
2023-01-05 20:34:07 +08:00
Steve Hanson
778dc8b03e
fix #1
2023-01-05 20:34:07 +08:00
Steve Hanson
55eca66f39
code & tests for openapi 2.0 & 3.0 suppprt
2022-12-19 05:30:00 +08:00
Steve Hanson
7cad78e236
tidy up after merge from master
2022-12-01 00:42:44 +08:00
Steve Hanson
2d87923e91
remove unnecessary templating from schema tests
2022-12-01 00:42:44 +08:00
Steve Hanson
ecb8d9e3a0
add dump of unexpected schema errors in schematest.cpp
2022-12-01 00:42:44 +08:00
Steve Hanson
89f6717f0b
corrections
2022-12-01 00:42:44 +08:00
Steve Hanson
338d8defdb
initial
2022-12-01 00:42:44 +08:00
Tim Gates
27c3a8dc0e
docs: fix simple typo, perecent -> percent
...
There is a small typo in test/unittest/pointertest.cpp.
Should read `percent` rather than `perecent`.
Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-07-20 21:53:57 +08:00
Kent Ross
232389d4f1
delete unused variable
2022-05-24 10:03:13 +08:00
Tom Briden
2b2c804500
encdedstreamtest: fix use-after-free compile error with gcc-12
2022-05-16 10:23:11 +08:00
Tom Briden
1f59c69cd1
valuetest: fix potential write of terminating nul past the end of the destination
...
Fixes 2 compile errors with gcc-12, eg:
tesunittest/valuetest.cpp:1516:30: error: 'sprintf' may write a terminating nul past the end of the destination [-Werror=format-overflow=]
test/unittest/valuetest.cpp:1516:20: note: 'sprintf' output between 2 and 11 bytes into a destination of size 10
2022-05-16 10:23:11 +08:00
ardb-uk
4bbaf28ffc
Add files via upload
2021-10-12 16:23:44 +01:00
Milo Yip
00dbcf2c6e
Merge pull request #1926 from Kyrega/master
...
Fix RawNumber for characters with sizeof(Ch) > sizeof(char)
2021-08-13 12:25:41 +08:00
Kyrega
22ee8b07c8
Correct WIStreamWrapper
2021-08-10 17:39:04 +02:00
Kyrega
e0512e0944
Using unsigned for WIStreamWrapper
2021-08-10 17:36:31 +02:00
Kyrega
b952a592a4
Fix RawNumber for longer char types
2021-08-10 17:35:07 +02:00
jack_perisich
bb06211088
Fix small errors in dtoa output for certain doubles
2021-07-27 19:50:51 -04:00
Milo Yip
48fbd8cd20
Merge pull request #1848 from smhdfdl/id-and-ref
...
Fix issue 1843 - support Id keyword
2021-07-09 10:57:40 +08:00
Steve Hanson
8d16abd980
Uri Parse improvements
2021-06-30 17:09:52 +01:00
Steve Hanson
a21cf9f7b8
equiv fix for issue 1899
2021-06-14 11:35:00 +01:00
Milo Yip
8c29a7b493
Fix Pointer::Append() crash for custom allocator on Windows
...
Fix #1899
2021-06-11 11:49:14 +08:00
Steve Hanson
3df804c128
fix coverage, unit test allocators and equality
2021-06-09 10:31:09 +01:00
Steve Hanson
6d253c160d
remove compiler warning
2021-06-08 15:31:25 +01:00
Steve Hanson
28bcbd3f35
make std::string optional
2021-06-08 10:53:10 +01:00
Steve Hanson
494447b731
remove copyright & debug statements
2021-05-21 15:55:11 +01:00
Steve Hanson
6e58a53f44
fix coverage
2021-05-20 17:44:34 +01:00
Steve Hanson
3987d82f41
Merge branch 'master' of https://github.com/Tencent/rapidjson into id-and-ref
2021-05-20 12:20:12 +01:00
Hendrik Muhs
3cdfde14d6
replace auto with concrete type
2021-04-19 13:15:11 -07:00
Hendrik Muhs
d179facf90
don't let the GetObject macro rewrite the GetObject method, add a GetObj alias
2021-04-19 12:29:11 -07:00
Hendrik Muhs
3168d7c343
add a test that provokes a compile time error on windows
2021-04-18 18:06:35 +02:00
Milo Yip
7d801bbe45
Merge pull request #1503 from ylavic/sub_value_assignment
...
Fix (Sub-)Value assignment
2021-04-07 17:52:51 +08:00
ylavic
5c764d9a81
Tests for Allocators copy by rvalue reference.
2021-04-04 12:51:47 +02:00
ylavic
117276c413
Fix would-crash tests if the default allocator used were kNeedFree.
...
The allocator cannot be destroyed before the Document, otherwise the
Value destructor double frees.
2021-04-02 21:09:20 +02:00
ylavic
6bed9b266f
Don't define StdAllocator<void> from C++17.
2021-03-30 13:47:04 +02:00
ylavic
02f42604bd
Make StdAllocator C++17-20 compatible.
2021-03-28 23:48:14 +02:00
ylavic
2e6f761458
Tests for StdAllocator.
2021-03-16 01:03:04 +01:00
ylavic
50cb424c34
Test assignment from inner Value.
2021-03-15 23:57:42 +01:00