Loading media/libaaudio/src/utility/AAudioUtilities.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -291,7 +291,7 @@ int32_t AAudioConvert_framesToBytes(int32_t numFrames, const int32_t maxBytesPerFrame = maxChannels * sizeof(float); // Prevent overflow by limiting multiplicands. if (bytesPerFrame > maxBytesPerFrame || numFrames > (0x3FFFFFFF / maxBytesPerFrame)) { ALOGE("size overflow, numFrames = %d, frameSize = %zd", numFrames, bytesPerFrame); ALOGE("size overflow, numFrames = %d, frameSize = %d", numFrames, bytesPerFrame); return AAUDIO_ERROR_OUT_OF_RANGE; } *sizeInBytes = numFrames * bytesPerFrame; Loading services/camera/libcameraservice/api2/CameraDeviceClient.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -672,7 +672,7 @@ binder::Status CameraDeviceClient::createInputStream( if (mInputStream.configured) { String8 msg = String8::format("Camera %s: Already has an input stream " "configured (ID %zd)", mCameraIdStr.string(), mInputStream.id); "configured (ID %d)", mCameraIdStr.string(), mInputStream.id); ALOGE("%s: %s", __FUNCTION__, msg.string() ); return STATUS_ERROR(CameraService::ERROR_ALREADY_EXISTS, msg.string()); } Loading Loading
media/libaaudio/src/utility/AAudioUtilities.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -291,7 +291,7 @@ int32_t AAudioConvert_framesToBytes(int32_t numFrames, const int32_t maxBytesPerFrame = maxChannels * sizeof(float); // Prevent overflow by limiting multiplicands. if (bytesPerFrame > maxBytesPerFrame || numFrames > (0x3FFFFFFF / maxBytesPerFrame)) { ALOGE("size overflow, numFrames = %d, frameSize = %zd", numFrames, bytesPerFrame); ALOGE("size overflow, numFrames = %d, frameSize = %d", numFrames, bytesPerFrame); return AAUDIO_ERROR_OUT_OF_RANGE; } *sizeInBytes = numFrames * bytesPerFrame; Loading
services/camera/libcameraservice/api2/CameraDeviceClient.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -672,7 +672,7 @@ binder::Status CameraDeviceClient::createInputStream( if (mInputStream.configured) { String8 msg = String8::format("Camera %s: Already has an input stream " "configured (ID %zd)", mCameraIdStr.string(), mInputStream.id); "configured (ID %d)", mCameraIdStr.string(), mInputStream.id); ALOGE("%s: %s", __FUNCTION__, msg.string() ); return STATUS_ERROR(CameraService::ERROR_ALREADY_EXISTS, msg.string()); } Loading