blob: fa3881bc6ca102366488fc7b45d3c03783b02148 [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") {
// TODO(fxbug.dev/72895): Fix C/C++ bindings.
bindings_denylist = [fuzzer_corpus],
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,
}