bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] workaround for libiconv-1.11 tests failure on Solaris


From: anirkko
Subject: [bug-gnu-libiconv] workaround for libiconv-1.11 tests failure on Solaris (Solaris printf bug)
Date: Mon, 23 Apr 2007 21:34:57 +0200 (MET DST)

Hi
The libiconv-1.11 tests (gmake check) fail with Solaris in the
test "tests/check-subst" on line 51 with the printf command
because there seems to be a bug in Solaris /bin/printf (verified
for Solaris 2.6, Solaris 8, Solaris 9), which makes it Segfault.

Workaround:
instead of
printf 'B<0x%010000x><0x%010000x>se B<0x%010000x><0x%010000x>bchen\n' 0xC3 0xB6 
0xC3 0xBC > tmp-ok

use:
printf 'B<0x%09998x%02x><0x%09998x%02x>se 
B<0x%09998x%02x><0x%09998x%02x>bchen\n' 0x00 0xC3 0x00 0xB6 0x00 0xC3 0x00 0xBC 
> tmp-ok

Note that it doesn't seem to be a simple buffer overflow; for example
<0x%05000x%05000x> crashes just as well as <0x%010000x>, whereas the
above <0x%09998x%02x> works fine; it seems to depend on the number
of trailing zeroes in the format???!!!

Greetings
Arto





reply via email to

[Prev in Thread] Current Thread [Next in Thread]