Lines Matching refs:buffer_size
125 int get_len_step(const data_t *input, size_t buffer_size,
134 mbedtls_test_set_step(buffer_size);
137 if (buffer_size == 0) {
142 TEST_CALLOC_OR_SKIP(buf, buffer_size);
143 if (buffer_size > input->len) {
145 memset(buf + input->len, 'A', buffer_size - input->len);
147 memcpy(buf, input->x, buffer_size);
150 end = buf + buffer_size;
155 if (buffer_size >= input->len + actual_length) {
238 size_t buffer_size;
246 for (buffer_size = 1; buffer_size <= input->len + 1; buffer_size++) {
247 mbedtls_test_set_step(buffer_size);
250 TEST_CALLOC(buf, buffer_size);
251 memcpy(buf, input->x, buffer_size);
253 ret = nested_parse(&p, buf + buffer_size);
258 if (buffer_size < input->len) {
260 } else if (buffer_size == input->len) {
262 } else { /* ( buffer_size > input->len ) */
284 size_t buffer_size;
292 for (buffer_size = 1; buffer_size <= input->len + 1; buffer_size++) {
293 if (!get_len_step(input, buffer_size, actual_length)) {