[Pianod] select_nobody_user bug in pianod-150?

Perette Barella perette at barella.org
Sun Nov 3 06:04:04 PST 2013


Uninitialized variable—sweet.  Good find, Gary, thanks.  r151 is in SVN; I’m building a release now.  This is sufficiently bad and sufficiently small I’m going to make it a general release.

Perette



On 2013年11月03日, at 1:18, Gary Koch <garyckoch at att.net> wrote:

> I recently installed pianod-150 on an Atom system running Arch Linux.  pianod worked great under my user account, but refused to start when started as root (systemctl start or sudo).  It would alternatively display “select_nobody_user: calloc” or “select_nobody_user: realloc” messages and exit.  I did some debugging, and figured out that the requested size passed to realloc and calloc (nobody_groups_size) was obviously wrong - very large, and often negative.  I changed line 83 of src/settings.c to initialize nobody_groups_size to 0 and the problems went away.
> 
> Gary Koch




More information about the Pianod mailing list