yejw5 / helloworld

An example to reproduce `Invalid free()` crash of protobuf-lite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Env:

deps version install ref
bazel 0.16.0 bazel install
adb >= 1.0.32 apt-get install android-tools-adb
NDK r15c NDK installation guide

Run:

./tools/build.sh

Code Structure:

├── helloworld
│   ├── BUILD
│   ├── codegen
│   │   └── BUILD
│   ├── core
│   │   ├── BUILD
│   │   └── engine.cc  # which will generate libhelloworld.so, protobuf-lite linked
│   ├── example
│   │   ├── BUILD
│   │   └── example.cc  # depends on libnet.a and libhelloworld.so
│   ├── helloworld.bzl
│   ├── net
│   │   ├── BUILD
│   │   └── create_net.cc  # libnet.a
│   ├── proto
│   │   ├── BUILD
│   │   └── helloworld.proto
│   └── public
│       ├── BUILD
│       └── helloworld.h
├── tools
│   ├── bazel.rc
│   └── build.sh
└── WORKSPACE

About

An example to reproduce `Invalid free()` crash of protobuf-lite


Languages

Language:Python 59.8%Language:C++ 21.8%Language:Shell 18.4%