Manuel Laínz <mla...@gmail.com> writes:

> I get this:
> #10 0x00007f2d89fcd07f in ___vsprintf_chk (s=0x7ffd889939e0 "Juego de
> fichas para movimientos posteriores en simulaciones de lanzamientos (para
> el jugador 0) usará ruido pseudo-aleatorio.\216pb\265z\340U", flags=1,
> slen=128, format=0x7f2d866afc46 <error: Cannot access memory at address
> 0x7f2d866afc46>, args=args@entry=0x7ffd88993870) at vsprintf_chk.c:83
> #11 0x00007f2d89fccfaa in ___sprintf_chk (s=<optimized out>,
> flags=<optimized out>, slen=<optimized out>, format=<optimized out>) at
> sprintf_chk.c:31

Thanks, that's exactly what I needed.  I should have thought to test with
locales.  The problem is that gnubg is allocating a static buffer to hold
one of its output messages, and the Spanish translation is long enough
that it's overflowing the buffer.

If you change your locale when running gnubg, that will fix the problem
(LC_ALL=C.UTF-8 gnubg), at the cost of losing the translations.

I'll fix this for unstable and will see about getting a targeted fix into
stable as well, although it won't go out, at best, until the next point
release.

-- 
Russ Allbery (r...@debian.org)               <http://www.eyrie.org/~eagle/>

Reply via email to