I think the idea of open source software is that if you find a bug you are welcome to fix it and contribute the fix back to the community.
An alternative is to report the bug. Last time I came across a bug in Firefox it had already been reported ... something like three years earlier, and was marked with comments along the lines of "I don't feel like fixing this one, it's too difficult".