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

error #15

Open
dr-begemot opened this issue Oct 24, 2019 · 0 comments
Open

error #15

dr-begemot opened this issue Oct 24, 2019 · 0 comments

Comments

@dr-begemot
Copy link

In section PROTOBUF_C_LABEL_REPEATED (func protobuf2json_process_message) protobuf_values_count is offset for value, not size!
const size_t *protobuf_values_count = (const size_t *)protobuf_value_quantifier;
then you use it as size

        for (j = 0; j < *protobuf_values_count; j++) {
          const char *protobuf_value_repeated = (*(char * const *)protobuf_value) + j * value_size;
...
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

No branches or pull requests

1 participant