Lines Matching +full:failmalloc +full:- +full:1
2 * nghttp2 - HTTP/2 C Library
49 "/failmalloc", tests, NULL, 1, MUNIT_SUITE_OPTION_NONE,
66 buf = &bufs->head->buf; in data_feed_init()
69 assert(data_length <= sizeof(df->data)); in data_feed_init()
70 memcpy(df->data, buf->pos, data_length); in data_feed_init()
71 df->datamark = df->data; in data_feed_init()
72 df->datalimit = df->data + data_length; in data_feed_init()
89 data_feed *df = ((my_user_data *)user_data)->df; in data_feed_recv_callback()
90 size_t avail = (size_t)(df->datalimit - df->datamark); in data_feed_recv_callback()
95 memcpy(data, df->datamark, wlen); in data_feed_recv_callback()
96 df->datamark += wlen; in data_feed_recv_callback()
110 if (len < ud->data_source_length) { in fixed_length_data_source_read_callback()
113 wlen = ud->data_source_length; in fixed_length_data_source_read_callback()
115 ud->data_source_length -= wlen; in fixed_length_data_source_read_callback()
116 if (ud->data_source_length == 0) { in fixed_length_data_source_read_callback()
131 nghttp2_failmalloc = 1; \
159 iv[1].settings_id = NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS; in run_nghttp2_session_send()
160 iv[1].value = 100; in run_nghttp2_session_send()
171 rv = nghttp2_submit_headers(session, NGHTTP2_FLAG_NONE, -1, NULL, nv, in run_nghttp2_session_send()
245 sizeof(nghttp2) - 1, in run_nghttp2_session_send_server()
263 sizeof(origin) - 1, altsvc_field_value, in run_nghttp2_session_send_server()
264 sizeof(altsvc_field_value) - 1); in run_nghttp2_session_send_server()
269 rv = nghttp2_submit_origin(session, NGHTTP2_FLAG_NONE, &ov, 1); in run_nghttp2_session_send_server()
337 iv[1].settings_id = NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS; in run_nghttp2_session_recv()
338 iv[1].value = 100; in run_nghttp2_session_recv()
357 nghttp2_frame_headers_init(&frame.headers, NGHTTP2_FLAG_END_STREAM, 1, in run_nghttp2_session_recv()
387 nghttp2_frame_rst_stream_init(&frame.rst_stream, 1, NGHTTP2_PROTOCOL_ERROR); in run_nghttp2_session_recv()
439 nghttp2_frame_headers_init(&frame.headers, NGHTTP2_FLAG_END_STREAM, 1, in run_nghttp2_frame_pack_headers()
476 iv[1].settings_id = NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS; in run_nghttp2_frame_pack_settings()
477 iv[1].value = 100; in run_nghttp2_frame_pack_settings()
493 buf = &bufs.head->buf; in run_nghttp2_frame_pack_settings()
496 &oframe.settings.iv, &oframe.settings.niv, buf->pos + NGHTTP2_FRAME_HDLEN, in run_nghttp2_frame_pack_settings()
497 nghttp2_buf_len(buf) - NGHTTP2_FRAME_HDLEN, nghttp2_mem_fm()); in run_nghttp2_frame_pack_settings()
545 MAKE_NV("accept-encoding", "gzip, deflate"), MAKE_NV("foo", "bar")}; in run_nghttp2_hd()