aboutsummaryrefslogtreecommitdiff
path: root/bugs-fixed/fmt-overflow.awk
diff options
context:
space:
mode:
authorCody Peter Mello <melloc@writev.io>2018-09-14 19:56:34 -0700
committerCody Peter Mello <melloc@writev.io>2018-09-14 19:56:34 -0700
commite059b3b197ce7da33b8b0b3529af65fb85b25186 (patch)
tree7ced5f2f57c2c38870d8c85e7b720f0ab71f4f17 /bugs-fixed/fmt-overflow.awk
parent2dc7e5ff1a4feeeb549f32706cf34e17aba89192 (diff)
downloadone-true-awk-e059b3b197ce7da33b8b0b3529af65fb85b25186.tar.gz
Protect against overflowing during OFMT/CONVFMT conversions
Diffstat (limited to 'bugs-fixed/fmt-overflow.awk')
-rw-r--r--bugs-fixed/fmt-overflow.awk1
1 files changed, 1 insertions, 0 deletions
diff --git a/bugs-fixed/fmt-overflow.awk b/bugs-fixed/fmt-overflow.awk
new file mode 100644
index 0000000..bf5877e
--- /dev/null
+++ b/bugs-fixed/fmt-overflow.awk
@@ -0,0 +1 @@
+BEGIN { OFMT = "%.1000f"; print 1.25; }