| Summary: | od core dumps when fed a file with some values | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Randall Hopper <aa8vb> | ||||
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | aa8vb | ||||
| Priority: | Normal | ||||||
| Version: | 3.4-RELEASE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
State Changed From-To: open->closed This appears to be fixed in -current. od -f floats.out doesn't dump core and prints (among many other numbers) two NaNs. |
When fed a file with Nan/Inf/etc. floats, od -f can core dump. An example is attached. This is the front 1KB of a float-only file in big-endian format which, as one would expect, is more likely to trip these odd conditions when read as little-endian. Fix: Unknown. Could just need a little SIGFPE handling. How-To-Repeat: od -f floats.out (see attached datafile)