diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-05 20:25:27 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-05 20:25:27 -0500 |
commit | 25dbded13a57b4bae4ba219a5d2874b7035d389e (patch) | |
tree | 32498743c47caff20449cc0e894edf1a59ff48f1 /user/squashfs-tools/vla-overlow.patch | |
parent | be94847a164f9ae0d58332b1de3ed8b037e2fc14 (diff) | |
download | packages-25dbded13a57b4bae4ba219a5d2874b7035d389e.tar.gz packages-25dbded13a57b4bae4ba219a5d2874b7035d389e.tar.bz2 packages-25dbded13a57b4bae4ba219a5d2874b7035d389e.tar.xz packages-25dbded13a57b4bae4ba219a5d2874b7035d389e.zip |
user/squashfs-tools: pull in, fix, take
Diffstat (limited to 'user/squashfs-tools/vla-overlow.patch')
-rw-r--r-- | user/squashfs-tools/vla-overlow.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/user/squashfs-tools/vla-overlow.patch b/user/squashfs-tools/vla-overlow.patch new file mode 100644 index 000000000..a9840fe01 --- /dev/null +++ b/user/squashfs-tools/vla-overlow.patch @@ -0,0 +1,21 @@ +--- ./squashfs-tools/unsquashfs.c.orig ++++ ./squashfs-tools/unsquashfs.c +@@ -2099,7 +2099,9 @@ + */ + void *inflator(void *arg) + { +- char tmp[block_size]; ++ char *tmp = malloc(block_size); ++ if(tmp == NULL) ++ EXIT_UNSQUASH("Out of memory allocating block buffer\n"); + + while(1) { + struct cache_entry *entry = queue_get(to_inflate); +@@ -2122,6 +2124,7 @@ + */ + cache_block_ready(entry, res == -1); + } ++ free(tmp); + } + + |