Skip to content

[BUG] http_request::get_arg[_flat] result truncated at around 15553 characters #335

@jcphill

Description

@jcphill

Prerequisites

Description

Upgrading from 0.18.2 to 0.19.0 I find that large POST payloads that worked fine before are now truncated at around 15553 characters (that is the offset the JSON parser reports).

Steps to Reproduce

  1. POST argument of 18K or larger.
  2. Access via get_arg or get_arg_flat and convert to std::string.
  3. Observe that it is truncated.

Expected behavior: [What you expect to happen]

Data is not truncated.

Actual behavior: [What actually happens]

Data is truncated at around 15553 characters.

Reproduces how often: [What percentage of the time does it reproduce?]

100%

Versions

  • Linux XXXX 4.18.0-477.51.1.el8_8.x86_64 1 SMP Fri Mar 1 11:21:44 EST 2024 x86_64 x86_64 x86_64 GNU/Linux
  • libhttpserver version 0.19.0, compiled
  • libmicrohttpd version 0.9.71, compiled

Additional Information

Sorry I don't have a simple reproducer. I'll see if I can make a test that fails.

Metadata

Metadata

Assignees

Labels

bugConfirmed bugs or reports that are very likely to be bugs.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions