-
-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
microsoft/vcpkg
#36163Description
Describe the bug
when running make
on v0.172.1 I get compile error
In member function ‘void jsoncons::basic_bigint<Allocator>::resize(jsoncons::basic_bigint<Allocator>::size_type) [with Allocator = std::allocator<unsigned char>]’,
inlined from ‘jsoncons::basic_bigint<Allocator>& jsoncons::basic_bigint<Allocator>::operator>>=(uint64_t) [with Allocator = std::allocator<unsigned char>]’ at /home/roman/projects/jsoncons/include/jsoncons/bigint.hpp:773:19,
inlined from ‘void jsoncons::basic_bigint<Allocator>::unnormalize(jsoncons::basic_bigint<Allocator>&, int, int) const [with Allocator = std::allocator<unsigned char>]’ at /home/roman/projects/jsoncons/include/jsoncons/bigint.hpp:1561:17,
inlined from ‘void jsoncons::basic_bigint<Allocator>::divide(jsoncons::basic_bigint<Allocator>, jsoncons::basic_bigint<Allocator>&, jsoncons::basic_bigint<Allocator>&, bool) const [with Allocator = std::allocator<unsigned char>]’ at /home/roman/projects/jsoncons/include/jsoncons/bigint.hpp:1425:24:
/home/roman/projects/jsoncons/include/jsoncons/bigint.hpp:516:18: error: ‘void* __builtin_memset(void*, int, long unsigned int)’ specified size between 18446744073441116168 and 18446744073709551615 may exceed maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
516 | a[i] = 0;
make succeeds
Enumerate the steps to reproduce the bug
git checkout v0.172.1
mkdir build
cmake ..
make -j4
Include a small, self-contained example if possible
What compiler, architecture, and operating system?
- Compiler: gcc 11.3
- Architecture (e.g. x86, x64) _x64
- Operating system: Linux Mint 21
What jsoncons library version?
- [x ] Latest release 0.172.1