diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2022-11-22 10:37:05 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-11-22 11:48:19 +0100 |
| commit | 1c8e10bcebe7f39ca238a5dfbd1bd92c9faa39b8 (patch) | |
| tree | e75bc132bcfd3e2613420f779efe33ea8c31680a /prog/encoding_test.go | |
| parent | 1c576c232f825266983096180b3603005edc458e (diff) | |
prog: handle broken base64 strings
Currently it can fail if there's never a closing quote.
Add a test to verify this behavior.
Diffstat (limited to 'prog/encoding_test.go')
| -rw-r--r-- | prog/encoding_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/prog/encoding_test.go b/prog/encoding_test.go index 4cb836922..73c2cabcc 100644 --- a/prog/encoding_test.go +++ b/prog/encoding_test.go @@ -331,6 +331,10 @@ func TestDeserialize(t *testing.T) { In: `test$opt2(0x0) (fail_nth: 0)`, Out: `test$opt2(0x0)`, }, + { + In: `test$str2(&(0x7f0000000000)="$eJwqrqzKTszJSS0CBAAA//8TyQPi`, + Err: `want ", got EOF`, + }, }) } |
