From ecc4156cbe7024c838b87efc84c7658f06e89651bb0efd82b12a430f8ec700a7 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Tue, 12 Apr 2016 14:01:56 +0000
Subject: [PATCH] Accepting request 388197 from
home:posophe:branches:devel:libraries:c_c++
update
OBS-URL: https://build.opensuse.org/request/show/388197
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmaxminddb?expand=0&rev=9
---
libmaxminddb-1.1.2.tar.gz | 3 ---
libmaxminddb-1.2.0.tar.gz | 3 +++
libmaxminddb.changes | 46 +++++++++++++++++++++++++++++++++++++++
libmaxminddb.spec | 6 ++---
4 files changed, 52 insertions(+), 6 deletions(-)
delete mode 100644 libmaxminddb-1.1.2.tar.gz
create mode 100644 libmaxminddb-1.2.0.tar.gz
diff --git a/libmaxminddb-1.1.2.tar.gz b/libmaxminddb-1.1.2.tar.gz
deleted file mode 100644
index 175478b..0000000
--- a/libmaxminddb-1.1.2.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:e2c0ea40ad932e5f0a0314a13fbd1354889b4ae85472a5499edb6279dd4964fa
-size 646557
diff --git a/libmaxminddb-1.2.0.tar.gz b/libmaxminddb-1.2.0.tar.gz
new file mode 100644
index 0000000..ad10f06
--- /dev/null
+++ b/libmaxminddb-1.2.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1fe859ed714f94fc902a145453f7e1b5cd928718179ba4c4fcb7f6ae0df7ad37
+size 658820
diff --git a/libmaxminddb.changes b/libmaxminddb.changes
index 69ba1c0..bea5026 100644
--- a/libmaxminddb.changes
+++ b/libmaxminddb.changes
@@ -1,3 +1,49 @@
+-------------------------------------------------------------------
+Tue Apr 12 13:48:56 UTC 2016 - p.drouand@gmail.com
+
+- Update to version 1.2.0
+ * Four additional fields were added to the end of the
+ MMDB_search_node_s struct returned by MMDB_read_node. These
+ fields allow the user to iterate through the search tree without
+ making undocumented assumptions about how this library works
+ internally and without knowing the specific details of the database
+ format. GitHub #110 (https://github.com/maxmind/libmaxminddb/issues/110)
+- Changes from version 1.1.5
+ * Previously, reading a database with a pointer in the metadata would
+ cause an MMDB_INVALID_METADATA_ERROR to be returned. This was due to
+ an invalid offset being used when calculating the pointer. The
+ data_section and metadata_section fields now both point to the
+ beginning of the data section. Previously, data_section pointed
+ to the beginning of the data separator. This will not affect
+ anyone using only documented fields from MMDB_s.
+ * MMDB_lookup_sockaddr will set mmdb_error to
+ MMDB_IPV6_LOOKUP_IN_IPV4_DATABASE_ERROR if an IPv6 sockaddr is
+ looked up in an IPv4-only database. Previously only
+ MMDB_lookup_string would set this error code.
+ * When resolving an address, this library now relies on getaddrinfo
+ to determine the address family rather than trying to guess it itself.
+- Changes from version 1.1.4
+ * Packaging fixes. The 1.1.3 tarball release contained a lot of extra
+ junk in the t/ directory.
+- Changes from version 1.1.3
+ * Added several additional checks to make sure that we don't attempt to read
+ past the end of the databases's data section. GitHub #103
+ (https://github.com/maxmind/libmaxminddb/pull/103).
+ * When searching for the database metadata, there was a bug that caused
+ the code to think it had found valid metadata when none existed. In
+ addition, this could lead to an attempt to read past the end of the
+ database entirely. Finally, if there are multiple metadata markers
+ in the database, we treat the final one as the start of the metdata,
+ instead of the first. GitHub #102 (https://github.com/maxmind/libmaxminddb/pull/102)
+ * Don't attempt to mmap a file that is too large to be mmapped on the system.
+ GitHub #101 (https://github.com/maxmind/libmaxminddb/pull/101).
+ * Added a missing out of memory check when reading a file's metadata.
+ GitHub #101 (https://github.com/maxmind/libmaxminddb/pull/101).
+ * Added several additional checks to make sure that we never attempt
+ to malloc more than SIZE_MAX memory, which would lead to integer
+ overflow. This could only happen with pathological databases.
+ GitHub #101 (https://github.com/maxmind/libmaxminddb/pull/101).
+
-------------------------------------------------------------------
Wed Nov 18 15:15:37 UTC 2015 - p.drouand@gmail.com
diff --git a/libmaxminddb.spec b/libmaxminddb.spec
index 2ee36c5..21b8fff 100644
--- a/libmaxminddb.spec
+++ b/libmaxminddb.spec
@@ -1,7 +1,7 @@
#
# spec file for package libmaxminddb
#
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
Name: libmaxminddb
%define lname libmaxminddb0
-Version: 1.1.2
+Version: 1.2.0
Release: 0
Summary: C library for the MaxMind DB file format
License: Apache-2.0
@@ -103,7 +103,7 @@ rm %buildroot/%_libdir/*.la
%files devel
%defattr(-,root,root)
-%doc Changes.md NOTICE README.md doc/release.md doc/libmaxminddb.md
+%doc Changes.md NOTICE README.md doc/mmdblookup.md doc/libmaxminddb.md
%{_includedir}/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc