{"action":"opened","issue":{"url":"https://api.github.com/repos/protocolbuffers/protobuf/issues/5189","repository_url":"https://api.github.com/repos/protocolbuffers/protobuf","labels_url":"https://api.github.com/repos/protocolbuffers/protobuf/issues/5189/labels{/name}","comments_url":"https://api.github.com/repos/protocolbuffers/protobuf/issues/5189/comments","events_url":"https://api.github.com/repos/protocolbuffers/protobuf/issues/5189/events","html_url":"https://github.com/protocolbuffers/protobuf/issues/5189","id":364203853,"node_id":"MDU6SXNzdWUzNjQyMDM4NTM=","number":5189,"title":"Unspecified/Undefined behavior in enum in wire_format_lite.cc","user":{"login":"ZaMaZaN4iK","id":7355383,"node_id":"MDQ6VXNlcjczNTUzODM=","avatar_url":"https://avatars0.githubusercontent.com/u/7355383?v=4","gravatar_id":"","url":"https://api.github.com/users/ZaMaZaN4iK","html_url":"https://github.com/ZaMaZaN4iK","followers_url":"https://api.github.com/users/ZaMaZaN4iK/followers","following_url":"https://api.github.com/users/ZaMaZaN4iK/following{/other_user}","gists_url":"https://api.github.com/users/ZaMaZaN4iK/gists{/gist_id}","starred_url":"https://api.github.com/users/ZaMaZaN4iK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZaMaZaN4iK/subscriptions","organizations_url":"https://api.github.com/users/ZaMaZaN4iK/orgs","repos_url":"https://api.github.com/users/ZaMaZaN4iK/repos","events_url":"https://api.github.com/users/ZaMaZaN4iK/events{/privacy}","received_events_url":"https://api.github.com/users/ZaMaZaN4iK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-26T20:43:20Z","updated_at":"2018-09-26T20:43:20Z","closed_at":null,"author_association":"NONE","body":"Hello. In file [wire_format_lite.cc](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/wire_format_lite.cc#L101) there is undefined behavior - casting to an unexistent enum value. It's prohibited by C++ standard (before C++17 behavior is unspecified, C++17 and after - undefined) - https://en.cppreference.com/w/cpp/language/enum"}}
{"actor":{"display_login":"ZaMaZaN4iK"}}