Bug#679826: zsnes: segfaults on start in testing i386

Etienne Millon etienne.millon at gmail.com
Tue Jul 3 09:32:11 UTC 2012


> My first idea was to check if strlen(format->matrix) is within
> reasonable boundaries, before using it to allocate memory.

I think that it's perfectly reasonable for libao to segfault in such a
case. That's the same when one passes an invalid pointer to strlen or
such a function with a "strong" invariant : the caller is responsible.

> The only real mystery remaining is why zsnes hasn't been reported to
> die like this before now ...

The mysteries of stack layout... Maybe the previous stack frame
held zeroes at the correct offset on i386.

-- 
Etienne Millon





More information about the Pkg-games-devel mailing list