Skip to content

[BUG] Segmentation fault #147

Description

@kyku

Prerequisites

Description

Segmentation fault

Steps to Reproduce

  1. Start daemon on a port which is already open

Expected behavior: Exception is correctly reported.

Actual behavior: Segmentation faults or string truncation depending on port value.

Reproduces how often: 100%

Versions

  • OS version Linux XXX 5.0.9-arch1-1-ARCH Remove uuid generation #1 SMP PREEMPT Sat Apr 20 15:00:46 UTC 2019 x86_64 GNU/Linux
  • libhttpserver version master
  • libmicrohttpd version does not matter

Additional Information

Caused by webserver.cpp:328
throw std::invalid_argument("Unable to connect daemon to port: " + this->port);
needless to say, this increments to pointer rather than appends to string.

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