Skip to content

Commit c3abcc5

Browse files
committed
Merge branch 'develop'
2 parents 5ecf42f + f330a90 commit c3abcc5

File tree

7 files changed

+18
-8
lines changed

7 files changed

+18
-8
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 4.1.2
2+
=============
3+
* Fix buffer overflow bug in the swift reading code (thanks Alistair).
4+
15
Version 4.1.1
26
=============
37
* Fix bad version numbering of installed libwandder.so

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WANDIO 4.1.1
1+
WANDIO 4.1.2
22

33
---------------------------------------------------------------------------
44
Copyright (c) 2007-2019 The University of Waikato, Hamilton, New Zealand.

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# Now you only need to update the version number in two places - below,
44
# and in the README
55

6-
AC_INIT([wandio],[4.1.1],[contact@wand.net.nz],[wandio])
6+
AC_INIT([wandio],[4.1.2],[contact@wand.net.nz],[wandio])
77

88
WANDIO_MAJOR=4
99
WANDIO_MID=1
10-
WANDIO_MINOR=1
10+
WANDIO_MINOR=2
1111

1212
# OpenSolaris hides libraries like libncurses in /usr/gnu/lib, which is not
1313
# searched by default - add it to LDFLAGS so we at least have a chance of

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
libwandio1 (4.1.2-1) unstable; urgency=medium
2+
3+
* Fix swift buffer overflow bug
4+
5+
-- Shane Alcock <salcock@waikato.ac.nz> Wed, 06 Mar 2019 13:07:02 +1300
6+
17
libwandio1 (4.1.1-1) unstable; urgency=medium
28

39
* Fix bad version number for installed .so

lib/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ libwandio_la_SOURCES=wandio.c ior-peek.c ior-stdio.c ior-thread.c \
7373

7474
AM_CPPFLAGS = @ADD_INCLS@
7575
libwandio_la_LIBADD = @LIBWANDIO_LIBS@
76-
libwandio_la_LDFLAGS=-version-info 5:1:1 @ADD_LDFLAGS@
76+
libwandio_la_LDFLAGS=-version-info 5:2:1 @ADD_LDFLAGS@
7777

lib/swift-support/keystone.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ static size_t auth_header_cb(char *buf, size_t size, size_t nmemb, void *data) {
8585
keystone_auth_token_t *token = (keystone_auth_token_t *)data;
8686
size_t buflen = size * nmemb;
8787
char *p;
88-
int chomplen = 0;
88+
size_t chomplen = 0;
8989
int token_len = 0;
9090

9191
if (buflen > strlen(TOKEN_HDR) &&
9292
strncmp(buf, TOKEN_HDR, strlen(TOKEN_HDR)) == 0) {
9393
// figure out how much trailing garbage there is (e.g., newline)
9494
// apparently it is possible that there will be none
95-
p = buf + buflen;
96-
while (*p == '\0' || *p == '\n' || *p == '\r') {
95+
p = buf + buflen - 1;
96+
while ((chomplen < buflen) && (*p == '\0' || *p == '\n' || *p == '\r')) {
9797
p--;
9898
chomplen++;
9999
}

rpm/libwandio1.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: libwandio1
2-
Version: 4.1.0
2+
Version: 4.1.2
33
Release: 1%{?dist}
44
Summary: C Multi-Threaded File Compression and Decompression Library
55

0 commit comments

Comments
 (0)