sane-backends: bump to 1.0.27

Fixes CVE-2017-6318

Patches where refreshed and the following removed:
- 020-fix_pieusb.patch: fixed upstream
- 030-musl.patch: accepted upstream

PS: there was no sane-backends 1.0.26

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
This commit is contained in:
Luiz Angelo Daros de Luca
2017-05-28 03:07:42 -03:00
parent 06b055aa91
commit 275bc8edcf
6 changed files with 27 additions and 123 deletions
@@ -1,8 +1,8 @@
--- a/configure.in
+++ b/configure.in
@@ -279,6 +279,9 @@ dnl ************************************
dnl Checks for library functions
dnl ***********************************************************************
--- a/configure.ac
+++ b/configure.ac
@@ -280,6 +280,9 @@ AS_IF([test x != x$ALLOCA],
[LTALLOCA=`echo "$ALLOCA" | sed 's/\.o$//; s/\.obj$//'`.lo])
AC_SUBST(LTALLOCA)
+dnl Check mkostemp (missing in uclibc)
+AC_CHECK_FUNC(mkostemp)
@@ -12,7 +12,7 @@
AC_CHECK_FUNC(gethostbyaddr,, [AC_CHECK_LIB(bind, gethostbyaddr, BIND_LIB="-lbind")])
--- a/include/sane/config.h.in
+++ b/include/sane/config.h.in
@@ -207,6 +207,9 @@
@@ -229,6 +229,9 @@
/* Define to 1 if you have the `mkdir' function. */
#undef HAVE_MKDIR
@@ -22,17 +22,3 @@
/* Define to 1 if you have a working `mmap' system call. */
#undef HAVE_MMAP
--- a/backend/pieusb_buffer.c
+++ b/backend/pieusb_buffer.c
@@ -112,6 +112,11 @@
#endif
#endif
+#ifndef HAVE_MKOSTEMP
+/* uclibc might not implement mkostemp GNU extension */
+#define mkostemp(template, flags) mkstemp(template)
+#endif
+
static void buffer_update_read_index(struct Pieusb_Read_Buffer* buffer, int increment);
/* READER */