Loading init/AndroidTest.xml +3 −0 Original line number Diff line number Diff line Loading @@ -29,4 +29,7 @@ <option name="module-name" value="CtsInitTestCases" /> <option name="runtime-hint" value="65s" /> </test> <!-- Controller that will skip the module if a native bridge situation is detected --> <!-- For example: module wants to run arm32 and device is x86 --> <object type="module_controller" class="com.android.tradefed.testtype.suite.module.NativeBridgeModuleController" /> </configuration> libutils/String8.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -322,8 +322,14 @@ status_t String8::appendFormatV(const char* fmt, va_list args) n = vsnprintf(nullptr, 0, fmt, tmp_args); va_end(tmp_args); if (n != 0) { if (n < 0) return UNKNOWN_ERROR; if (n > 0) { size_t oldLength = length(); if ((size_t)n > SIZE_MAX - 1 || oldLength > SIZE_MAX - (size_t)n - 1) { return NO_MEMORY; } char* buf = lockBuffer(oldLength + n); if (buf) { vsnprintf(buf + oldLength, n + 1, fmt, args); Loading Loading
init/AndroidTest.xml +3 −0 Original line number Diff line number Diff line Loading @@ -29,4 +29,7 @@ <option name="module-name" value="CtsInitTestCases" /> <option name="runtime-hint" value="65s" /> </test> <!-- Controller that will skip the module if a native bridge situation is detected --> <!-- For example: module wants to run arm32 and device is x86 --> <object type="module_controller" class="com.android.tradefed.testtype.suite.module.NativeBridgeModuleController" /> </configuration>
libutils/String8.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -322,8 +322,14 @@ status_t String8::appendFormatV(const char* fmt, va_list args) n = vsnprintf(nullptr, 0, fmt, tmp_args); va_end(tmp_args); if (n != 0) { if (n < 0) return UNKNOWN_ERROR; if (n > 0) { size_t oldLength = length(); if ((size_t)n > SIZE_MAX - 1 || oldLength > SIZE_MAX - (size_t)n - 1) { return NO_MEMORY; } char* buf = lockBuffer(oldLength + n); if (buf) { vsnprintf(buf + oldLength, n + 1, fmt, args); Loading