diff options
author | 2022-05-19 23:43:57 +0100 | |
---|---|---|
committer | 2022-05-19 23:45:42 +0100 | |
commit | 9983d4ae3ee5a688bd77b17e2a99ba33074b8a2f (patch) | |
tree | 7e2c577f5a41d90c4eff4b86aeead0d224e52831 /media-libs/xine-lib/files | |
parent | media-libs/xine-lib: disable dav1d for 1.2.11 (diff) | |
download | gentoo-9983d4ae3ee5a688bd77b17e2a99ba33074b8a2f.tar.gz gentoo-9983d4ae3ee5a688bd77b17e2a99ba33074b8a2f.tar.bz2 gentoo-9983d4ae3ee5a688bd77b17e2a99ba33074b8a2f.zip |
media-libs/xine-lib: apply mmap crash fix
Applied upstream too! \o/
Closes: https://bugs.gentoo.org/845396
Thanks-to: aloe <aloebbert@gmx.de>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/xine-lib/files')
-rw-r--r-- | media-libs/xine-lib/files/xine-lib-1.2.12-fix-mmap-crash.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/media-libs/xine-lib/files/xine-lib-1.2.12-fix-mmap-crash.patch b/media-libs/xine-lib/files/xine-lib-1.2.12-fix-mmap-crash.patch new file mode 100644 index 000000000000..df5515f0495c --- /dev/null +++ b/media-libs/xine-lib/files/xine-lib-1.2.12-fix-mmap-crash.patch @@ -0,0 +1,15 @@ +https://sourceforge.net/p/xine/tickets/12/ +https://sourceforge.net/p/xine/xine-lib-1.2/ci/f56d70b45346ca9363a720724b0c2d00fc798988/tree/src/input/input_file.c?diff=d6e5d46a943257f0be171fb8ab16050810a21581 +https://bugs.gentoo.org/846398 + +--- a/src/input/input_file.c ++++ b/src/input/input_file.c +@@ -449,7 +449,7 @@ + #ifdef HAVE_MMAP + this->mmap_base = NULL; + do { +- uint8_t mmap_base; ++ uint8_t *mmap_base; + size_t tmp_size; + /* may cause truncation - if it does, DON'T mmap! */ + tmp_size = (size_t)sbuf.st_size; |