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/hex | Bin 42302 -> 42410 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'apps/hex') diff --git a/apps/hex b/apps/hex index 9c91ac4b..71615baa 100755 Binary files a/apps/hex and b/apps/hex differ -- cgit 1.4.1-2-gfad0 s commit Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/subx/028translate.cc
blob: 42b94632344116a3c95a4f927606964c72b745ce (plain) (tree)
1
2
3
4