summaryrefslogtreecommitdiff
path: root/tests/native
diff options
context:
space:
mode:
authorMunikrishna <jmunikrishna@google.com>2023-01-09 09:40:51 +0000
committerMunikrishna <jmunikrishna@google.com>2023-01-09 09:40:51 +0000
commite6761615ec4387fc238324f4a0b8d5bd057dc582 (patch)
tree95e354011690ea828b80e0cc03886be80529c6ed /tests/native
parent922329a1741dd053aec0920a0a7d7fa922d2b223 (diff)
downloadImsMedia-e6761615ec4387fc238324f4a0b8d5bd057dc582.tar.gz
heap-buffer-overflow in RtcpRrPacketTest with hwasan
heap-buffer-overflow in RtcpRrPacketTest with hwasan. Buffer length is changed to proper value. Test: atest ImsMediaNativeTests Bug: 259076751 Change-Id: I892f8f3028af7508af4402a484af44b98a3e09d9
Diffstat (limited to 'tests/native')
-rw-r--r--tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpRrPacketTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpRrPacketTest.cpp b/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpRrPacketTest.cpp
index d7521e83..4a0de8f0 100644
--- a/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpRrPacketTest.cpp
+++ b/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpRrPacketTest.cpp
@@ -72,7 +72,7 @@ TEST_F(RtcpRrPacketTest, TestGetSetMethods)
TEST_F(RtcpRrPacketTest, TestDecodeRrPacket)
{
RtcpRrPacket objRtcpRrPacket;
- RtpDt_UInt16 len = 53;
+ RtpDt_UInt16 len = bBufLen;
eRTP_STATUS_CODE res = objRtcpRrPacket.decodeRrPacket(bufRrWithOneReport, len, 0);
EXPECT_EQ(res, RTP_SUCCESS);