Bug 433756
| Summary: | timidity++ -d0 crashes | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Andrew Bartlett <abartlet> | ||||||
| Component: | timidity++ | Assignee: | Jindrich Novy <jnovy> | ||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | rawhide | CC: | hdegoede, pknirsch | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2008-02-21 12:13:23 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Andrew Bartlett
2008-02-21 10:16:50 UTC
Created attachment 295494 [details]
Patch to fix the segfault
Created attachment 295495 [details]
patch for the spec file too!
The spec file patch was not cleanly applicable due to recent changes to timidity++ so I modified it. Maybe a better solution would be to originally strdup the constant string otherwise the dynamic_lib_root value would be leaked. I rewrote your patch to accomodate that. Thanks! Commenting only in the interests of computer science: How would we have a leak? We can certainly use more memory - if we always keep two copies of the string - the static const default string, and the strdup() default copy. The only 'leak' I can see is if a user specifies -d twice, and if they do that, they get what they deserve :-) It's better to add code that is safe by principle than code that is safe only after some assumptions if it is not hard or performance problematic. Consider that upstream may change the code in a way that it uses dynamic_lib_root on some other places than now, the problem you describe is still fixed, but leaks could have been silently introduced. |