Skip to content

Application stalls indefinitely with message byte size 10 #2293

Description

@jprochazk
#include <vector>
#include <cstdint>
#include <nlohmann/json.hpp>

int main()
{
	std::vector<uint8_t> data = {
		0x7B, 0x6F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x4F, 0x42
	};
	nlohmann::json result = nlohmann::json::from_cbor(data, true, false);

	return 0;
}

When running the above code with library versions 3.7.3 or 3.8.0, the application stalls (seemingly) forever. Memory consumption also continues growing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions