about summary refs log tree commit diff stats
path: root/apps/survey
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-19 17:36:50 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-19 17:37:11 -0800
commit622f1be099f434f89819876d1931f80c1a3e47e7 (patch)
treeed1f70c33ddbb5f64c89b2a63c617cfeb51130ef /apps/survey
parent6070c23e5e1c60d3bb169e43bddfa59b1d322427 (diff)
downloadmu-622f1be099f434f89819876d1931f80c1a3e47e7.tar.gz
5898 - strengthen slice-empty? check
Anytime we create a slice, the first check tends to be whether it's empty.
If we handle ill-formed slices here where start > end, that provides a
measure of safety.

In the Mu translator (mu.subx) we often check for a trailing ':' or ','
and decrement slice->end to ignore it. But that could conceivably yield
ill-formed slices if the slice started out empty. Now we make sure we never
operate on such ill-formed slices.
Diffstat (limited to 'apps/survey')
-rwxr-xr-xapps/surveybin49296 -> 49404 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/apps/survey b/apps/survey
index 386a49c7..33669c5b 100755
--- a/apps/survey
+++ b/apps/survey
Binary files differ