Export to GitHub

upb - issue #1

enums with "0" values are broken


Posted on Feb 14, 2011 by Grumpy Bird

upb will fail to import this proto:

enum Foo { BAR = 0; }

To fix this bug, upb_table needs to be modified to not use "0" as its "end-of-chain" marker. Hopefully there is some int32 that cannot be a valid enum value. If not, the fix might have to be more intrusive.

Comment #1

Posted on Feb 14, 2011 by Grumpy Bird

This is fixed in commit: https://github.com/haberman/upb/commit/6117730c85e5d64239337f0e8514109054202f5a

Status: Fixed

Labels:
Type-Defect Priority-Critical