blob: c3e97c395974558980e9f88eee5925da13c5b1de [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
encode_failure("StringExceedsLimit") {
// TODO(fxbug.dev/37304) Enforce size bounds in rust
bindings_denylist = [rust, dart],
value = Length2StringWrapper {
length_2_string: "abc", // exceeds the string length
},
err = STRING_TOO_LONG,
}
decode_failure("NonEmptyStringWithNullPtrBody") {
type = StringWrapper,
bytes = {
v1 = [
0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // length of string data
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // invalid null pointer to content
],
},
err = NON_EMPTY_STRING_WITH_NULL_BODY,
}