Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Patch Available
Description
When attempting to generate code for a Thrift file like:
struct X { required string my_field; } const X CONSTANT_X = { 'my_field_1' : 'blah' }
I find that I get a segfault. GDB tracks it back to line 99 of t_scope.h, where it looks like we try to get a t_field object from the parent struct by name, and then ultimately don't check if we actually got back something valid or not.