• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:fail +full:- +full:at +full:- +full:end

9        Software Foundation; either version 3 of the License, or (at
15 Software Foundation; either version 2 of the License, or (at
93 size_t more = state->size ? state->size * 2 : start; in bigger_buffer()
94 char *b = realloc (state->buffer, more); in bigger_buffer()
95 while (unlikely (b == NULL) && more >= state->size + 1024) in bigger_buffer()
96 b = realloc (state->buffer, more -= 1024); in bigger_buffer()
99 state->buffer = b; in bigger_buffer()
100 state->size = more; in bigger_buffer()
105 smaller_buffer (struct unzip_state *state, size_t end) in smaller_buffer() argument
107 state->buffer = in smaller_buffer()
108 realloc (state->buffer, end) ?: end == 0 ? NULL : state->buffer; in smaller_buffer()
109 state->size = end; in smaller_buffer()
113 fail (struct unzip_state *state, Dwfl_Error failure) in fail() function
115 if (state->input_pos == (off_t) state->mapped_size) in fail()
116 *state->whole = state->input_buffer; in fail()
119 free (state->input_buffer); in fail()
120 *state->whole = NULL; in fail()
122 free (state->buffer); in fail()
133 return fail (state, DWFL_E_NOMEM); in zlib_fail()
135 return fail (state, DWFL_E_ERRNO); in zlib_fail()
137 return fail (state, DWFL_E_ZLIB); in zlib_fail()
158 state->zf = gzdopen (d, "r"); in open_stream()
159 if (unlikely (state->zf == NULL)) in open_stream()
206 return fail (&state, DWFL_E_ERRNO); in unzip()
221 memcmp (mapped, magic, sizeof magic - 1)) in unzip()
223 /* First, look at the header. */ in unzip()
245 return fail (&state, DWFL_E_NOMEM); in unzip()
256 return fail (&state, DWFL_E_ERRNO); in unzip()
264 ptrdiff_t pos = (void *) next_out - state.buffer; in unzip()
268 return fail (&state, DWFL_E_NOMEM); in unzip()
271 avail_out = state.size - pos; in unzip()
282 avail_out -= output.pos; in unzip()
284 avail_in -= input.pos; in unzip()
295 return fail (&state, DWFL_E_ZSTD); in unzip()
330 ptrdiff_t pos = (void *) z.next_out - state.buffer; in unzip()
337 z.avail_out = state.size - pos; in unzip()
365 return fail (&state, DWFL_E_BADELF); in unzip()
369 return fail (&state, result); in unzip()
379 int n = gzread (state.zf, state.buffer + pos, state.size - pos); in unzip()