Hi everyone,

There is an issue in the cheetah plugin when using the command : "config"
In the case that the property "Listen" is commented in the monkey.conf file.

# Listen 127.0.0.1

In this case  MK_DEFAULT_LISTEN_ADDR constant in mk_config.h  is set to
null which is fine.
But in the cheetah plugin area : file: "cmd.h" the function
mk_cheetah_cmd_config() make this call:

  if (strcmp(mk_api->config->listen_addr, "0.0.0.0") == 0)

as listen_addr is null in this case and strcmp behaviour is apparently not
insured, when passing null this action result to a segfault,
and an impossibility to restart the cheetah shell.

Now I see 2 solutions which are setting MK_DEFAULT_LISTEN_ADDR to something
else like "Localhost" or
adding an other check on the plugin side to see if listen_addr is null.

------------

This project caugh my interest and I also would like to contribute, I found
out that finding a small bug would be a starting point,
but fixing it would be better.

By the way I'm Jean-Paul a french living in Ireland and interested about
learning ;)
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to