about summary refs log tree commit diff stats
path: root/apps/crenshaw2-1
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/crenshaw2-1
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/crenshaw2-1')
-rwxr-xr-xapps/crenshaw2-1bin39463 -> 39571 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/apps/crenshaw2-1 b/apps/crenshaw2-1
index 239d70e0..feef8d4b 100755
--- a/apps/crenshaw2-1
+++ b/apps/crenshaw2-1
Binary files differ