From 622f1be099f434f89819876d1931f80c1a3e47e7 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 19 Jan 2020 17:36:50 -0800 Subject: 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. --- apps/assort | Bin 40055 -> 40163 bytes apps/braces | Bin 41749 -> 41857 bytes apps/calls | Bin 46459 -> 46567 bytes apps/crenshaw2-1 | Bin 39463 -> 39571 bytes apps/crenshaw2-1b | Bin 40010 -> 40118 bytes apps/dquotes | Bin 43705 -> 43813 bytes apps/factorial | Bin 38482 -> 38590 bytes apps/handle | Bin 39380 -> 39488 bytes apps/hex | Bin 42302 -> 42410 bytes apps/mu | Bin 80108 -> 80216 bytes apps/pack | Bin 52447 -> 52555 bytes apps/sigils | Bin 54134 -> 54242 bytes apps/survey | Bin 49296 -> 49404 bytes apps/tests | Bin 38853 -> 38961 bytes 14 files changed, 0 insertions(+), 0 deletions(-) (limited to 'apps') diff --git a/apps/assort b/apps/assort index d01f02bd..76e175d5 100755 Binary files a/apps/assort and b/apps/assort differ diff --git a/apps/braces b/apps/braces index a096d0c6..144ee6fe 100755 Binary files a/apps/braces and b/apps/braces differ diff --git a/apps/calls b/apps/calls index 05ba61ef..d8e95bcd 100755 Binary files a/apps/calls and b/apps/calls differ diff --git a/apps/crenshaw2-1 b/apps/crenshaw2-1 index 239d70e0..feef8d4b 100755 Binary files a/apps/crenshaw2-1 and b/apps/crenshaw2-1 differ diff --git a/apps/crenshaw2-1b b/apps/crenshaw2-1b index 259bda92..16591ef0 100755 Binary files a/apps/crenshaw2-1b and b/apps/crenshaw2-1b differ diff --git a/apps/dquotes b/apps/dquotes index db166f7a..9d1dabf3 100755 Binary files a/apps/dquotes and b/apps/dquotes differ diff --git a/apps/factorial b/apps/factorial index 19772bad..b9e7d7be 100755 Binary files a/apps/factorial and b/apps/factorial differ diff --git a/apps/handle b/apps/handle index d9fc3aa9..30310ff3 100755 Binary files a/apps/handle and b/apps/handle differ diff --git a/apps/hex b/apps/hex index 9c91ac4b..71615baa 100755 Binary files a/apps/hex and b/apps/hex differ diff --git a/apps/mu b/apps/mu index 23497954..a298670a 100755 Binary files a/apps/mu and b/apps/mu differ diff --git a/apps/pack b/apps/pack index fef9cef2..56575b68 100755 Binary files a/apps/pack and b/apps/pack differ diff --git a/apps/sigils b/apps/sigils index 402e3af1..7b72e401 100755 Binary files a/apps/sigils and b/apps/sigils differ diff --git a/apps/survey b/apps/survey index 386a49c7..33669c5b 100755 Binary files a/apps/survey and b/apps/survey differ diff --git a/apps/tests b/apps/tests index 729a3f9e..7941b9f0 100755 Binary files a/apps/tests and b/apps/tests differ -- cgit 1.4.1-2-gfad0