Your message dated Fri, 07 Dec 2012 20:48:24 +0000
with message-id <e1th4qo-0004lj...@franck.debian.org>
and subject line Bug#695024: fixed in stringencoders 3.10.3-2
has caused the Debian Bug report #695024,
regarding stringencoders: FTBFS on some platforms (testsuite, char casting)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
695024: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695024
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: stringencoders
Version: 3.10.3-1
Severity: serious
Tags: upstream patch

Hi,

stringencoders fails to build from source on some platforms, including armel,
powerpc and s390 because of bad casting from -1 to 255 in the testsuite:

[...]
make[1]: Leaving directory 
`/build/buildd-stringencoders_3.10.3-1-powerpc-His7AR/stringencoders-3.10.3'
   dh_auto_test -a
make[1]: Entering directory 
`/build/buildd-stringencoders_3.10.3-1-powerpc-His7AR/stringencoders-3.10.3'
test/modp_b16_test.c ........OK (8 tests)
make[1]: *** [unittest] Error 1
dh_auto_test: make -j1 test returned exit code 2
test/modp_b64_test.c .ASSERTION FAILED: test/modp_b64_test.c:34
make[1]: Leaving directory 
`/build/buildd-stringencoders_3.10.3-1-powerpc-His7AR/stringencoders-3.10.3'
make: *** [build-arch] Error 29
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
[...]

(See also the buildd logs)

Attaching a patch that fixes this, testing 255 instead of -1 on values that
were originally initialized as 255.

Thanks,

Roland


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Description: Fix compile error on some platforms
 stringencoders fails to build from source on some platforms, including armel,
 powerpc and s390 because of bad casting from -1 to 255 in the testsuite. This
 patch fixes this, testing 255 instead of -1 on values that were originally
 initialized as 255.
Author: Roland Stigge <sti...@antcom.de>

---
 test/modp_b64_test.c |   18 +++++++++---------
 test/modp_b85_test.c |   12 ++++++------
 2 files changed, 15 insertions(+), 15 deletions(-)

--- stringencoders-3.10.3.orig/test/modp_b64_test.c
+++ stringencoders-3.10.3/test/modp_b64_test.c
@@ -16,7 +16,7 @@ static char* testEndian()
 {
     // this test that "1" is "AAAB"
     char buf[100];
-    char result[10];
+    unsigned char result[10];
     char endian[] = {(char)0, (char)0, (char)1};
     int d = modp_b64_encode(buf, endian, 3);
     mu_assert_int_equals(4, d);
@@ -31,7 +31,7 @@ static char* testEndian()
     mu_assert_int_equals(0, result[0]);
     mu_assert_int_equals(0, result[1]);
     mu_assert_int_equals(1, result[2]);
-    mu_assert_int_equals(-1, result[3]);
+    mu_assert_int_equals(255, result[3]);
 
     return 0;
 }
@@ -70,7 +70,7 @@ static char* testPadding()
     char msg[100];
     const char ibuf[6] = {1,1,1,1,1,1};
     char obuf[10];
-    char rbuf[10];
+    unsigned char rbuf[10];
     int d = 0;
 
     // 1 in, 4 out
@@ -83,7 +83,7 @@ static char* testPadding()
     d = modp_b64_decode(rbuf, obuf, d);
     mu_assert_int_equals_msg(msg, 1, d);
     mu_assert_int_equals(1, rbuf[0]);
-    mu_assert_int_equals(-1, rbuf[1]);
+    mu_assert_int_equals(255, rbuf[1]);
 
     // 2 in, 4 out
     memset(obuf, 255, sizeof(obuf));
@@ -96,7 +96,7 @@ static char* testPadding()
     mu_assert_int_equals_msg(msg, 2, d);
     mu_assert_int_equals_msg(msg, 1, rbuf[0]);
     mu_assert_int_equals_msg(msg, 1, rbuf[1]);
-    mu_assert_int_equals_msg(msg, -1, rbuf[2]);
+    mu_assert_int_equals_msg(msg, 255, rbuf[2]);
 
     // 3 in, 4 out
     memset(obuf, 255, sizeof(obuf));
@@ -110,7 +110,7 @@ static char* testPadding()
     mu_assert_int_equals_msg(msg, 1, rbuf[0]);
     mu_assert_int_equals_msg(msg, 1, rbuf[1]);
     mu_assert_int_equals_msg(msg, 1, rbuf[2]);
-    mu_assert_int_equals_msg(msg, -1, rbuf[3]);
+    mu_assert_int_equals_msg(msg, 255, rbuf[3]);
 
     // 4 in, 8 out
     memset(obuf, 255, sizeof(obuf));
@@ -125,7 +125,7 @@ static char* testPadding()
     mu_assert_int_equals(1, rbuf[1]);
     mu_assert_int_equals(1, rbuf[2]);
     mu_assert_int_equals(1, rbuf[3]);
-    mu_assert_int_equals(-1, rbuf[4]);
+    mu_assert_int_equals(255, rbuf[4]);
 
     // 5 in, 8 out
     memset(obuf, 255, sizeof(obuf));
@@ -141,7 +141,7 @@ static char* testPadding()
     mu_assert_int_equals(1, rbuf[2]);
     mu_assert_int_equals(1, rbuf[3]);
     mu_assert_int_equals(1, rbuf[4]);
-    mu_assert_int_equals(-1, rbuf[5]);
+    mu_assert_int_equals(255, rbuf[5]);
 
     // 6 in, 8 out
     memset(obuf, 255, sizeof(obuf));
@@ -158,7 +158,7 @@ static char* testPadding()
     mu_assert_int_equals(1, rbuf[3]);
     mu_assert_int_equals(1, rbuf[4]);
     mu_assert_int_equals(1, rbuf[5]);
-    mu_assert_int_equals(-1, rbuf[6]);
+    mu_assert_int_equals(255, rbuf[6]);
 
     return 0;
 }
--- stringencoders-3.10.3.orig/test/modp_b85_test.c
+++ stringencoders-3.10.3/test/modp_b85_test.c
@@ -16,7 +16,7 @@ static char* testEndian()
 {
     // this test that "1" is "!!!!#"
     char buf[100];
-    char result[10];
+    unsigned char result[10];
     char endian[] = {(char)0, (char)0, (char)0, (char)1};
     int d = modp_b85_encode(buf, endian, 4);
     mu_assert_int_equals(5, d);
@@ -33,7 +33,7 @@ static char* testEndian()
     mu_assert_int_equals(0, result[1]);
     mu_assert_int_equals(0, result[2]);
     mu_assert_int_equals(1, result[3]);
-    mu_assert_int_equals(-1, result[4]);
+    mu_assert_int_equals(255, result[4]);
 
     return 0;
 }
@@ -83,9 +83,9 @@ static char* testBadCharDecode()
 
 static char* testEncodeDecode()
 {
-    char ibuf[10]; /* input */
-    char obuf[10]; /* output */
-    char rbuf[10]; /* final result */
+    unsigned char ibuf[10]; /* input */
+    unsigned char obuf[10]; /* output */
+    unsigned char rbuf[10]; /* final result */
     int d;
     int i,j,k,l;
     for (i = 0; i < 256; ++i) {
@@ -107,7 +107,7 @@ static char* testEncodeDecode()
                     mu_assert_int_equals(ibuf[1], rbuf[1]);
                     mu_assert_int_equals(ibuf[2], rbuf[2]);
                     mu_assert_int_equals(ibuf[3], rbuf[3]);
-                    mu_assert_int_equals(-1, rbuf[4]);
+                    mu_assert_int_equals(255, rbuf[4]);
                 }
             }
         }

--- End Message ---
--- Begin Message ---
Source: stringencoders
Source-Version: 3.10.3-2

We believe that the bug you reported is fixed in the latest version of
stringencoders, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 695...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lennart Weller <l...@ring0.de> (supplier of updated stringencoders package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 06 Dec 2012 21:38:27 +0100
Source: stringencoders
Binary: libmodpbase64-0 libmodpbase64-dev libmodpbase64-dbg
Architecture: source amd64
Version: 3.10.3-2
Distribution: unstable
Urgency: low
Maintainer: Lennart Weller <l...@ring0.de>
Changed-By: Lennart Weller <l...@ring0.de>
Description: 
 libmodpbase64-0 - collection of high performance c-string transformations
 libmodpbase64-dbg - debugging symbols for stringencoders
 libmodpbase64-dev - collection of high performance c-string transformations 
(developm
Closes: 695024
Changes: 
 stringencoders (3.10.3-2) unstable; urgency=low
 .
   * Fix for build from source errors on some architectures. (Closes: #695024)
Checksums-Sha1: 
 e84a742811c2d143ee037f6133fcbde84963b100 2092 stringencoders_3.10.3-2.dsc
 7b61048f24e1ab7275d9c80323952dcc14bfcddd 4422 
stringencoders_3.10.3-2.debian.tar.gz
 b40d5409086293aeddf7cfa03571624a87bd548a 16336 
libmodpbase64-0_3.10.3-2_amd64.deb
 2e2199877b22b847c76f55a421673add0bb82574 8008 
libmodpbase64-dev_3.10.3-2_amd64.deb
 7461cf0d3aecf90299ab666452cde7b41466df91 13926 
libmodpbase64-dbg_3.10.3-2_amd64.deb
Checksums-Sha256: 
 4375b6904820be7f24a66db4b343f5f3bb5ba2ddf4831ae19b48c01972b84a4e 2092 
stringencoders_3.10.3-2.dsc
 98e232dfb8c5999143a7f083aa1baf7e80a2e34be0daaff9b89bae953291bea8 4422 
stringencoders_3.10.3-2.debian.tar.gz
 426b9787fd9dc0c20e2e6f86182f78177a8b695598fda0824e827906824ff5ff 16336 
libmodpbase64-0_3.10.3-2_amd64.deb
 cf7edae96b6592d378481acb0ee64e1f660102c3c8530941a657d99c45ce38e1 8008 
libmodpbase64-dev_3.10.3-2_amd64.deb
 0bb0039d3ce8cb0779fc338fae5376d07de614b65cef832ba04e21b6252c1391 13926 
libmodpbase64-dbg_3.10.3-2_amd64.deb
Files: 
 dca40a3f05a7ac184db831ec7c5ff506 2092 libs extra stringencoders_3.10.3-2.dsc
 e99062f50795af6e1c65c9225b34e6bc 4422 libs extra 
stringencoders_3.10.3-2.debian.tar.gz
 21a0b37a449c3911160da0e8065026a2 16336 libs extra 
libmodpbase64-0_3.10.3-2_amd64.deb
 1b165c5b5b3f3ac720ee0c7158a40e94 8008 libdevel extra 
libmodpbase64-dev_3.10.3-2_amd64.deb
 bbbfc2798548146023686794b36aba69 13926 debug extra 
libmodpbase64-dbg_3.10.3-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJQwkrPAAoJENju1/PIO/qaXhEQAJvfv1UXcAHNVXRrO2kHmnKm
6X5zTAvP9Rz+JXgQHpdX5BPVKJfRisqXayJYz9FUZNFun64fJl+Am0jzmjwAc2EH
HCYVOQOiVZ1XfHsvEPkbUX30bXdpW22MmGTupBZqoYLjIhws5fCHcSluvoLK0Btw
JnsqieGmsBzXwAB9f4ev5tf3HwcnyQID77ssTz0N0lDQrUCQohrVS9hLeZt3ql1s
S4IEtTBcOUEYS2icLdEJiozBUt21WCKDbd8CkEJtnROcg+s6ulLdDBCDSu4EZDm0
RgeCLzHND5MoFIrgQKmXXj7szXsfe1tYAvvkcemFoKzfXxbougXWsi4njGLTsylR
oNxVkN3PemeWCU1shEAkVTcdFjsjLi813mUGvKjvW+EUmWy5tWHeJ+CeEXiDq8L/
vcjMjVHVWYDr8oNG0a12XWlxCU76KkG34oJePlQWfpK9WKPG+0RO1KX4+tOprJzg
TNT44myOEQTLLJ8a/lb1o3MVfOYJ1c9ygXdXgvMKRhoZwp4Aw6iimS+Mv2fEHA8+
VOkqywxIwKQA/fb0fIbUAxJ9oIcUrndZGOJxi+TZZL2dkIL1DiNYqVYCeyedlLzD
hk4yYfTisqjriJjQQZ1p/T83MrH+4PUSvJyUZqKCJ4/MEzJytQMzTOKClQ+S0AGJ
srmOnsgIjQh1yofRmLN7
=oKT6
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to