[Solved] Getting Segmentation fault for implementing ByteSize() in C++ for protobuffer


I got the solution.
memset function is creating this problem.
I removed the memset function. it works fine

solved Getting Segmentation fault for implementing ByteSize() in C++ for protobuffer