diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-03 19:01:26 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-03 19:01:26 +0000 |
commit | 21fdc5cafaa2049fc394886159a4303bf83f6615 (patch) | |
tree | 7d5af2983d34ec39e416bee5e1e51473395fb014 /user/squashfs-tools/CVE-2015-4645.patch | |
parent | 19d027776a83db2317f8e440195059c77c2478e2 (diff) | |
download | packages-21fdc5cafaa2049fc394886159a4303bf83f6615.tar.gz packages-21fdc5cafaa2049fc394886159a4303bf83f6615.tar.bz2 packages-21fdc5cafaa2049fc394886159a4303bf83f6615.tar.xz packages-21fdc5cafaa2049fc394886159a4303bf83f6615.zip |
user/squashfs-tools: [CVE] bump to 4.4, modernise (#163)
Diffstat (limited to 'user/squashfs-tools/CVE-2015-4645.patch')
-rw-r--r-- | user/squashfs-tools/CVE-2015-4645.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/user/squashfs-tools/CVE-2015-4645.patch b/user/squashfs-tools/CVE-2015-4645.patch deleted file mode 100644 index f69025f18..000000000 --- a/user/squashfs-tools/CVE-2015-4645.patch +++ /dev/null @@ -1,29 +0,0 @@ -diff --git a/squashfs-tools/unsquash-4.c b/squashfs-tools/unsquash-4.c -index ecdaac796f09..2c0cf63daf67 100644 ---- a/squashfs-tools/unsquash-4.c -+++ b/squashfs-tools/unsquash-4.c -@@ -31,9 +31,9 @@ static unsigned int *id_table; - int read_fragment_table_4(long long *directory_table_end) - { - int res, i; -- int bytes = SQUASHFS_FRAGMENT_BYTES(sBlk.s.fragments); -- int indexes = SQUASHFS_FRAGMENT_INDEXES(sBlk.s.fragments); -- long long fragment_table_index[indexes]; -+ size_t bytes = SQUASHFS_FRAGMENT_BYTES(sBlk.s.fragments); -+ size_t indexes = SQUASHFS_FRAGMENT_INDEXES(sBlk.s.fragments); -+ long long *fragment_table_index; - - TRACE("read_fragment_table: %d fragments, reading %d fragment indexes " - "from 0x%llx\n", sBlk.s.fragments, indexes, -@@ -44,6 +44,11 @@ int read_fragment_table_4(long long *directory_table_end) - return TRUE; - } - -+ fragment_table_index = malloc(indexes*sizeof(long long)); -+ if(fragment_table_index == NULL) -+ EXIT_UNSQUASH("read_fragment_table: failed to allocate " -+ "fragment table index\n"); -+ - fragment_table = malloc(bytes); - if(fragment_table == NULL) - EXIT_UNSQUASH("read_fragment_table: failed to allocate " |