roland, try replacing _ast_iconv_move() in src/lib/libast/comp/iconv.c with the attached code -- the old code had trouble all over the place
the new code should handle all mmap() boundaries I'll test it against truly invalid byte sequences on mmap boundaries later today On Tue, 16 Apr 2013 23:03:41 +0200 Roland Mainz wrote: > On Wed, Apr 10, 2013 at 1:57 PM, Roland Mainz <[email protected]> > wrote: > > On Wed, Apr 10, 2013 at 1:32 PM, Roland Mainz <[email protected]> > > wrote: > >> [CC:'ing Werner since this is i18n related and was only observed on > >> SuSE 12.3 Linux for now...] > >> > >> Attached (as "astksh20130409_suse123_32bit_builtin_iconv_hang1.txt.gz") > >> is a (compressed) text file which causes the AST "iconv" builtin > >> utility from ast-ksh.2013-04-09 to "hang" in an endless loop in 32bit > >> i386 builds (AMD64 64bit builds are OK... *ONLY* the 32bit builds loop > >> forever...). > >> > >> Example: > >> -- snip -- > >> $ gunzip astksh20130409_suse123_32bit_builtin_iconv_hang1.txt.gz > >> $ LC_ALL=en_US.UTF-8 ../build_i386_32bit_debug/arch/linux.i386/bin/ksh > >> -c 'builtin iconv ; iconv -f UTF-8 > >> /tmp/astksh20130409_suse123_32bit_builtin_iconv_hang1.txt >/tmp/zzz2 ; > >> true' > >> <hangs forever> > >> -- snip --
_ast_iconv_move.c
Description: application/cc
_______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
