Skip to content

uri_builder crash #994

Closed
Closed
@opottone

Description

@opottone

This minimal program crashes:

#include "cpprest/uri.h"

int main()
{
    web::uri uri(U("http://127.0.0.1:34568/"));
}

The crash happens when the program is compiled with Visual Studio 2017 in Debug mode with Runtime Library set to "Multi-Threaded Debug (/MTd)" (Project properties -> C/C++ -> Code Generation -> Runtime Library)

The program crashes with error message

Debug Assertion Failed!
File: minkernel/crts/ucrt/src/appcrt/heap/debug_heap.cpp
Line: 996
Expression: __acrt_first_block == header

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions