[jugglemaster] aajm crash found by mayhem
helmut at subdivi.de
Sat Jul 6 12:05:47 EDT 2013
As it was already posted to a public mailinglist I can share the link:
Since there is no bug report yet, I write my findings here and will
forward them to the bug later.
The crashing invocation can be reduced to "aajm -s -". The -s option is
to specify a pattern and - is an invalid pattern. In fact any invalid
pattern will do. It is passed to jmlib which then calls the error
handler provided by aajm. The error handler in turn prints the error
using aalib. Unfortunately aalib is not yet initialized at the time
arguments are parsed. Boom.
What is the best recourse to fix this?
a) Start without a callback, check errors explicitly and then replace
b) Have a state variable of whether aalib is initialized and let the
If this is going to result in a new jugglemaster release, please also
have a look at whether you can pick some patches from Debian:
More information about the jugglemaster