Daniil Kovalev
90677eb58c
Fix UB in v4raw_ref::operator==
...
Behaviour of memcmp is undefined if any of pointers passed to it is null.
See https://en.cppreference.com/w/c/string/byte/memcmp for details.
UB was detected on test MSGPACK_V4RAW_REF.pack_unpack_fix_l with UB-sanitizer.
2021-05-09 15:43:14 +03:00
Daniil Kovalev
3944993686
Fix name conflicts
...
Previously `struct iovec` was explicitly defined on non-Unix systems,
which caused name conflicts when other libraries (e.g. Cyrus SASL) did the same.
Using `struct iovec` as `msgpack::iovec` solves the problem.
2021-05-08 16:26:25 +03:00
Takatoshi Kondo
6598c6228f
Replaced assert with BOOST_ASSERT.
...
Applied *buffer buf and len checking assert.
Avoided needless code execution if buf is nullptr.
2020-07-02 21:36:04 +09:00
Takatoshi Kondo
c8a053557c
Propagated CXXFLAGS.
...
Fixed warnings.
2020-07-02 16:15:08 +09:00
Takatoshi Kondo
0e22de17b1
Merge branch 'ygj6-cpp_master' into cpp_master
2020-07-02 13:58:30 +09:00
Takatoshi Kondo
b0860a5f37
Fixed ptr size operation.
2020-07-02 13:34:00 +09:00
Takatoshi Kondo
8ee6df83cc
Fixed warning on fusion adaptor.
2020-07-02 09:13:53 +09:00
Takatoshi Kondo
0168468ac8
Merge branch 'cpp_master' of https://github.com/ygj6/msgpack-c into cpp_master
2020-07-02 08:51:59 +09:00
yuangongji
ee29324fd5
check null pointer before using memcpy()
2020-07-01 20:44:15 +08:00
Takatoshi Kondo
ebb5e0ceca
Fixed undefined behavior in chrono converting.
...
Replaced static_cast with boost::numeric_cast to detect invalid cast
easier.
2020-07-01 16:22:01 +09:00
Takatoshi Kondo
4629583662
Improved clock adaptor.
2020-06-14 18:47:03 +09:00
Takatoshi Kondo
899d3319bf
Removed code repeat.
2020-06-12 23:14:23 +09:00
Takatoshi Kondo
6eaf7fd38d
Added steady_clock and high_resolution_clock support.
2020-06-12 22:16:19 +09:00
Takatoshi Kondo
3b80c45725
Added complex type support.
2020-06-10 13:26:40 +09:00
yuangongji
2f5b137997
remove C part in source code
2020-06-05 18:12:03 +08:00
yuangongji
328be0b445
rename include/msgpack/*.h to include/msgpack/*.hpp
...
include/msgpack/sysdep.h => include/msgpack/sysdep.hpp
include/msgpack/unpack_define.h => include/msgpack/unpack_define.hpp
include/msgpack/version_master.h => include/msgpack/version_master.hpp
Use `git log --follow include/msgpack/filename.hpp` to see full log
2020-06-05 16:44:51 +08:00
yuangongji
689e6d053a
remove C part files
...
remove the following files or folders:
ci/build_cmake_embedded.sh
example/c
example/cmake
include/msgpack/predef
include/msgpack/preprocessor.hpp
include/msgpack/preprocessor
include/msgpack/v1/preprocessor.hpp
include/msgpack.h
include/msgpack/fbuffer.h
include/msgpack/gcc_atomic.h
include/msgpack/object.h
include/msgpack/pack.h
include/msgpack/pack_define.h
include/msgpack/pack_template.h
include/msgpack/predef.h
include/msgpack/sbuffer.h
include/msgpack/timestamp.h
include/msgpack/unpack.h
include/msgpack/unpack_template.h
include/msgpack/util.h
include/msgpack/version.h
include/msgpack/vrefbuffer.h
include/msgpack/zbuffer.h
include/msgpack/zone.h
msgpack_vc8.sln
msgpack_vc8.vcproj
msgpack-config.cmake.in
msgpack.pc.in
src
test/fixint_c.cpp
test/msgpack_c.cpp
test/pack_unpack_c.cpp
test/streaming_c.cpp
.gitmodules
external
QUICKSTART-C.md
2020-06-05 16:44:51 +08:00
Takatoshi Kondo
66fa561256
Update the version to 3.3.0.
2020-06-05 16:22:34 +09:00
yuangongji
403567c1c5
convert between msgpack and json
2020-05-24 17:24:55 +08:00
yuangongji
1a372058a6
Use C style casts instead of C++ style casts
2020-04-16 12:46:16 +08:00
Igor Sadchenko
9a3cd0c951
Fixed many warnings/errors with macro __GNUC__(issue #850 )
2020-03-26 02:03:25 +03:00
Takatoshi Kondo
8dc865d92d
Added github actions.
...
Fixed enum qualifier.
2019-12-23 16:54:14 +09:00
Takatoshi Kondo
b36e75a42e
Updated the version to 3.2.1.
2019-12-10 12:44:07 +09:00
Torleiv Sundre
bf6cc035c7
Fix tests for MSVC <= 2013
...
Use the _TRUNCATE flag for the count parameter to _snprintf_s. Without
this, the tests for MSVC <= 2013 failed on stack corruption!
2019-12-04 20:10:42 +01:00
Josef Schlehofer
65c35caab2
Include <sys/uio.h> in Linux
...
This is needed when cross-compiling for OpenWrt.
2019-11-10 11:40:13 +01:00
Takatoshi Kondo
4b4eb83cd1
Fixed #805 .
...
Fixed fwrite return value comparison.
2019-09-24 16:43:15 +09:00
probonopd
a123053823
Add "defined(__HAIKU__)", closes #796
2019-07-13 19:14:37 +00:00
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
박진형2 [ungeziefer]
bae148bd76
Remove unnecessary lines from 'parse.hpp'
2019-07-10 19:54:29 +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
Takatoshi Kondo
ff77227e10
Updated the version to 3.2.0.
2019-05-27 18:37:24 +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
RPG3D
a1b86507da
keep compatibility
2019-05-04 17:12:15 +08:00
RPG3D
9235d1acae
1.fix error on build msgpack with UE4
2019-05-02 14:57:15 +08: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
Petr Benes
09e06a8cb7
Add support for Windows Drivers
2019-01-17 17:44:57 +01: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
Takatoshi Kondo
83a82e3eb5
Merge pull request #727 from redboltz/update_311
...
Updated the version to 3.1.1.
2018-09-09 15:27:47 +09:00
Takatoshi Kondo
f6ddc9b85a
Added enforcing endian functionality.
2018-09-08 20:06:00 +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