* Fix order of arguments in SQLWriteFileDSN.c, fix unwanted free() in iusql.c * Add pkg-config files - bsc#1082290 (CVE-2018-7409): Buffer overflow in unicode_to_ansi_copy() was fixed in 2.3.5 - bsc#1082484 (CVE-2018-7485): Swapped arguments in SQLWriteFileDSN() in odbcinst/SQLWriteFileDSN.c - Remove unixODBC-2.3.1-bison.patch: upstreamed - Remove unixODBC-iaddr.patch: upstreamed - Adapt unixODBC-2.3.1-declarations.patch to unixODBC-2.3.6-declarations.patch - Update unixODBC-gccwarnings.patch OBS-URL: https://build.opensuse.org/package/show/server:database/unixODBC?expand=0&rev=50
75 lines
1.6 KiB
Diff
75 lines
1.6 KiB
Diff
Index: Drivers/nn/nndate.c
|
|
===================================================================
|
|
--- Drivers/nn/nndate.c.orig
|
|
+++ Drivers/nn/nndate.c
|
|
@@ -16,6 +16,7 @@
|
|
#include <nnconfig.h>
|
|
|
|
#include <nndate.h>
|
|
+#include "misc.h"
|
|
|
|
static char* month_name[] =
|
|
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
|
Index: Drivers/nn/misc.h
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ Drivers/nn/misc.h
|
|
@@ -0,0 +1,7 @@
|
|
+#ifndef _MISC_H
|
|
+# define _MISC_H
|
|
+
|
|
+extern int upper_strneq(char *s1, char *s2, int n);
|
|
+
|
|
+
|
|
+#endif
|
|
Index: Drivers/nn/connect.c
|
|
===================================================================
|
|
--- Drivers/nn/connect.c.orig
|
|
+++ Drivers/nn/connect.c
|
|
@@ -13,7 +13,10 @@
|
|
GNU General Public License for more details.
|
|
**/
|
|
#include <config.h>
|
|
+#include <unistd.h>
|
|
+#include <sys/types.h>
|
|
#include "driver.h"
|
|
+#include "misc.h"
|
|
|
|
void* nnodbc_getenverrstack(void* henv)
|
|
{
|
|
Index: Drivers/nn/nntp.c
|
|
===================================================================
|
|
--- Drivers/nn/nntp.c.orig
|
|
+++ Drivers/nn/nntp.c
|
|
@@ -19,6 +19,10 @@
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
#include <nntp.h>
|
|
+#include <sys/socket.h>
|
|
+#include <netinet/in.h>
|
|
+#include <arpa/inet.h>
|
|
+#include <unistd.h>
|
|
|
|
# include "nntp.ci"
|
|
|
|
@@ -36,6 +37,7 @@
|
|
#endif
|
|
|
|
#include <nntp.h>
|
|
+#include "misc.h"
|
|
|
|
typedef struct {
|
|
long article_num;
|
|
Index: Drivers/nn/nncol.c
|
|
===================================================================
|
|
--- Drivers/nn/nncol.c.orig
|
|
+++ Drivers/nn/nncol.c
|
|
@@ -18,6 +18,7 @@
|
|
|
|
#include <nncol.h>
|
|
#include "nncol.ci"
|
|
+#include "misc.h"
|
|
|
|
int nnsql_getcolidxbyname( char* col_name )
|
|
{
|