| Summary: | konqueror crashes viewing directory with specific (corrupted?) mp3 file present | ||
|---|---|---|---|
| Product: | [Unmaintained] taglib | Reporter: | Hans Honecker <hans.honecker> |
| Component: | general | Assignee: | Scott Wheeler <wheeler> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | maksim |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Hans Honecker
2004-06-11 12:37:41 UTC
I confirmed this bug on a second computer. Both computers I tested this bug on where set up using SuSE Linux 9.1 with different configurations and are different in speed. The second crashes much faster ;-) wheels: backtraces show crashes inside TagLib CVS commit by wheeler: Ah, this one's easy -- though an odd corer case; there's a Xing header here but no MPEG frames. This was triggering a divide by zero. CCMAIL:83210-done@bugs.kde.org M +1 -1 mpegproperties.cpp 1.12 --- kdesupport/taglib/mpeg/mpegproperties.cpp #1.11:1.12 @@ -193,5 +193,5 @@ void MPEG::Properties::read() timePerFrame = timePerFrame / firstHeader.sampleRate(); d->length = int(timePerFrame * xingHeader.totalFrames()); - d->bitrate = xingHeader.totalSize() * 8 / d->length / 1000; + d->bitrate = d->length == 0 ? 0 : xingHeader.totalSize() * 8 / d->length / 1000; } |