Exploit databaseDownload repository ZIP
GH-13794a28e99af8452ce8e4224a1bc216
trinadh465/frameworks_base_aosp10_r33_cve-2022-20138
Sources for CVE-2022-20138
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files52
trinadh465/frameworks_base_aosp10_r33_cve-2022-20138Revision 144017c26d03
- ↑..Parent directory
- tests/
- AaptAssets.cpp
- AaptAssets.h
- AaptConfig.cpp
- AaptConfig.h
- AaptUtil.cpp
- AaptUtil.h
- AaptXml.cpp
- AaptXml.h
- Android.bp
- ApkBuilder.cpp
- ApkBuilder.h
- Bundle.h
- CacheUpdater.h
- Command.cpp
- ConfigDescription.h
- CrunchCache.cpp
- CrunchCache.h
- DirectoryWalker.h
- FileFinder.cpp
- FileFinder.h
- Images.cpp
- Images.h
- IndentPrinter.h
- Main.cpp
- Main.h
- NOTICE
- OutputSet.h
- Package.cpp
- Resource.cpp
- ResourceFilter.cpp
- ResourceFilter.h
- ResourceIdCache.cpp
- ResourceIdCache.h
- ResourceTable.cpp
- ResourceTable.h
- SdkConstants.h
- SourcePos.cpp
- SourcePos.h
- StringPool.cpp
- StringPool.h
- Symbol.h
- WorkQueue.cpp
- WorkQueue.h
- XMLNode.cpp
- XMLNode.h
- ZipEntry.cpp
- ZipEntry.h
- ZipFile.cpp
- ZipFile.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/aapt/IndentPrinter.h
Text · 1,312 bytes#ifndef __INDENT_PRINTER_H
#define __INDENT_PRINTER_H
class IndentPrinter {
public:
explicit IndentPrinter(FILE* stream, int indentSize=2)
: mStream(stream)
, mIndentSize(indentSize)
, mIndent(0)
, mNeedsIndent(true) {
}
void indent(int amount = 1) {
mIndent += amount;
if (mIndent < 0) {
mIndent = 0;
}
}
void print(const char* fmt, ...) {
doIndent();
va_list args;
va_start(args, fmt);
vfprintf(mStream, fmt, args);
va_end(args);
}
void println(const char* fmt, ...) {
doIndent();
va_list args;
va_start(args, fmt);
vfprintf(mStream, fmt, args);
va_end(args);
fputs("\n", mStream);
mNeedsIndent = true;
}
void println() {
doIndent();
fputs("\n", mStream);
mNeedsIndent = true;
}
private:
void doIndent() {
if (mNeedsIndent) {
int numSpaces = mIndent * mIndentSize;
while (numSpaces > 0) {
fputs(" ", mStream);
numSpaces--;
}
mNeedsIndent = false;
}
}
FILE* mStream;
const int mIndentSize;
int mIndent;
bool mNeedsIndent;
};
#endif // __INDENT_PRINTER_H