summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-01-14 14:15:31 +0000
committerJim Meyering <jim@meyering.net>2005-01-14 14:15:31 +0000
commitffa7a7db3d7034696847671b2d118fc3ead35106 (patch)
tree0ebeef374772e2a07189681751eec10ed85fddb6
parent7eff5901c419afb8945bd96a5ed12d196802bc79 (diff)
downloadcoreutils-ffa7a7db3d7034696847671b2d118fc3ead35106.tar.xz
*** empty log message ***
-rw-r--r--ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 314e1c97a..309f90f5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,15 @@
* Version 5.3.1.
+ * src/expr.c (toarith): Rewrite to detect/diagnose integer overflow,
+ rather than suffering silently.
+ Before, expr would silently overflow and wrap around:
+ $ expr 9223372036854775808 = 0 # $(echo 2^63|bc)
+ 1
+ Now it detects the problem and exits nonzero:
+ $ ./expr $(echo 2^63|bc) = 0
+ ./expr: 9223372036854775808: integer is too large
+
* tests/chown/separator (id_gn): Exit 77, not 1, for a test-framework
failure, so that doesn't cause `make check' to stop. Nelson Beebe
reported that this test would fail with this diagnostic