Exploit databaseDownload repository ZIP
GH-9bef12607fbc6142c2d2e0da5832840c
nanopathi/framework_base_aosp10_r33_cve-2021-0339
Sources for CVE-2021-0339
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files11
nanopathi/framework_base_aosp10_r33_cve-2021-0339Revision 14c4f070663c
- ↑..Parent directory
- cpp/
- java/
- test/
- Android.bp
- Android.mk
- Errors.cpp
- Errors.h
- stream_proto_utils.cpp
- stream_proto_utils.h
- string_utils.cpp
- string_utils.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/streaming_proto/Errors.h
Text · 874 bytes#include <stdio.h>
#include <string>
#include <vector>
namespace android {
namespace stream_proto {
using namespace std;
struct Error
{
Error();
Error(const Error& that);
Error(const string& filename, int lineno, const char* message);
string filename;
int lineno;
string message;
};
class Errors
{
public:
Errors();
~Errors();
// Add an error
void Add(const string& filename, int lineno, const char* format, ...);
// Print the errors to stderr if there are any.
void Print() const;
bool HasErrors() const;
private:
// The errors that have been added
vector<Error> m_errors;
void AddImpl(const string& filename, int lineno, const char* format, va_list ap);
};
extern Errors ERRORS;
extern const string UNKNOWN_FILE;
extern const int UNKNOWN_LINE;
} // namespace stream_proto
} // namespace android