bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: Bug#94207: fmt dumps core with large -w]


From: Herbert Xu
Subject: address@hidden: Bug#94207: fmt dumps core with large -w]
Date: Sat, 28 Apr 2001 16:13:37 +1000
User-agent: Mutt/1.3.15i

This is caused by the overflowing of the COST type.  On linux-i386, int and
long are of the same length, thus defining the COST as long gains nothing.
A maximum width check should be added in main and possibly COST should be
defined to be long long on architectures where sizeof(int) == sizeof(long).
-- 
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <address@hidden>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--- Begin Message --- Subject: Bug#94207: fmt dumps core with large -w Date: Tue, 17 Apr 2001 04:50:00 +0300
Package: textutils
Version: 2.0-3
Severity: minor


(address@hidden) /tmp % fmt -w 100000 < /etc/fstab
[snip output]
zsh: segmentation fault (core dumped)  fmt -w 100000 < /etc/fstab

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux fabulous 2.2.19pre3 #1 Fri Dec 22 04:06:11 EET 2000 i586

Versions of packages textutils depends on:
ii  libc6                         2.2.2-4    GNU C Library: Shared libraries an



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]