From 25ac87a7fa0ef5f8a5de044d67499b121adf1a3d Mon Sep 17 00:00:00 2001 From: LGH W Date: Tue, 8 Oct 2024 11:15:32 +0800 Subject: [PATCH 1/4] protecting sensitive data Signed-off-by: LGH W --- pc/sdp_offer_answer.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pc/sdp_offer_answer.cc b/pc/sdp_offer_answer.cc index 6ce32262..9af1093e 100644 --- a/pc/sdp_offer_answer.cc +++ b/pc/sdp_offer_answer.cc @@ -5010,7 +5010,11 @@ bool SdpOfferAnswerHandler::UseCandidate( const cricket::Candidate& c = candidate->candidate(); RTCError error = cricket::VerifyCandidate(c); if (!error.ok()) { +#if IS_OHOS + RTC_LOG(LS_WARNING) << "Invalid candidate."; +#else RTC_LOG(LS_WARNING) << "Invalid candidate: " << c.ToString(); +#endif return true; } -- Gitee From b4807395c5d6f888a751c7851baa67a72d555ba9 Mon Sep 17 00:00:00 2001 From: LGH W Date: Tue, 8 Oct 2024 14:38:56 +0800 Subject: [PATCH 2/4] protecting sensitive data Signed-off-by: LGH W --- pc/sdp_offer_answer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc/sdp_offer_answer.cc b/pc/sdp_offer_answer.cc index 9af1093e..ae53ed67 100644 --- a/pc/sdp_offer_answer.cc +++ b/pc/sdp_offer_answer.cc @@ -5010,7 +5010,7 @@ bool SdpOfferAnswerHandler::UseCandidate( const cricket::Candidate& c = candidate->candidate(); RTCError error = cricket::VerifyCandidate(c); if (!error.ok()) { -#if IS_OHOS +#if BUILDFLAG(IS_OHOS) RTC_LOG(LS_WARNING) << "Invalid candidate."; #else RTC_LOG(LS_WARNING) << "Invalid candidate: " << c.ToString(); -- Gitee From b6e288926ca1a6b74887a8ad44705d1c253dd511 Mon Sep 17 00:00:00 2001 From: LGH W Date: Tue, 8 Oct 2024 14:47:25 +0800 Subject: [PATCH 3/4] protecting sensitive data Signed-off-by: LGH W --- pc/sdp_offer_answer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc/sdp_offer_answer.cc b/pc/sdp_offer_answer.cc index ae53ed67..3f0d1be5 100644 --- a/pc/sdp_offer_answer.cc +++ b/pc/sdp_offer_answer.cc @@ -5011,7 +5011,7 @@ bool SdpOfferAnswerHandler::UseCandidate( RTCError error = cricket::VerifyCandidate(c); if (!error.ok()) { #if BUILDFLAG(IS_OHOS) - RTC_LOG(LS_WARNING) << "Invalid candidate."; + RTC_DLOG(LS_VERBOSE) << "Invalid candidate."; #else RTC_LOG(LS_WARNING) << "Invalid candidate: " << c.ToString(); #endif -- Gitee From a35eb16068768027c0b4c821d5656d86c5358d87 Mon Sep 17 00:00:00 2001 From: LGH W Date: Tue, 8 Oct 2024 14:52:11 +0800 Subject: [PATCH 4/4] protecting sensitive data Signed-off-by: LGH W --- pc/sdp_offer_answer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc/sdp_offer_answer.cc b/pc/sdp_offer_answer.cc index 3f0d1be5..2e65c626 100644 --- a/pc/sdp_offer_answer.cc +++ b/pc/sdp_offer_answer.cc @@ -5011,7 +5011,7 @@ bool SdpOfferAnswerHandler::UseCandidate( RTCError error = cricket::VerifyCandidate(c); if (!error.ok()) { #if BUILDFLAG(IS_OHOS) - RTC_DLOG(LS_VERBOSE) << "Invalid candidate."; + RTC_DLOG(LS_VERBOSE) << "Invalid candidate: " << c.ToString(); #else RTC_LOG(LS_WARNING) << "Invalid candidate: " << c.ToString(); #endif -- Gitee