commit | 0bd1e771185485960b990537eb3817ae4bb206ae | [log] [tgz] |
---|---|---|
author | Bruno Dal Bo <brunodalbo@google.com> | Wed Nov 27 14:22:10 2019 -0800 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Tue Dec 03 19:02:29 2019 +0000 |
tree | 0ea78c106c15ef64277fbafa316ce8a2643a765c | |
parent | 68d2a19995a6b8e64740a6bcaa34f0004cabc2b2 [diff] |
[fidl][go] Fix unmarshal enums that are uint8 - Encoding a vector of enums sized to uint8 would cause a panic. - Problem stems from the fact that the reflect.Type.Kind() value was used to determine acceleration to encode/decode byte slices. Test: Added test that encodes and decodes a vector of enums sized to uint8. Fixes: 42200 Change-Id: I2b736985c5719502a6507b2a76e031e7e50b685b
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.