From d5405c4db138e814b6ca56c33b741210c544cd8e Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Mon, 10 Aug 2020 11:08:43 -0500 Subject: [PATCH] basic: input validation, array bounds check --- css/ui.css | 10 ++++- index.html | 2 +- presets/basic/sieve.bas | 9 ++-- src/common/basic/compiler.ts | 17 ++++--- src/common/basic/run.ts | 22 +++++++-- src/common/basic/runtime.ts | 86 ++++++++++++++++++++++++++---------- src/common/teletype.ts | 9 +++- src/platform/basic.ts | 7 +-- 8 files changed, 116 insertions(+), 46 deletions(-) diff --git a/css/ui.css b/css/ui.css index 30d52329..4bf0d917 100644 --- a/css/ui.css +++ b/css/ui.css @@ -600,17 +600,23 @@ div.asset_toolbar { flex-shrink: 0; } .transcript-line { - line-height: 1.5; + line-height: 1.5em; min-height: 1em; white-space: pre-wrap; } +.transcript-fanfold > .transcript-line { + min-height: 1.5em; +} +.transcript-fanfold > .transcript-line:nth-child(even) { + background: RGBA(225,245,225,1.0); +} .transcript-style-1 { font-style: italic; } .transcript-style-2 { white-space: pre-wrap; /* css-3 */ font-family: "Andale Mono", "Menlo", "Lucida Console", monospace; - line-height: 1; + line-height: 1em; min-height: 0; } .transcript-style-4 { diff --git a/index.html b/index.html index 302be48e..5b4af060 100644 --- a/index.html +++ b/index.html @@ -214,7 +214,7 @@ if (window.location.host.endsWith('8bitworkshop.com')) {