Takatoshi Kondo
6954e01338
Fixed #794 .
...
Buffer is expanded not only Z_OK, but also Z_BUF_ERROR case.
2019-07-12 21:55:50 +09:00
Takatoshi Kondo
7d994630d2
Replaced integer overflow with efficient way.
...
Same fix as #776 on C.
2019-07-07 18:13:31 +09:00
Wojciech Kaluza
41b2af8884
Fix self-including header
2019-05-22 20:38:36 +01:00
Takatoshi Kondo
d3fecce359
Added timespec support for C++11 or later.
2019-05-09 14:46:45 +09:00
Takatoshi Kondo
6a08446b3d
Removed noexcept overload.
2019-05-01 18:00:07 +09:00
Takatoshi Kondo
c93a42b5f4
Separate C++03 and 11.
2019-05-01 17:20:39 +09:00
Takatoshi Kondo
8febbfd9f5
Fixed noexcept.
2019-05-01 16:42:15 +09:00
Takatoshi Kondo
33a8d8c30f
Added noexcept overload for C++11 and later.
2019-05-01 16:08:17 +09:00
Takatoshi Kondo
ef5bcadd95
Fixed #777 .
...
Removed SFINAE. Use size type extractor.
2019-05-01 14:10:34 +09:00
Takatoshi Kondo
17267ed475
Added -Wconversion support for C++.
2019-03-25 19:48:39 +09:00
Takatoshi Kondo
f72372314e
Fixed #763 .
...
Fixed aligned_zone_size_visitor size passing.
Replaced by value with by reference.
2019-02-12 12:53:07 +09:00
Takatoshi Kondo
709d6f4fdd
Fixed #754 .
...
Fixed `msgpack::object` packing visitor and equal comparison visitor.
NOTE:
In the function `visit_ext(const char* v, uint32_t size)`, v contains
type and size means buffer `v` size. See #175 .
2019-01-05 09:41:58 +09:00
Takatoshi Kondo
4f9ec65713
Fixed #741 .
...
Fixed msgpack::type::tuple base class conversion.
Fixed C++03 msgpack::type::make_tuple.
2018-10-16 22:42:50 +09:00
Takatoshi Kondo
1155babda8
Added wstring adaptor.
2018-09-12 16:17:14 +09:00
tbeu
d72765870a
Move overflow check up
2018-09-06 15:09:52 +02:00
tbeu
c056026dad
Fix memory leaks
2018-09-04 22:24:40 +02:00
jwang
60930f4b12
adding unit tests and fixing same overflow issue in hpp files
2018-09-03 22:23:53 +02:00
Takatoshi Kondo
53d2ea9ad3
Fixed #724 .
...
Fixed type mismatch in msgpack_timestamp.
Added 64bit singed postfix.
2018-08-27 22:40:04 +09:00
Takatoshi Kondo
8a788f3a48
Added C++17 std::byte support.
...
`std::byte` is mapped to
https://github.com/msgpack/msgpack/blob/master/spec.md#int-format-family .
`std::vector<std::byte>` and `std::byte[]` are mapped to https://github.com/msgpack/msgpack/blob/master/spec.md#bin-format-family .
2018-08-12 16:23:39 +09:00
Takatoshi Kondo
84ba0c7b4b
Merge pull request #704 from owent-contrib/master
...
Fix MSGPACK_DEPRECATED for MSVC 1914 with /Zc:__cplusplus
2018-08-09 17:48:26 +09:00
Takatoshi Kondo
3aae588a6a
Merge pull request #706 from redboltz/fix_638_3
...
Implemented #638 .
2018-07-22 18:23:35 +09:00
Takatoshi Kondo
cb2dcb19b9
Implemented #638 .
...
Added Time Stamp support.
2018-07-22 16:25:23 +09:00
Takatoshi Kondo
93b944eec4
Fixed #697 .
...
Removed out of range array dereference.
2018-07-21 20:42:40 +09:00
owent
7340f1e9c8
Fix MSGPACK_DEPRECATED for MSVC 1914 with /Zc:__cplusplus, @see https://docs.microsoft.com/cpp/build/reference/zc-cplusplus
2018-07-17 21:25:20 +08:00
Oleksandr Kravchenko
bae6a8db57
Update object.hpp
...
a little bug fix
2018-05-26 19:59:01 +03:00
Takatoshi Kondo
96133c8dd9
Fixed #658 .
...
Added include file checking.
2018-05-10 19:02:24 +09:00
Takatoshi Kondo
64698e8e8c
Removed other recursions from msgpack::object.
...
Fixed start_map_item and start_array_item calling point.
Supported visitor aborting.
2018-04-27 00:54:55 +09:00
Takatoshi Kondo
06f4b05487
Removed #if 0 codes.
2018-04-26 20:18:20 +09:00
Takatoshi Kondo
e3f5281903
Removed recursion from msgpack::object packing and stringize.
...
Changed json expected strings.
Before this commit, json output has redundant white space.
The commit remove it. Semantically no difference.
2018-04-26 19:36:48 +09:00
Takatoshi Kondo
ec239933db
Fixed #671 .
...
Added STR type check to define_map.
2018-04-25 10:43:26 +09:00
Takatoshi Kondo
6ba9a58648
Added missing variadic template parameters.
2018-04-12 06:36:32 +09:00
Takatoshi Kondo
427a6e7313
Revert "Fixed #637."
...
This reverts commit 5ece2ef2c7 .
2018-04-06 07:38:58 +09:00
Khem Raj
a05d92ae85
Fix -Werror=class-memaccess
...
Casting to void* make gcc happy since its upset about
object types and rightly so
Fixes
'void* memcpy(void*, const void*, size_t)' copying an object of non-trivial type 'struct msgpack::v2::object' from an array of 'const msgpack_object' {aka 'const struct msgpack_object'} [-Werror=class-memaccess]
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-04-01 19:55:38 -07:00
Takatoshi Kondo
208595b262
Merge pull request #639 from redboltz/fix_637
...
Fixed #637 .
2017-11-28 08:05:43 +09:00
Takatoshi Kondo
d46f220737
Removed unused code.
2017-11-12 12:31:17 +09:00
Takatoshi Kondo
b4db293181
Fixed #644 .
...
Added `as()` checking to MSGPACK_DEFINE family.
2017-11-11 15:44:31 +09:00
Takatoshi Kondo
7e758ca053
Fixed #642 .
...
Fixed documentation.
2017-11-09 10:40:43 +09:00
Takatoshi Kondo
1ba46a30ce
Fixed #640 .
...
Replaced comma with semi colon.
Unified cording style.
2017-11-04 12:55:22 +09:00
Takatoshi Kondo
5ece2ef2c7
Fixed #637 .
...
<<< Breaking change >>>
In the functions unpack() and parse(),
Old behavior: If any parse error is happend, offset is NOT updated.
New behavior: If any parse error is happend, offset is updated to the
position the error happened.
It helps MessagePack format error analysis.
If you want to old behavior, copy the original value of offset and then call unpack()
and/or parse().
2017-10-22 18:22:41 +09:00
sztomi
d452625ed1
Added * and -> operators to object_handle
2017-10-09 20:23:25 +02:00
Takatoshi Kondo
7ad743f2da
Fixed conflict between boost fusion sequence and std::tuple/std::pair.
2017-07-26 10:24:17 +09:00
Takatoshi Kondo
288a6b2e31
Fixed zone expansion algorithm.
2017-07-23 19:12:17 +09:00
Takatoshi Kondo
a0e4294b5a
Set MSGPACK_ZONE_ALIGNOF(char) explicitly.
...
It makes efficient zone allocation.
If it was omitted, the default alignment was applied. It was inefficient.
2017-07-23 19:11:12 +09:00
Takatoshi Kondo
64baa15f8e
Fixed aligned size.
2017-07-22 15:35:02 +09:00
Takatoshi Kondo
354ee5b9a3
Merge branch 'alignment' of https://github.com/chshaob1/msgpack-c into chshaob1-alignment
2017-07-22 15:28:12 +09:00
Takatoshi Kondo
a502097fd0
Solved #597 .
...
Added `std::optional` and `std::string_view` adaptors.
2017-06-13 18:22:48 +09:00
Takatoshi Kondo
1a3fcc3a22
Prevent iovec redefinition on C++.
2017-06-13 12:50:53 +09:00
Takatoshi Kondo
bd511a4bd1
Fixed nonnull warnings on gcc 7.1.
2017-06-12 15:14:37 +09:00
Takatoshi Kondo
e90231c865
Added 'fallthrough' comments to suppress gcc7 warnings.
2017-04-24 17:16:43 +09:00
Khem Raj
15d8bb6792
Comment intentional fallthrough in case statements
...
Fixes build with gcc7
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2017-04-22 08:53:50 -07:00