Paul de Weerd <[EMAIL PROTECTED]> wrote:

> I just noticed that my OpenBSD system's figlet(6), as installed from
> /usr/ports/misc/figlet/, dumps core with a Segmentation fault :
> 
> $ figlet hoi
> Segmentation fault (core dumped)
> 
> I think this is caused by some change in OpenBSD. I have, however,
> no clue where to look.

It's a case of mmap malloc uncovering a bug.  Basically, figlet
allocates an array with malloc() and then accesses array[-1], which
happens to be unmapped memory.  The problem is in the "smushing"
code, figlet -W works fine.

-- 
Christian "naddy" Weisgerber                          [EMAIL PROTECTED]

Reply via email to