Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ruby] reflection on a repeated field yields an incorrect value or SEGV #8325

Closed
qnighy opened this issue Feb 22, 2021 · 1 comment · Fixed by #8330
Closed

[Ruby] reflection on a repeated field yields an incorrect value or SEGV #8325

qnighy opened this issue Feb 22, 2021 · 1 comment · Fixed by #8330
Assignees

Comments

@qnighy
Copy link
Contributor

qnighy commented Feb 22, 2021

What version of protobuf and what language are you using?
Version: 3.15.1
Language: Ruby

What operating system (Linux, Windows, ...) and version?
macOS and Linux

What runtime / compiler are you using (e.g., python version or gcc version)

What did you do?

Run the following:

require 'google/protobuf'
require 'google/protobuf/struct_pb'
p Google::Protobuf::ListValue.descriptor.lookup("values").get(Google::Protobuf::ListValue.new(values: [Google::Protobuf::Value.new(string_value: "Hello")]))

What did you expect to see

[<Google::Protobuf::Value: null_value: :NULL_VALUE, number_value: 0.0, string_value: "Hello", bool_value: false, struct_value: nil, list_value: nil>]

What did you see instead?

<Google::Protobuf::Value: >

In more complex cases, SEGV is also obeserved.

Anything else we should know about your project / environment

@haberman
Copy link
Member

Fix in: #8330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants