Ticket #227 (closed defect: fixed)
[PATCH] Improvements to padsp to fix various issues (e.g. amsn crash)
| Reported by: | coling | Owned by: | lennart |
|---|---|---|---|
| Milestone: | Component: | daemon | |
| Keywords: | Cc: |
Description
Originally reported via Mandriva Bugzilla.
It seems that some apps have issues with the way the functions overridden in padsp operate. e.g. amsn crashes.
In the code, there are some comments about how Firefox needs this response to not crash etc. It seems to me that the more sensible option is to rely on the original method in all cases that we cannot handle and thus any special handling like this should not be required.
This patch makes these changes and also fixes some undefined behaviour when compiling with non-glibc backends (due to the fact that vsprintf may not handle NULLs nicely - see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25609).
In our testing it fixes issues in amsn and does not have any adverse affect on firefox when testing.
This could be related to #27.
