maemo.org Bugzilla – Bug 10025
alarmd 1.1.13 does not correctly replace [COOKIE] in exec strings
Last modified: 2012-01-21 21:29:43 UTC
You need to log in before you can comment on or make changes to this bug.
When using an alarm with the following code: action->flags |= ALARM_ACTION_WHEN_TRIGGERED; action->flags |= ALARM_ACTION_TYPE_EXEC; action->flags |= ALARM_ACTION_EXEC_ADD_COOKIE; alarm_action_set_exec_command(action, "/usr/bin/ui-alarm -c [COOKIE] -d"); The application gets called with wrong arguments. This is due to a wrong format string in src/server.c:server_action_do_exec(), line 1253: asprintf(&tmp, "%*s%d%s", (int)(hit-cmd), cmd, (int)event->ALARMD_PRIVATE(cookie), hit + sizeof tag - 1); The correct version is: asprintf(&tmp, "%.*s%d%s", (int)(hit-cmd), cmd, (int)event->ALARMD_PRIVATE(cookie), hit + sizeof tag - 1); Please fix this minor bug for the next release.
Hi Michael, thanks for reporting this!
Very unlikely that this will get fixed for the next release according to Nokia management.
How comes? What’s the reasoning for that?
I was no reason given. Please contact Nokia.
Sorry that I have to ask again: Does "This will not get fixed in the next release" mean that it will instead get fixed in the release after that one? Or does it mean that Nokia does not care at all about fixing such a *minor* bug like one missing dot in a format string?
(In reply to comment #5) > Sorry that I have to ask again: Does "This will not get fixed in the next > release" mean that it will instead get fixed in the release after that one? I don't know. All I know from internal Nokia comments is that it won't be in the next public release. I am not aware of Nokia's *general* plans on Maemo updates as that's up to Nokia. And that's annoying, I know. :-/
Cloned for the CSSU project as bug 12560.