diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/libxls/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/libxls/files')
-rw-r--r-- | dev-libs/libxls/files/libxls-1.4.0-asprintf.patch | 8 | ||||
-rw-r--r-- | dev-libs/libxls/files/libxls-1.4.0-infinite.patch | 16 |
2 files changed, 24 insertions, 0 deletions
diff --git a/dev-libs/libxls/files/libxls-1.4.0-asprintf.patch b/dev-libs/libxls/files/libxls-1.4.0-asprintf.patch new file mode 100644 index 000000000000..71a6c82fbf3d --- /dev/null +++ b/dev-libs/libxls/files/libxls-1.4.0-asprintf.patch @@ -0,0 +1,8 @@ +diff --git a/src/xlstool.c b/src/xlstool.c +index 54eab0e..ef1c7e9 100644 +--- a/src/xlstool.c ++++ b/src/xlstool.c +@@ -32,2 +32,3 @@ + ++#define _GNU_SOURCE /* asprintf */ + #include "config.h" diff --git a/dev-libs/libxls/files/libxls-1.4.0-infinite.patch b/dev-libs/libxls/files/libxls-1.4.0-infinite.patch new file mode 100644 index 000000000000..6f6e9fc1e1ec --- /dev/null +++ b/dev-libs/libxls/files/libxls-1.4.0-infinite.patch @@ -0,0 +1,16 @@ +cellRow and cellCol need to be of a type larger than WORD. +Otherwise for for documents with 65535 columns condition +loops forever in the following line: + for (cellRow = 0; cellRow <= pWS->rows.lastrow; cellRow++) { +In this case <= 65535 is always true. + +https://bugs.gentoo.org/607094 has an example doc of this kind. +diff --git a/libxls/src/xls2csv.c b/libxls/src/xls2csv.c +index b804267..1f0d4b3 100644 +--- a/src/xls2csv.c ++++ b/src/xls2csv.c +@@ -104,3 +104,3 @@ int main(int argc, char *argv[]) { + struct st_row_data* row; +- WORD cellRow, cellCol; ++ DWORD cellRow, cellCol; + |