1. 21 Apr, 2024 1 commit
  2. 21 Mar, 2024 4 commits
  3. 21 Jan, 2024 1 commit
    • Stephan Mueller's avatar
      Fix memory corruption by initlizalizing pointer · 55c8b0dc
      Stephan Mueller authored
      A memory corruption in protobuf_c_message_free_unpacked happens at the
      following line:
      
              if (message->unknown_fields != NULL)
                      do_free(allocator, message->unknown_fields);
      
      The do_free will free ->unknown_fields. This is may be wrong, because
      protobuf_c_message_unpack uses malloc as the default allocator, allocates
      rv with malloc. At the end, however, ->unknown_fields is only initialized
      if there are some. That means if there are no such fields ->unknown_fields
      is an uninitialized pointer.
      
      The patch initializes the pointer to NULL to ensure the check before free
      is performed on initialized memory in case there is no unknown_field.
      
      This fixes https://github.com/protobuf-c/protobuf-c/issues/690Signed-off-by: default avatarStephan Mueller <smueller@chronox.de>
      55c8b0dc
  4. 16 Dec, 2023 1 commit
  5. 15 Dec, 2023 1 commit
    • Alessandro Bono's avatar
      CMakeList.txt: Remove double hyphens · 9b1d4a35
      Alessandro Bono authored
      Otherwise cmake won't reconize the command.
      
      With double hyphens:
      ```
      $ cmake -E env TESTENV=value -- env | grep TESTENV
      cmake -E env: unknown option '--'
      ```
      
      Without double hyphens:
      ```
      $ cmake -E env TESTENV=value env | grep TESTENV
      TESTENV=value
      ```
      9b1d4a35
  6. 30 Nov, 2023 1 commit
  7. 26 Nov, 2023 1 commit
  8. 25 Nov, 2023 3 commits
  9. 21 Sep, 2023 1 commit
  10. 18 Sep, 2023 1 commit
  11. 15 Sep, 2023 2 commits
  12. 11 Sep, 2023 1 commit
  13. 10 Sep, 2023 1 commit
  14. 09 Jul, 2023 20 commits
  15. 03 Jul, 2023 1 commit
    • Robert Edmonds's avatar
      configure.ac: Require C++17 · 5b0661f1
      Robert Edmonds authored
      There are some recent reports of strange build failures that might have
      been fixed by compiling in C++17 mode, so it might be a good idea to use
      C++17 in general, and not just when building against very recent
      protobuf versions.
      
      Since it looks like we've lost protobuf < 3.0.0 support, configure.ac
      can be simplified a bit if we just use C++17 by default.
      5b0661f1