Skip to content

Commit

Permalink
libarchive: treat one "FIXME: avoid seek", take 2
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Vlasenko <[email protected]>
  • Loading branch information
Denys Vlasenko committed May 26, 2019
1 parent a4ed2c4 commit cc71f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archival/libarchive/open_transformer.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,13 @@ void* FAST_FUNC xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_
* read(4, "LF\2\1\1\0\0\0\0"...
* ...and we avoided seeking on the fd! :)
*/
xstate->signature_skipped = 0;
image = xmalloc_read_with_initial_buf(
xstate->src_fd,
maxsz_p,
xmemdup(&xstate->magic, xstate->signature_skipped),
xstate->signature_skipped
);
xstate->signature_skipped = 0;
}

if (!image)
Expand Down

0 comments on commit cc71f79

Please sign in to comment.