pbc icon indicating copy to clipboard operation
pbc copied to clipboard

A protocol buffers library for C

Results 74 pbc issues
Sort by recently updated
recently updated
newest added

A SEGV has occurred when running program addressbook. ### POC file: https://github.com/HotSpurzzZ/testcases/blob/main/pbc/pbc_SEGV_pbc_wmessage_string ### Verification steps : 1.Get the source code of pbc 2.Compile (Note the modification of the makefile to...

CentOS 8.2 gcc -O2 -fPIC -Wall -shared -o protobuf.so -I../.. -I/usr/local/include -L../../build pbc-lua53.c -lpbc /usr/bin/ld: 找不到 -lpbc collect2: 错误:ld 返回 1 make: *** [Makefile:13:protobuf.so] 错误 1

出现消息体嵌套时候需要去访问子消息体才可以解析,有没有什么配置或者参数可以控制是否是lazy解析吗

A SEGV has occurred when running program test. The program does not check for the return value of pbc_wmessage_new (./test/test.c:16), resulting in the program still running when null is returned....

有没有什么内部函数可以直接将结构打印出来 而不是遍历 v.name 另外 我如何判断表的子表没有数据? 比如 table = { age = 10, phone = {}, } 目前解决办法只能是 local phone = table.phone if #phone > 0 then print("表为空") end

代码如下: LuaLogDebug("LastLoginTime3==================", tData.playerInfo.LastLoginTime) local strPbData = protobuf.encode("UserProfile", tData) LuaLogDebug("LastLoginTime4==================", tData.playerInfo.LastLoginTime) 输出结构如下: 2022-03-31 11:11:12|140067794106112|DEBUG|common/DBInterface.lua:67|LastLoginTime3==================|1648696272 2022-03-31 11:11:12|140067794106112|DEBUG|common/DBInterface.lua:70|LastLoginTime4==================|1646828625 pb的结构如下: message PlayerInfoModel { optional int32 level = 1; optional int32 languageID = 2; optional...

example: test.lua ```lua addressbook = { name = "Alice", id = 12345, phone = { { number = "1301234567" }, { number = "87654321", type = "WORK" }, } }...

是否能支持protobuf 3

"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -dynamic -dylib -arch x86_64 -macosx_version_min 10.12.0 -o protobuf.so -L../../build /var/folders/bv/z457qcq557q_gj6wfsvgn5r00000gn/T/pbc-lua53-736e27.o -lpbc -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/lib/darwin/libclang_rt.osx.a **_Undefined symbols for architecture x86_64:_** 然后最后 "_lua_type", referenced from: __env_type in pbc-lua53-736e27.o __pattern_pack...