summaryrefslogtreecommitdiff
path: root/user/mesa/disk_cache-stack-overflow.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-25 02:00:38 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-25 02:00:38 -0600
commit053121bf4e9e40a816ec509cc2e28af994ed91cf (patch)
tree9ea93caa18a3781f9821f15cec7011b0491d9e89 /user/mesa/disk_cache-stack-overflow.patch
parent82c5817cb62ed83a5d708538c7606576987fbab6 (diff)
downloadpackages-053121bf4e9e40a816ec509cc2e28af994ed91cf.tar.gz
packages-053121bf4e9e40a816ec509cc2e28af994ed91cf.tar.bz2
packages-053121bf4e9e40a816ec509cc2e28af994ed91cf.tar.xz
packages-053121bf4e9e40a816ec509cc2e28af994ed91cf.zip
user/mesa: bump to 19.3.1 - complete overhaul
* Supports VA API, XvMC * Vulkan support enabled * Uses 'megadrivers' for significant install-size decrease * Supports many more drivers on ARM machines * Uses Meson instead of autotools
Diffstat (limited to 'user/mesa/disk_cache-stack-overflow.patch')
-rw-r--r--user/mesa/disk_cache-stack-overflow.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/user/mesa/disk_cache-stack-overflow.patch b/user/mesa/disk_cache-stack-overflow.patch
deleted file mode 100644
index 3fad95259..000000000
--- a/user/mesa/disk_cache-stack-overflow.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-The disk cache code tries to allocate a 256 Kbyte buffer on the stack.
-Since musl only gives 80 Kbyte of stack space per thread, this causes a trap.
-
---- mesa-17.3.1/src/util/disk_cache.c.old 2017-12-21 11:31:22.000000000 -0600
-+++ mesa-17.3.1/src/util/disk_cache.c 2017-12-29 01:17:15.625633901 -0600
-@@ -716,7 +716,7 @@
- deflate_and_write_to_disk(const void *in_data, size_t in_data_size, int dest,
- const char *filename)
- {
-- unsigned char out[BUFSIZE];
-+ unsigned char *out;
-
- /* allocate deflate state */
- z_stream strm;
-@@ -733,6 +733,11 @@
- /* compress until end of in_data */
- size_t compressed_size = 0;
- int flush;
-+
-+ out = calloc(1, BUFSIZE);
-+ if (out == NULL)
-+ return 0;
-+
- do {
- int remaining = in_data_size - BUFSIZE;
- flush = remaining > 0 ? Z_NO_FLUSH : Z_FINISH;
-@@ -754,6 +759,7 @@
- ssize_t written = write_all(dest, out, have);
- if (written == -1) {
- (void)deflateEnd(&strm);
-+ free(out);
- return 0;
- }
- } while (strm.avail_out == 0);
-@@ -768,6 +774,7 @@
-
- /* clean up and return */
- (void)deflateEnd(&strm);
-+ free(out);
- return compressed_size;
- }
-