search for: e33e47b

Displaying 2 results from an estimated 2 matches for "e33e47b".

2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...nst char *src_display, while (size != 0) { /* Calculate bytes to copy. */ - if (size == -1 || size > (int64_t) sizeof buf) - n = sizeof buf; + if (size == -1 || size > BUFSIZ) + n = BUFSIZ; else n = size; diff --git a/daemon/cpio.c b/daemon/cpio.c index e33e47b..d1459b1 100644 --- a/daemon/cpio.c +++ b/daemon/cpio.c @@ -45,7 +45,13 @@ do_cpio_out (const char *dir, const char *format) int r; FILE *fp; CLEANUP_FREE char *cmd = NULL; - char buffer[GUESTFS_MAX_CHUNK_SIZE]; + CLEANUP_FREE char *buffer = NULL; + + buffer = malloc (GUESTFS_MAX_CHUNK_...