nekipelov / httpparser

HTTP request, response and urls parser
MIT License
118 stars 36 forks source link

SIGABRT on line number 429 #6

Open ppatel-uptycs opened 3 years ago

ppatel-uptycs commented 3 years ago

Causing sig abort: https://github.com/nekipelov/httpparser/blob/ac5e383805a1a84ede1e164b9a543b3ab92c84ff/src/httpparser/httpresponseparser.h#L429

0 __GI_raise (sig=41436) at ../sysdeps/unix/sysv/linux/raise.c:37

1 0x00007f0398a14187 in __GI_abort () at abort.c:118

2 0x00005565ea1116f6 in abort_message ()

3 0x00005565ea111419 in demangling_terminate_handler() ()

4 0x00005565ea111173 in std::__terminate(void (*)()) ()

5 0x00005565ea112984 in __cxxabiv1::failed_throw(cxxabiv1::cxa_exception*) ()

6 0x00005565ea112953 in __cxa_throw ()

7 0x00005565ea0ae14a in (anonymous namespace)::handle_oom(void ()(void), void, bool, bool) ()

8 0x00005565eb6f7743 in tcmalloc::allocate_full_cpp_throw_oom(unsigned long) ()

9 0x00005565eb02b9f6 in std::1::allocate (__size=9223372036854775807)

at /usr/local/osquery/include/c++/v1/new:228

10 std::1::allocator::allocate (this=, n=)

at /usr/local/osquery/include/c++/v1/memory:1793

11 std::__1::allocator_traits<std::1::allocator >::allocate (a=..., __n=)

at /usr/local/osquery/include/c++/v1/memory:1547

12 std::1::split_buffer<char, std::1::allocator&>::split_buffer (

this=<optimized out>, __start=0, __a=..., __cap=<optimized out>)
at /usr/local/osquery/include/c++/v1/__split_buffer:311

13 std::1::vector<char, std::1::allocator >::reserve (this=0x7f038fa565c0,

__n=9223372036854775807) at /usr/local/osquery/include/c++/v1/vector:1541

14 0x00005565eb2085ba in httpparser::HttpRequestParser::consume (begin=,

this=<optimized out>, req=..., end=<optimized out>)